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 I am still new to DAX and I feel like it should be an easy DAX to write but I tried and couldn't figure it out.
I have a chart below, I want to have a measure that counts the number of bars that is below the target, these two green bars, in this case, it should retunrs "2" as the result.
Thanks!!
Solved! Go to Solution.
Hi @Anonymous
I'm not sure where you got your target so I hard coded it to be 8.
These measures should help.
Target = 8
Shifts = SUM( 'Table'[# of Shifts] )
Below =
COUNTROWS(
FILTER(
'Table',
[Shifts] <= [Target]
)
)
Let me know if you have any questions.
Hi @Anonymous
I'm not sure where you got your target so I hard coded it to be 8.
These measures should help.
Target = 8
Shifts = SUM( 'Table'[# of Shifts] )
Below =
COUNTROWS(
FILTER(
'Table',
[Shifts] <= [Target]
)
)
Let me know if you have any questions.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.