The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |