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.
I have a spreadsheet with columns of items/machinery (ie Auger, Belt, etc) and under a list of values from 0-9999. I want to determine how many in % to report are over/under the value '100'. like 60% of the time Auger is >100 etc. Im new and just struggling to get a function to count rows and display those to report.
They are in a table titled '2024' with each column title representing the machinery.
Thanks
Hi @jmdowns22 ,
Agree with Selva-Salimi , If you have columns for each item, then trying to achieve what you want is difficult. As Selva-Salimi said please unpivot your table in Power Query first.
May I ask if you have solved your problem so far? If it has been solved, please accept Selva-Salimi's reply as a solution if you think it will help you, and if it hasn't been solved yet, perhaps you would like to provide us with some sample data so that we can help you find a solution with more precision.
Best Regards,
Dino Tao
Hi @jmdowns22
you can write a measure as follows:
measure percentage :=
var _hundred = calculate (count (items) , filter ('2024', value > 100 ))
return
_hundred /countrows(2024)
and then this measure in percentage format.
If this post helps, then I would appreciate a thumbs up and mark it as the solution to help the other members find it more quickly.
I got an syntax error return message:
The syntax for '>' is incorrect. (DAX(var _hundred = calculate (count (items) , filter ('2024', value > 100 ))return_hundred /countrows(2024))).
Did you use the name of column which contain the values 0..9999 instead of "value" in this code??
I have entered
you should write it as follows:
var _hundred = calculate (count ('2024'[Auger]) , filter ('2024', '2024'[Auger] > 100 ))
and the question is, why did you use just Auger? does your table has column for each item?!
The syntax for 'return' is incorrect. (DAX(calculate (count ('2024'[Auger]) , filter ('2024', '2024'[Auger] > 100 ))return_hundred /countrows('2024'))).
you need space between return and _hundred 🙂
Yes it has a couple dozen items - im just unsure how to do this appropriately. I want to list them all?
of course not!
you should select columns and unpivot your table in power Query editor and then use the recommended calculation.
If this post helps, then I would appreciate a thumbs up and mark 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.