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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.