Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi team. I need some help with calculating Minimum of several Summed values.
I have a table with columns:
Category | Month | Sales Value |
I need to have a visual (table\matrix\etc.) with
- 2 axis columns: Category, Month
- and with 2 measures: just simply Sum(Sales Value), and another measure which will show minimum by category for a list of sums per month.
So for example, I need to have:
Month 1 | Month 1 | Month 2 | Month 2 | Month 3 | Month 3 | |
Sum Sales | Min Measure | Sum Sales | Min Measure | Sum Sales | Min Measure | |
Category 1 | 10 | 10 | 20 | 10 | 30 | 10 |
Category 2 | 200 | 100 | 100 | 100 | 300 | 100 |
Category 3 | 5000 | 3000 | 4000 | 3000 | 3000 | 3000 |
10 is minimum of monthly sum(sales) per Category 1, so I need it in my Min Measure. The same for all other Categories.
Adding some saple report with data: https://www.sendspace.com/file/uhf89l
Calculating an intermediate calculated table is not an option.
I really feel, that MINX might be my answer, but I can't finilize the measure by myself.
Thanks in advance
Solved! Go to Solution.
Thank you, team!
I also came (with some additional help) to the solution.
Will take some time to tottaly get into it.
Thank you, team!
I also came (with some additional help) to the solution.
Will take some time to tottaly get into it.
@sqlsasha , Try one of the two
minx(summarize(Table, table[category], "_1",calculate(min(Table[Sales]),allexcept(Table,Table[category]))),[_1])
Or
minx(summarize(Table, table[category], "_1",calculate(min(Table[Sales]),all(Table[Month]))),[_1])
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |