Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
Trying to figure out which would works best in a measure. Not sure which code to use regarding performance, etc. To me it seems that the "calculate_something()" needs to be executed twice if the outcome of the first is not blank. Anyone any ideas?
Measure =
VAR n = calculate_something()
RETURN
IF( ISBLANK( n ), 0, n )
or:
Measure =
IF( ISBLANK( calculate_something() ), 0, calculate_something() )
Or doesn't it make any difference at all?
Regards,
Sander
User | Count |
---|---|
53 | |
35 | |
20 | |
16 | |
15 |
User | Count |
---|---|
94 | |
74 | |
30 | |
22 | |
16 |