How to get Divisions and regions of customers in a saved search? - netsuite

Can I create a saved search in NetSuite to display divisions and regions of customers?
I am trying to get division and regions off a saved search i.e. division and location of customer's transactions in a saved search.

You can write a search with following criteria
1) Customer : internalid anyof CUSTOMER_INTERNAL_ID
2) Mainline is T
3) Type anyof Sales Order, Cash Sale, ANY_OTHER_APPLICABLE_CUSTOMER_TRANASACTION
In the search column add
1) Department with summary type Group
2) Location with summary type Group
Remove any other search columns from the result as adding unwanted fields with incorrect grouping will lead to duplicate results
If you want to get departments and columns of all customers within a single search you can remove filter #1 and add a search column customer with summary type as group

Related

How to use grouping and aggregation in NetSuite saved search?

I want to create a search that filters the records like Display the name of every customer and Sum of amount of orders placed by that customer in the last thirty days. I want to apply the search on sales orders.
In the results Tabs try this:

split up tables according to keywords

I can download excel exports of my monthly transactions from my bank. It gives me a table with the following columns:
[date][account number][amount][debit/credit][account name][code][description]
I want to create a file splits this up into different tables according to certain keywords such as:
Put all transactions where the description contains an item from a list of keywords into category x (e.g: Put all transactions where the description contains "spotify" or "netflix" into the table for subscriptions.)
Put all transactions that don't match any criteria into miscellaneous table.
Add up all items per table per month.
I can't find out which functions to use to achieve this. The filter function seems about right but too limited. Any ideas?

DAX Rank by Date

I am Counting on Distinct ID's in a column - this is leading to the sum of the subtotals not equalling the grand total as follows:
What I want to do is rank the Payment Dates in cronological order and select ONLY the highest date to display. In the example above the Grand Total won't change, but the Townville row will not show a Distinct Student Count.
This is a very specific requirement and I'm assuming there's an easy way to do it in DAX - I've tried playing around with both RANKX and MAX but am no closer to solving this.
One last thing - the Rank must be contextual to the Time Filter selected by the user (so if they select 2015 it'd give the second record Rank 1 and the top record wouldn't show. If they select May 2015 it'd give the top record Rank 1 and the second record wouldn't show)
I think this is what you are looking for - I added a calculated column to the PowerPivot model that provides a rank based on the Last Payment Date and the Name of the Student. It will rank the earliest payment for any student as a 1.
The code for the column is as follows:
=RANKX(FILTER(Table1, [Student Name] = EARLIER([Student Name])), [Last Payment Date])
... assuming your table is named "Table1"!
The FILTER is the key that limits the ranking to dates belonging to students with that name only.
Update for Multiple tables
To set up relationships between the tables, go to the "Diagram View" of the model, available in the Home tab of the Power Pivot window.
You can drag fields from one table to the other to create relationships. This will only work if at least one of the fields is unique - it's a good idea to think of the model as a dimensional model, with a tables that acts like a fact and other tables around it that act like dimensions.
From the comment, I would try to get the Payments to act like the fact, and have it link to the Community and Student tables. in this case, you could then have the following code:
=RANKX(FILTER(Table1, Related('Students'[Student Name]) = EARLIER('Students'[Student Name])), [Last Payment Date])
This calculated column would be on your Payments Fact table, and it uses a lookup to a related field.
Note that in this specific case, it would be easier to just run the filter over your Student ID field that is used to lookup the Student name.

NetSuite Eliminate Duplicates from Saved Item Search

I am making a saved search to show all of the items in our inventory with quantity details, but when I preview the saved search many duplicate products are displayed to the screen. How can I eliminate the duplicates? Also, how would I eliminate any Kit/Package items?
It is likely you have multiple location inventory turned on but are not filtering by nor including a column for the Inventory Location. If you include the Inventory Location column you'll see that the lines are not duplicates.
If you don't have inventory in a number of locations you can filter on Location On Hand is greater than 0. The filters to use here depend on what you are trying to see.
You would eliminate Kits/Packages by filtering on Type == Inventory Part
To eliminate only Kits/Package items from search results you can use filter criteria - Type none of Kits/Package Item.
If you are using multiple locations and you do not want to see multiple results for same item - I would recommend writing a grouped/summary search by specifying summary types for fields in the results/search columns:
1) All Item details like - Name, display name , etc. with summary type as group
2) All inventory count field such as Location on Hand, Location Available, Location Back Ordered, etc. should have summary type as Sum

Add up values from matching fields in a linked Sharepoint list

I have 2 lists, say, Fruits & Orders.
Orders has a number field FruitID that links to the ID field of Fruits.
Orders also has a number field OrderValue which stores the value of the specific order.
I want to find out the total sale for a particular fruit. I am doing this calculation in a workflow for the specific fruit. Is there an easy way (read 'no coding')?
See the list of standard workflow actions here:
http://office.microsoft.com/en-us/sharepoint-designer-help/workflow-actions-in-sharepoint-designer-2010-a-quick-reference-guide-HA010376961.aspx
There is no select, or looping functionality.
I suggest writing a custom workflow activity, sand boxing should work
http://www.wictorwilen.se/Post/Sandboxed-workflow-activities-in-SharePoint-2010.aspx

Resources