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.
Hey guys,
I'm calculating levels (1-2-3-4) for suppliers based on different measures.
I have a yearly overview where i want a card showing the average level based on the date slicer/period selected. When i select the full year the calculation is correct, but when i drill down on 1 month it should show the value (average for 1 month = value of that month) of that month, but i'm getting a totally different value.
Solved! Go to Solution.
Try:
Average Level =
AVERAGEX(
SUMMARIZE(Date Table, 'Date table'[Date].[Month],
"Levelcalc",CALCULATE([LEVEL]),
[Levelcalc])
See if that works.
Proud to be a Super User!
Paul on Linkedin.
Try:
Average Level =
AVERAGEX(
SUMMARIZE(Date Table, 'Date table'[Date].[Month],
"Levelcalc",CALCULATE([LEVEL]),
[Levelcalc])
See if that works.
Proud to be a Super User!
Paul on Linkedin.
works like a charm! thanks!
hey guys,
I'll try to explain but can't share the file due to security reasons.
On the screenshot you can see the different tables and relations i have.
The suppliers are stored in Supplier data, and through calculations they receive points , that add to a total score which is then changed in to a level by a measure.
Main tables are Notifications and Main list (sample reports). Score is calculated as followed:
Hi @jasperdavid ,
Please share some sample data and your expected results that will make us understand clearly about your requirement.
How to Get Your Question Answered Quickly
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try replacing KEEPFILTERS() with ALLSELECTED
AVERAGEX( ALLSELECTED('Date Table'[Date]), CALCULATE([Level]) )
If that doesn't work, please provide sample data along with all measure calculations (e.g. [Total Score])
Hope this helps
David
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |