Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello all - thank you in advance for helping me to figure this out!
I have a single column in my table expressing compliance, which is coded with either a 1 = compliant, or 0 = non-compliant. To have it look cleaner on the visuals, I copied that same column and replaced values with the definitions of compliant/non-compliant.
Each record is a single entity (order), and I have data for 5 months.
I want to be able to calculate the percentage of compliant orders to be displayed in my tooltip below in addition to what you already see. Cannot figure out how to do this .... tried measures, calculated columns etc.
Thank you!
Runnergabe
Solved! Go to Solution.
@Anonymous try following measures, assuming your column name is Flag with values "Compliant" and "Non Compliant"
Compliant Orders % = DIVIDE( CALCULATE( COUNRTOWS( Table ), Table[Flag] = "Compliant" ), CALCULATE( COUNRTOWS( Table ), ALL( Table[Flag] ) )
change formatting for this new measure to % in modelling tab, and drop this measure on tooltip.
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.
Thank you Parry!
That works beautifully. Reading your post also helped me understand the structure of the measure; an area I am not very strong in at the moment.
Runnergabe
@Anonymous try following measures, assuming your column name is Flag with values "Compliant" and "Non Compliant"
Compliant Orders % = DIVIDE( CALCULATE( COUNRTOWS( Table ), Table[Flag] = "Compliant" ), CALCULATE( COUNRTOWS( Table ), ALL( Table[Flag] ) )
change formatting for this new measure to % in modelling tab, and drop this measure on tooltip.
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.
Thank you Parry!
That works beautifully. Reading your post also helped me understand the structure of the measure; an area I am not very strong in at the moment.
Runnergabe
@Anonymous Glad it worked and helpful. You end up marking your own reply as "solution"
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.
Parry - oops! Corrected that.
User | Count |
---|---|
139 | |
113 | |
103 | |
77 | |
63 |
User | Count |
---|---|
135 | |
126 | |
110 | |
70 | |
61 |