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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a column I need to filter. As of Now I have it like this:
I tried this but it's giving me error:
Solved! Go to Solution.
@Anonymous ,
BeforeToday_MI = IF( datevalues(Query_Util[MoveInDate]) < TODAY() && weekday(Query_Util[MoveInDate],2) <6 , True, False)
What if I want to get the days that are not Saturday or Sunday?
(My bad; I forgot to include that specification before. I need work days. Your code works perfectly; I just need to act the condition of filtering out Sunday as well.)
Hi @Anonymous ,
Did you get your problem solved? If it was solved, please mark it as a solution so that more people can find it. If not, refer to the following.
weekday(Query_Util[MoveInDate],2) return result follow the following rule.
week begins on Monday (1) and ends on Sunday (7).
If you only want filter out sunday, then weekday(Query_Util[MoveInDate],2) <7. Or enter the day you want like this:
weekday(Query_Util[MoveInDate],2) = 1 &&
weekday(Query_Util[MoveInDate],2) = 2 &&
weekday(Query_Util[MoveInDate],2) = 3 &&
weekday(Query_Util[MoveInDate],2) = 4
More detail you can refer this function.
WEEKDAY function (DAX) - DAX | Microsoft Docs
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |