Forum Discussion
ngocnguyen
4 years agoHelper IV
Calculate segment
Hi I have table 1 and wanna create the output table in power BI with below logic: Calculate the No. of SO that have the "Discount/Quantity" belong to 3 segments :" 0 -2, 2-6 and >= 6" Di...
- Anonymous4 years ago
HI ngocnguyen,
You can create a table with all segment types and use it with the region to create a matrix.
After these, you can write a measure with summarize function to calculate the aggregation based on 'Region' and 'SO', then you can use get the current region and segment category to filter on the variable summarize table records.In addition, you can also take a look at the following blog if helps:
Dynamic segmentation – DAX Patterns
Regards,
Xiaoxin Sheng
ngocnguyen
4 years agoHelper IV
lbendlin
I want to use Measure. Could you please help?
lbendlin
4 years agoSuper User
First create a list of your buckets. Then do a crossjoin with the region values, and finally compute the measure for each combination.