Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello team,
I have the following data coming directly from my client's system:
Order number | Status | StatusDate (m/d/y) |
AB1 | Closed | 7/5/2023 |
AB2 | In progress | 7/6/2023 |
AB3 | Open | 7/7/2023 |
I need to add a new column with an indicator (Ok/Not OK) when the status is different than "Closed" and it hasn't been changed in the last 3 days. The problem here is that for every Order, the status&date are re-written when it happens, and there are no list of all dates during the proceess of status changing. I have only the date of the last change.
Is there any way to get this additional column with current data or somehow to compare the statusdate with today, in order to see if there is a status change in the last 3 days?
Thank you.
Solved! Go to Solution.
new column
= Switch(True(),
[Status] <>"Closed" && [Status Date] >= today() -3 && & [Status Date] <= today(), "OK",
"No Ok"
)
Add more rules as per need
new column
= Switch(True(),
[Status] <>"Closed" && [Status Date] >= today() -3 && & [Status Date] <= today(), "OK",
"No Ok"
)
Add more rules as per need
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
70 | |
55 | |
37 | |
31 |
User | Count |
---|---|
83 | |
64 | |
63 | |
49 | |
45 |