Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register 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
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
77 | |
76 | |
69 | |
48 | |
40 |
User | Count |
---|---|
62 | |
41 | |
33 | |
30 | |
29 |