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! Get ahead of the game and start preparing now! Learn more
Hi
I am having below table
I want to calculate the count of "Yes" for each date as well as total counts for each date and do the ratio. I need to have below table
My date has more than 2000 records with 200 different dates. I am not sure how to do this DAX calculation? Can anyone advise this?
Solved! Go to Solution.
HI,
CountofYES = calculate(counta(table[datecolumn]),table[category]="YES")
Countofall = counta(table[datecolumn])
Ratio = divide(Count_of_YES,Count_of_all,0)
Appreciate a Kudos! 🙂
If this helps and resolves the issue, please mark it as a Solution! 🙂
Regards,
N V Durga Prasad
HI,
CountofYES = calculate(counta(table[datecolumn]),table[category]="YES")
Countofall = counta(table[datecolumn])
Ratio = divide(Count_of_YES,Count_of_all,0)
Appreciate a Kudos! 🙂
If this helps and resolves the issue, please mark it as a Solution! 🙂
Regards,
N V Durga Prasad
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 44 | |
| 40 | |
| 29 | |
| 19 |
| User | Count |
|---|---|
| 200 | |
| 129 | |
| 103 | |
| 72 | |
| 56 |