Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hey guys,
i have a pbix file based on excel values to calculate the performance of different suppliers for each month
they get a total score on 100 based on 5 categories (amount of claims/ amount of returned parts/ etc...)
For each categorie they get a score and then total score on 90 is calculated with a measure = score cat1 + score cat2 + score cat3.
then we divide them in levels (we have 4 levels)
Solved! Go to Solution.
@jasperdavid not sure I can go thru all this but I think this is what you need:
Count supplier with 4 =
COUNTX (
VALUES ( Table[Supplied] ),
IF ( [Level] = 4, 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.
@jasperdavid please share sample data with expected output. Read this post to get your answer quickly.
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
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.
i have a table (see below) with the calculation of each score. Then a total score is summed up from which the supplier level is derived.
formulas below.
@jasperdavid not sure I can go thru all this but I think this is what you need:
Count supplier with 4 =
COUNTX (
VALUES ( Table[Supplied] ),
IF ( [Level] = 4, 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.
worked like a charm... thanks man!
I first tried this one because i'm used to work with the if function returning 1 or 0 but that gave the wrong results:
Count supplier with 4 = COUNTX ( VALUES ( Table[Supplied] ), IF ( [Level] = 4, 1; 0 ) )
then i just tried this one and it works perfectly
Count supplier with 4 = COUNTX ( VALUES ( Table[Supplied] ), IF ( [Level] = 4, 1 ) )
any insights what might make the calculation different?
Thanks again!
@jasperdavid in your first DAX it is counting all the rows but 2nd DAX because else condition is returing BLANK() value and countx function is not calculating BLANK() values and you are getting correct result. Hope it make sense.
Would appreciate Kudos 🙂 if my solution helped.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
94 | |
83 | |
67 | |
59 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |