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 All, this is probably quite an easy fix, but I can't figure it out. How can I take the logic from the DAX expression below and apply it in power query?
Status =
IF (
ISBLANK ( 'Table1'[Complete Date] ),
IF ( 'Table1'[Due Date] < TODAY (), "Overdue", "Open" ),
IF (
'Table1'[Complete Date] > 'Table1'[Due Date],
"Closed - Delayed",
"Closed - On Time"
)
)
Thank you in advance
Solved! Go to Solution.
@CaveOfWonders
Add a custom column in PQ:
if [Complete Date] = null then
if [Due Date] < Date.From(DateTime.LocalNow()) then "Overdue" else "Open" else
if [Complete Date] > [Due Date] then
"Closed - Delayed" else "Closed - On Time"
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thank you 🙂
@CaveOfWonders
Add a custom column in PQ:
if [Complete Date] = null then
if [Due Date] < Date.From(DateTime.LocalNow()) then "Overdue" else "Open" else
if [Complete Date] > [Due Date] then
"Closed - Delayed" else "Closed - On Time"
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
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 |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |