Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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:
Solved! Go to Solution.
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
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
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.