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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ShevKov
New Member

Combine 2 measures

Hi all, I have created two measures that work. Now my goal is to combine these into 1 measure with the rule being: if for a certain period (date) measure 1 does not return anything, the results from measure 2 should be displayed.

 

Is there any equivalant for IF(ISBLANK( that can be used for this situation?

Two measures are based on same column but with different filter:

Measure 1 = CALCULATE(SUM('Table'[column]),'Table'[column2] = FALSE())

Measure 2 = CALCULATE(SUM('Table'[column]),'Table'[column2]= TRUE())

 

If more information about the case is needed, please ask.

Any help is very welcome, thank you!

 

PS: any other topics on this subject were not applicable.

1 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

@ShevKov , if, at any moment, one of [Meaure 1] and [Measure 2] is blank, you might simply combine them this way,

Measure Combined = [Meaure 1] + [Measure 2]

Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

3 REPLIES 3
CNENFRNL
Community Champion
Community Champion

@ShevKov , if, at any moment, one of [Meaure 1] and [Measure 2] is blank, you might simply combine them this way,

Measure Combined = [Meaure 1] + [Measure 2]

Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Anonymous
Not applicable

Hi, 

however you can't do that if you try to sum (not total summation) measure from different tables. 

how can you solve that?

amitchandak
Super User
Super User

@ShevKov , is not same as sum('Table'[column])

 

or if(isblank([measure 1]), [measure 2],[measure 1])

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors