March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |