Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 )
)
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |