Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I'm trying to get a new column created where i will have a status based on the date in a column....
My formulas look like this:
=if [TARGSTARTDATE] < DateTime.LocalNow() then "Needs Rescheduled"
else if [TARGSTARTDATE] >= DateTime.LocalNow() then "Scheduled"
else if [TARGSTARTDATE] = null then "No date"
else "Not"
Problem is for the records where the date is "null", i get an error instead of the "No date" like i want...
Any help would be appreciated.
Solved! Go to Solution.
The column is a Date data type and it is expecting a date...
I think i solved the issue by creating a new column with the date difference between todays and that date... if its 0 then label as No date...
Thanks
Why not let the value remain Null and change it in the Query editor by replacing the "meaning" of null?
Click on Edit Query, Home, Replace Values and then replace the value "null" with "No Date"
PS: you have to select the column where you want this change to happen
The column is a Date data type and it is expecting a date...
I think i solved the issue by creating a new column with the date difference between todays and that date... if its 0 then label as No date...
Thanks
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 33 | |
| 32 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 64 | |
| 44 | |
| 30 | |
| 28 |