Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I'm looking to create a rating system that will display the overall health of a division
example; anything greater than 80% is 1 point, 50% - 79% will be .5 points, 49% and less is 0 points.
i created the following dax which was able to give me the correct values, but i was not able to get the table to calculate a total, its giving me an average
current visual is giving an average
Solved! Go to Solution.
@TariqArnabi , Change return like this and try
Sumx(Values(Table[Region]), calculate(_Claims + _Risk + _Casualty + _Property + _Primary +_Cyber))
Hi @TariqArnabi ,
Please try using this measure.
total =
IF (
HASONEVALUE ( 'Table'[Region] ),
'Table'[Overall],
CALCULATE ( 'Table'[Overall], ALL ( 'Table' ) )
)
Or:
Measure =
SUMX(
SUMMARIZE(
'Table',
'Table'[Region],
"total",[Overall]
),
[total]
)
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@TariqArnabi , Change return like this and try
Sumx(Values(Table[Region]), calculate(_Claims + _Risk + _Casualty + _Property + _Primary +_Cyber))
This worked. I also created a seperate measure to return the correct Total since SUMX does a Row by Row Evaluation. it was returning an incorrect Total.
I created a new measure if you need an overall TOTAL in the end.
User | Count |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
25 | |
12 | |
11 | |
10 | |
6 |