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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

SUMX Measure referencing another Measure

Hi all,

I am writing a SUMX + IF formula that references another formula and the results are just slightly different than they're supposed to be.

 

Screenshot of table visual

 

JakeHRogers_0-1604686481534.png


Measures

 

Measure = 
CALCULATE(
SUM( REVENUE[USD_BUDGET_AMT] )
, REVENUE[GL_REVENUE_CATEGORY_CD] = "BRR"
|| REVENUE[GL_REVENUE_CATEGORY_CD] = "Billable Run Rate"
)
Measure 2 = 
CALCULATE(
[Measure]
, REVENUE[GL_SEG4_TIER2_DESC] = "Wavelengths"
|| REVENUE[GL_SEG4_TIER2_DESC] = "IP"
|| REVENUE[GL_SEG4_TIER2_DESC] = "Private Line"
|| REVENUE[GL_SEG4_TIER2_DESC] = "Dark Fiber"
)
Measure 3 = 
CALCULATE(
[Measure]
, REVENUE[GL_SEG4_TIER2_DESC] = "Colocation and Data Center"
)

 

Measure 4 = 
SUMX(
REVENUE
, IF(
REVENUE[PROJECT] = "Hamburg Colo2 Expansion"
, [Measure 3]
, [Measure 2]
)
)


I am trying to make 'Measure 4' return the same values as 'Measure 2' (or 'Measure' for each of the product lines that are filtered in 'Measure 2') but for some reason 'Measure 4' is nearly always slightly higher than 'Measure'/'Measure 2' and after many hours of forum searching and keyboard smashing, I am finally defeated.

Any ideas?

Data model in case it ends up being relevant:
Model.png

 
 


Thanks

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

Measure 4 = 
SUMX( 
VALUES(REVENUE[PROJECT])
, IF(
REVENUE[PROJECT] = "Hamburg Colo2 Expansion"
, [Measure 3]
, [Measure 2]
)
)

View solution in original post

2 REPLIES 2
wdx223_Daniel
Super User
Super User

Measure 4 = 
SUMX( 
VALUES(REVENUE[PROJECT])
, IF(
REVENUE[PROJECT] = "Hamburg Colo2 Expansion"
, [Measure 3]
, [Measure 2]
)
)
AlB
Community Champion
Community Champion

Hi @Anonymous 

Why would you expect them to reurn the same values?

Can you share the pbix?

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

 

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

 

Cheers 

 

SU18_powerbi_badge

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.