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.
Hello,
And again I am stuck with this problem and I have no more ideas so any help will be greatly appreciated.
Goal:
I need measure that will take first/max or only sum first value for cumulative total from each group for sellected filter:
Cluster= Main
Year = 2021
Month = 3
My current measure is as below, and at the moment it's not returning expeced result:
Measure =
CALCULATE (
MAX( table[cumulative total] ),
FILTER (
ALL ( table),
table[Date] <= MAX ( table[Date])
&& table[Year] = SELECTEDVALUE(table[Year])
&& table[Month] = SELECTEDVALUE(table[Month])
&& table[Cluster] = SELECTEDVALUE(table[Cluster])
))
Cluster | Plant Lower Level | Date | Day | Year | Month | Cumulative total |
Main | Plant 1 | Thursday, July 1, 2021 | 1 | 2021 | 3 | 0 |
Main | Plant 1 | Friday, July 2, 2021 | 2 | 2021 | 3 | 2 |
Main | Plant 2 | Friday, July 2, 2021 | 2 | 2021 | 3 | 2 |
Main | Plant 1 | Saturday, July 3, 2021 | 3 | 2021 | 3 | 3 |
Main | Plant 2 | Saturday, July 3, 2021 | 3 | 2021 | 3 | 3 |
Main | Plant 1 | Sunday, July 4, 2021 | 4 | 2021 | 3 | 5 |
Main | Plant 2 | Sunday, July 4, 2021 | 4 | 2021 | 3 | 5 |
Main | Plant 1 | Monday, July 5, 2021 | 5 | 2021 | 3 | 6 |
Main | Plant 2 | Monday, July 5, 2021 | 5 | 2021 | 3 | 6 |
Then I want to put this in visual to looks like this (green line)
Thanks,
Jacek
Solved! Go to Solution.
Hi @JLK84 ,
Your measure returns the following result, it shows the maximum of the Cumulative total column from the beginning of the month to date. What is the actual output you want?
Best Regards,
Winniz
Hi @JLK84 ,
Has your problem been solved?
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
Hi @v-kkf-msft
Thank you for your answer and support on this. You right measure returns correct results as expected, there was a issue with the client data. After your reply I was sure that the calculation is working correctly, which led me to the source of the problem hidden in the data. One more time, thank you,
Hi @JLK84 ,
Your measure returns the following result, it shows the maximum of the Cumulative total column from the beginning of the month to date. What is the actual output you want?
Best Regards,
Winniz
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 |
---|---|
117 | |
104 | |
77 | |
73 | |
50 |
User | Count |
---|---|
145 | |
109 | |
108 | |
90 | |
64 |