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.
Hello Community,
I hope you are good and wondering if you can help me please.
I'd like to create a new column called STATUS which says:
1) Before today = Overdue
2) Today = Due Today
3) After today = Upcoming
Thanking you very much in advance.
Solved! Go to Solution.
You could create a column like
Status =
VAR DaysDiff =
DATEDIFF ( TODAY (), 'Table'[Scheduled date], DAY )
RETURN
SWITCH (
TRUE (),
DaysDiff < 0, "Overdue",
DaysDiff > 0, "Upcoming",
"Due today"
)
Thank you Jon, it got me started. Much appreciated
You could create a column like
Status =
VAR DaysDiff =
DATEDIFF ( TODAY (), 'Table'[Scheduled date], DAY )
RETURN
SWITCH (
TRUE (),
DaysDiff < 0, "Overdue",
DaysDiff > 0, "Upcoming",
"Due today"
)
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 |
---|---|
49 | |
26 | |
21 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |