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
Anonymous
Not applicable

How to create measure referring to other measure

I'm having trouble using DAX to create a measure that refers to another measure.

 

The following are all in the same table:

 

XGeo_IN_Act is a custom column with the following formula:

XGeo_IN_Act = if('In Activations w/ Flag'[IN_Cross_Intra_Same] = "Same Country",0,if('In Activations w/ Flag'[IN_Cross_Intra_Same] = "Intra Geo", 0, 'In Activations w/ Flag'[Total_Activations]))
 

Total_Act_Unfilter is a measure with the following formula: 

Total_Act_Unfilter = CALCULATE(sum('In Activations w/ Flag'[Total_Activations]),ALL('In Activations w/ Flag'[IN_Cross_Intra_Same]))
*I have a visual which uses "IN_Cross_Intra_Same" as a filter, which "Total_Act_Unfilter" is meant to ignore. The "Total_Act_Unfilter" measure works on its own and will display data in my visual.
 
XGEO_perc is a measure with the following formula:
XGEO_perc = sum('In Activations w/ Flag'[XGeo_IN_Act])/sum('In Activations w/ Flag'[Total_Act_Unfilter])
 
See below sample data:
 
IN_Cross_Intra_SameTotal_ActivationsXGEO_IN_Act
Intra Geo90
Intra Geo30
Intra Geo20
Intra Geo60
Intra Geo70
Cross Geo22
Cross Geo88
Cross Geo99
Cross Geo99
Cross Geo66
Same Country10
Same Country40
Same Country00
Same Country50
Same Country20

 

Here, the measure Total_Act_Unfiltered equals 73 (sum of Total_Activations). The measure XGEO_perc would equal 47% (sum of XGEO_IN_Act divided by sum of Total_Activations).

 
When I try to create the XGEO_perc measure, I get the following error:
nawtigo_1-1666244023600.png
 
I then tried to correct this by using the following formula instead and got the same error.
Total_Act_Unfilter = CALCULATE(VAR Tot_Act_Unfilter = sum('In Activations w/ Flag'[Total_Activations]) return Tot_Act_Unfilter,ALL('In Activations w/ Flag'[IN_Cross_Intra_Same]))

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Total_Act_Unfilter is measure, not need to sum again

 

divide( sum('In Activations w/ Flag'[XGeo_IN_Act]),[Total_Act_Unfilter])

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Total_Act_Unfilter is measure, not need to sum again

 

divide( sum('In Activations w/ Flag'[XGeo_IN_Act]),[Total_Act_Unfilter])

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
Anonymous
Not applicable

Was banging my head on the wall with this, thanks a lot Amit.

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
Top Kudoed Authors