Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. 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 |
---|---|
72 | |
68 | |
67 | |
41 | |
39 |
User | Count |
---|---|
48 | |
44 | |
29 | |
28 | |
28 |