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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!