Forum Discussion
Categorising into groups using a result from a calculated measure to use in a visual.
Hi Guys, Im stuck on the below.
So I have a measure which gives me a total average percentage of increase or decrease.
Example:
(Im comparing students attendance against 2 time frames. 'this part works fine' )
Time frame 1 = 70% average over 20 students
Time frame 2 = 90% average over the same 20 students
giving me an average increase of 28.5%
My measure called (attandance_variance) gives my 28.5% when comparing the dynamic time frames selected.
I also have now got a working measure that tells me how many students within this measure have improved. shown below:
- Anonymous4 years ago
Hi TFTF_BI ,
Here are the steps you can follow:
1. Create calculated column.
Flag = SWITCH( TRUE(), 'Table'[Count_Students_Attendance_Improved]=0.15,"Did not significantly change (>-0.05 & <0.05)", 'Table'[Count_Students_Attendance_Improved]=0.5,"Did not improve (<-0.05)", 'Table'[Count_Students_Attendance_Improved]=0.35,"Improved (>0.05)")2. Create measure.
Improved = COUNTX(FILTER( 'Table','Table'[Flag]="Improved (>0.05)"),[Flag])Did not improve = COUNTX(FILTER( 'Table','Table'[Flag]="Did not improve (<-0.05)"),[Flag])Did not significantly change = COUNTX(FILTER( 'Table','Table'[Flag]="Did not significantly change (>-0.05 & <0.05)"),[Flag])3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
1 Reply
- AnonymousNot applicable
Hi TFTF_BI ,
Here are the steps you can follow:
1. Create calculated column.
Flag = SWITCH( TRUE(), 'Table'[Count_Students_Attendance_Improved]=0.15,"Did not significantly change (>-0.05 & <0.05)", 'Table'[Count_Students_Attendance_Improved]=0.5,"Did not improve (<-0.05)", 'Table'[Count_Students_Attendance_Improved]=0.35,"Improved (>0.05)")2. Create measure.
Improved = COUNTX(FILTER( 'Table','Table'[Flag]="Improved (>0.05)"),[Flag])Did not improve = COUNTX(FILTER( 'Table','Table'[Flag]="Did not improve (<-0.05)"),[Flag])Did not significantly change = COUNTX(FILTER( 'Table','Table'[Flag]="Did not significantly change (>-0.05 & <0.05)"),[Flag])3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly