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.
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)
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 |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |