Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
saitks99
Microsoft Employee
Microsoft Employee

How to Create a Ratio Measure

saitks99_0-1600848621544.png

Forumal for measure : 

Ratio = (CALCULATE(SUM(Query1[RenewalCount]),FILTER(Query1, Query1[EligibleTrackingDay]== "1")))
 
I want Ratio column to show the renewal count as 8360492 in both the rows, why it is only showing up when EligibleTrackingDay == 1 ?
1 ACCEPTED SOLUTION

Hi , @saitks99 

Try to use function"All "as below :

Ratio = (CALCULATE(SUM(Query1[RenewalCount]),FILTER(ALL(Query1),Query1[EligibleTrackingDay] = 10)))

 

Best Regards,
Community Support Team _ Eason

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@saitks99 ,

 

Your formula should be like
Ratio = (CALCULATE(SUM(Query1[RenewalCount]),FILTER(Query1, Query1[EligibleTrackingDay]= "1")))

 

But Ratio should be like

Ratio = divide(CALCULATE(SUM(Query1[RenewalCount])),CALCULATE(SUM(Query1[RenewalCount]),all(Query1)))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

I over simplified my question:

 

saitks99_0-1600882742088.png

 

Actually, this is what I have, Forumula used for Ratio : 

Ratio = (CALCULATE(SUM(Query1[RenewalCount]),FILTER(Query1,Query1[EligibleTrackingDay] = 10)))
 
***I want 8488163 should be repeated in entire table, help me out !

Hi , @saitks99 

Try to use function"All "as below :

Ratio = (CALCULATE(SUM(Query1[RenewalCount]),FILTER(ALL(Query1),Query1[EligibleTrackingDay] = 10)))

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Users online (23,888)