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.
Hi,
I have a dashboard with 2 date columns.
Column A is a end date and column B is an extension date. I need a latest date column added with the following conditions:
If End date is > extension date then use end date,
If extension date is >= end date then use extension date else use todays date.
Note: Todays date would be used if both columns A&B were empty.
I currently have the below If statement:
Latest Date = if[Extension Date]>=[End Date],[Extension Date],if[End Date]>[Extension Date],[End Date],today()))
But it isn't giving me today's date in the outcome its leaving blank cells.
Hope this makes sense
Any help appreciated
Thanks!
Solved! Go to Solution.
Hi @Kelz0484 ,
if[Extension Date]>=[End Date] is ture in case both columns are blank, then your formula returns [Extension Date] which is blank.
This formula should do the job:
COALESCE ( MAXX ( { 'Table'[End Date], 'Table'[Extension Date] }, [Value] ), TODAY() )
Hi @Kelz0484 ,
if[Extension Date]>=[End Date] is ture in case both columns are blank, then your formula returns [Extension Date] which is blank.
This formula should do the job:
COALESCE ( MAXX ( { 'Table'[End Date], 'Table'[Extension Date] }, [Value] ), TODAY() )
Brilliant. Works a treat! Thank you so much.
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 |
---|---|
46 | |
26 | |
22 | |
12 | |
8 |
User | Count |
---|---|
73 | |
51 | |
45 | |
16 | |
12 |