Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
20 | |
14 | |
11 | |
10 | |
8 |