Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Robyrubyjane
Frequent Visitor

date

hi I want to ask, so I have data like this rental start and rental end, I want the output in the SLA column if today's date is close to the rental end date then the output will be "near overdue", if today's date has reached the rental end then the output will be "overdue" but if today's date has passed from the rental end date maybe about a month then the output will be "flag overdue"Screenshot_20230206_091833.png

1 ACCEPTED SOLUTION
jaweher899
Impactful Individual
Impactful Individual

please try;

SLA =
SWITCH(
TRUE(),
TODAY() >= [Rental End], "Overdue",
TODAY() >= DATE([Rental End], -30), "Flag Overdue",
TODAY() >= [Rental End] - 7, "Near Overdue",
"Valid"
)

View solution in original post

2 REPLIES 2
jaweher899
Impactful Individual
Impactful Individual

please try;

SLA =
SWITCH(
TRUE(),
TODAY() >= [Rental End], "Overdue",
TODAY() >= DATE([Rental End], -30), "Flag Overdue",
TODAY() >= [Rental End] - 7, "Near Overdue",
"Valid"
)

thank you, I'll try this one

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.