The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have a column with data and I want to calculate the % of instances in the column that are 100% or greater. How do I write this?
Sample of data:
File # Score
31781 103.03
32096 102.33
32565 92.5
45698 98.5
58887 89.5
I'd also like a measure for count of Files # =<100%
Thank you!
Solved! Go to Solution.
Measure Count = COUNTROWS ( Table )
Measure Count Above 100 =
CALCULATE (
[Measure Count],
Table[Score] > 100 //if value is stored in % then change 100 to 1
)
Measure Count Below 100 =
CALCULATE (
[Measure Count],
Table[Score] < 100 //if value is stored in % then change 100 to 1
)
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi @TXAPpdev89
Thanks for the reply from parry2k .
You can also use the following measures.
% =
VAR _countAll = COUNT('Table'[File #])
VAR _count = CALCULATE(COUNT('Table'[File #]), FILTER('Table', [Score] > 100))
RETURN
DIVIDE(_count, _countAll)
count = CALCULATE(COUNT('Table'[File #]), FILTER('Table', [Score] <= 100))
Output:
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @TXAPpdev89
Thanks for the reply from parry2k .
You can also use the following measures.
% =
VAR _countAll = COUNT('Table'[File #])
VAR _count = CALCULATE(COUNT('Table'[File #]), FILTER('Table', [Score] > 100))
RETURN
DIVIDE(_count, _countAll)
count = CALCULATE(COUNT('Table'[File #]), FILTER('Table', [Score] <= 100))
Output:
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Measure Count = COUNTROWS ( Table )
Measure Count Above 100 =
CALCULATE (
[Measure Count],
Table[Score] > 100 //if value is stored in % then change 100 to 1
)
Measure Count Below 100 =
CALCULATE (
[Measure Count],
Table[Score] < 100 //if value is stored in % then change 100 to 1
)
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@TXAPpdev89 explain this "calculate the % of rows"
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Perhaps calling it % of instances or entries in that column (Score column) what % is equal to or greater than 100%