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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi Guys, may i know how to calculate ratio based on the situation below ?
The picture below show 10 row, 8 is yes, 2 is no. how can i create measure to calculate ratio of line item that it yes.
expected result is , 8/10 = 0.8
Solved! Go to Solution.
@Anonymous Try:
Measure = DIVIDE(COUNTROWS(FILTER('Table',[Context]="Yes")), COUNTROWS('Table'),0)
Hi @Anonymous,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
@Anonymous Try:
Measure = DIVIDE(COUNTROWS(FILTER('Table',[Context]="Yes")), COUNTROWS('Table'),0)
| User | Count |
|---|---|
| 50 | |
| 42 | |
| 36 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 139 | |
| 128 | |
| 60 | |
| 59 | |
| 57 |