Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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])
User | Count |
---|---|
50 | |
23 | |
18 | |
18 | |
14 |
User | Count |
---|---|
91 | |
85 | |
46 | |
28 | |
21 |