Forum Discussion
Analyzing sales data by quote size
- Anonymous5 years ago
Hello amitchandak , I figured it out! I created a calculated column with the following code
Quote Size = Calculate(Sum(Table[Quote $)]), ALLEXCEPT(Table,Table[Quote ID]))From this column I can create a second column that uses a nested IF statement to define my bin sizes. Its primative but effective.
Hello amitchandak and thanks for your response. These solutions look promising but also very complicated. All I am really trying to do is group my sales orders into 3 categories as described in the original post. Is there a simple DAX expression I can write that will group my sales order numbers into one of 3 categories based on total sales order value? I need to slice and filter on these 3 groups so that I can analyze the sales order profiles (customer types, products, profit, etc.) Creating a separate bin table that has no relation to my sales table means that I cannot filter/slice my sales table using bins defined in the bin table.
Anonymous , if you need bucket on the measure (means after aggregating the data) , I doubt there is not simple way.
If it is on the line level data, we can always create a new column
New bucket column =
Switch( True() ,
[sale] < 50000, " less than 50K",
[sales] <100000, " from 50K to 100K",
//you can add more
"Others" //default
)
- Anonymous5 years agoNot applicable
Hello amitchandak , I figured it out! I created a calculated column with the following code
Quote Size = Calculate(Sum(Table[Quote $)]), ALLEXCEPT(Table,Table[Quote ID]))From this column I can create a second column that uses a nested IF statement to define my bin sizes. Its primative but effective.