Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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())
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.
Solved! Go to Solution.
@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! |
@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! |
Hi,
however you can't do that if you try to sum (not total summation) measure from different tables.
how can you solve that?
@ShevKov , is not same as sum('Table'[column])
or if(isblank([measure 1]), [measure 2],[measure 1])
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
56 | |
27 | |
24 | |
14 | |
9 |
User | Count |
---|---|
77 | |
61 | |
47 | |
17 | |
12 |