Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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 )
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
12 | |
10 | |
10 | |
8 |
User | Count |
---|---|
16 | |
15 | |
14 | |
13 | |
10 |