Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 51 | |
| 46 | |
| 23 | |
| 19 |
| User | Count |
|---|---|
| 141 | |
| 113 | |
| 50 | |
| 37 | |
| 30 |