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 assume you are using a calculated column not a measure and it will be difficult to have different data types like numerical figures and text values. I would return a standard value in response to blank expiry date like 99999.
Expiry Days =
IF (
'learning obj'[Actual Expiry Date] = BLANK (),
99999,
TODAY () - 'learning obj'[Actual Expiry Date]
)
if you are ok with storing the days in text format then you can use a formula like this:
Expiry Days =
IF (
'learning obj'[Actual Expiry Date] = BLANK (),
"No Expiry Date",
FORMAT ( TODAY () - 'learning obj'[Actual Expiry Date], 0 )
)
Work perfectly.
Thank you 🙂
I assume you are using a calculated column not a measure and it will be difficult to have different data types like numerical figures and text values. I would return a standard value in response to blank expiry date like 99999.
Expiry Days =
IF (
'learning obj'[Actual Expiry Date] = BLANK (),
99999,
TODAY () - 'learning obj'[Actual Expiry Date]
)
if you are ok with storing the days in text format then you can use a formula like this:
Expiry Days =
IF (
'learning obj'[Actual Expiry Date] = BLANK (),
"No Expiry Date",
FORMAT ( TODAY () - 'learning obj'[Actual Expiry Date], 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 |
---|---|
41 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
43 | |
36 | |
33 | |
18 | |
18 |