Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Solved! Go to Solution.
I woudl recommend something like the following
DateStartedCapture=DATE(2017,1,1) DaysSinceLastIncident = VAR DeltaDateRAW = TODAY()-[DateOfLastIncident] RETURN IF(DELTA=TODAY(),TODAY()-[DateStartedCapture],DELTA)
Tipe, you don't need specify the ISBLANK() or return a BLANK() these are implied by DAX
IF([DateOfLastIncident],[result]) will do the trick. just putting a measure in the logical test of an IF is like saying IF "it has a value" then (i.e. NOT(ISBLANK()) and you don't need to specify an ELSE in DAX it will return null (i.e. BLANK()) as the else by default.
Rather than use +0 to force a zero result here is how I like to handle it.
MEASURE = VAR Result = CALCULATE(...) RETURN
IF([RESULT],[RESULT],0)
I woudl recommend something like the following
DateStartedCapture=DATE(2017,1,1) DaysSinceLastIncident = VAR DeltaDateRAW = TODAY()-[DateOfLastIncident] RETURN IF(DELTA=TODAY(),TODAY()-[DateStartedCapture],DELTA)
Tipe, you don't need specify the ISBLANK() or return a BLANK() these are implied by DAX
IF([DateOfLastIncident],[result]) will do the trick. just putting a measure in the logical test of an IF is like saying IF "it has a value" then (i.e. NOT(ISBLANK()) and you don't need to specify an ELSE in DAX it will return null (i.e. BLANK()) as the else by default.
Rather than use +0 to force a zero result here is how I like to handle it.
MEASURE = VAR Result = CALCULATE(...) RETURN
IF([RESULT],[RESULT],0)
User | Count |
---|---|
93 | |
83 | |
77 | |
72 | |
66 |
User | Count |
---|---|
114 | |
101 | |
96 | |
65 | |
60 |