Forum Discussion
Calculated minimum value by multiple categories
- 3 years ago
Hi kavitabehera ,
I think it is just necessary to add another calculation table on top of the example file
(1) Add a calculation tableTable 2 = SUMMARIZE ( 'Table', 'Table'[Region], "MIN",MIN('Table'[MinXSale]) )(2)Final output
Best Regards,
Gallen Luo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
kavitabehera This looks like a measure aggregation problem. See my blog article about that here: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149
The pattern is:
MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
etc.
Thank you for your response.
The case I am trying to achieve is when I want "Region minimum sale by 2 categories (Category & Segment)". Through the above DAX I can add and create something like "Region & Category minimum sale by Segement."
The DAX I used
This is not what I want, I only want the region and its highlighted values.
Here is the link to the dummy PBIX file.