Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
I have a Due Date column, and I want a filter that should show "Current", "Past Due", and " Near-Due Date".
When the Actual Due date is near 30 days (or more) from today(), it should show "Near-Due Date"
I tried a calculated column, but it only returns "Current" and "Past Due"
Solved! Go to Solution.
@ymirza
Set it up this way:
Assignment Due Status =
var __date = DATEDIFF(TODAY() , 'TABLE'[AssignmentDueDate], DAY) return
SWITCH(
TRUE(),
__date > 0 && __date <= 30, "Near Due",
__date <= 0, "Past Due",
"Current"
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@ymirza
Set it up this way:
Assignment Due Status =
var __date = DATEDIFF(TODAY() , 'TABLE'[AssignmentDueDate], DAY) return
SWITCH(
TRUE(),
__date > 0 && __date <= 30, "Near Due",
__date <= 0, "Past Due",
"Current"
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 22 | |
| 21 | |
| 21 | |
| 20 | |
| 13 |
| User | Count |
|---|---|
| 59 | |
| 53 | |
| 40 | |
| 31 | |
| 26 |