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 All,
i've this issue: i need a DAX to calculate per each item the MAX sum from all the month.
For Example:
ITEM | MONTH | QtySold |
AAA | JAN | 10 |
AAA | JAN | 20 |
AAA | FEB | 5 |
AAA | FEB | 11 |
AAA | FEB | 3 |
BBB | JAN | 45 |
BBB | JAN | 3 |
BBB | JAN | 8 |
BBB | FEB | 12 |
BBB | FEB | 11 |
The DAX i need must give as results:
AAA = 30
BBB = 56
Have you any ideas?
Thanks in advance,
Daniele
Solved! Go to Solution.
Hi @DaniEMIT
You can create a measure with below code and put it in a table visual along with the ITEM column.
Measure =
var tbl = SUMMARIZE('Table','Table'[MONTH],"Total Sold",SUM('Table'[QtySold]))
return
MAXX(tbl,[Total Sold])
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @DaniEMIT
You can create a measure with below code and put it in a table visual along with the ITEM column.
Measure =
var tbl = SUMMARIZE('Table','Table'[MONTH],"Total Sold",SUM('Table'[QtySold]))
return
MAXX(tbl,[Total Sold])
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @DaniEMIT
To get the max of Sum per month, please watch this video
like this, you need to create your DAX
Thanks & Regards,
Mohammed Adnan
Learn Power BI: https://www.youtube.com/c/taik18
Thank You. I am a beginner. Like your solution. Simple and clear. It worked for me perfectly.
Hi Mohammed,
thanks for your reply.
Your solution is not working as i need. With the DAX, i need only one result per Item. The result must be the max value of the sum per month.
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 |
---|---|
96 | |
94 | |
80 | |
71 | |
64 |
User | Count |
---|---|
115 | |
106 | |
96 | |
81 | |
72 |