Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |