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.
Good Morning,
Evaluating the values of a kpi on daily basis (mon, tue, ...) on the current week I have troubles:
A-Making the current weekday start with monday (in the data filter, when setting current week power bi automatically sets Sunday as first day)
B-Ordering the values shown in the matrix (exception made for sunday due to "A") from monday to saturday.
To this extent, I've developed the columns:
As day "Day of Week Name" is text I would like to keep the ordering also without concatenating the weekday as text, but showing only the name of the week day.
Thank you.
Solved! Go to Solution.
Hi @Anonymous ,
I'm not sure about your problem.
If you want to filter the data from Monday to Saturday of the current week, you can try this:
iscurrent_week = IF(YEAR('Table'[Date])=YEAR(TODAY())&&WEEKNUM('Table'[Date],2)=WEEKNUM(TODAY(),2)&&'Table'[weekday]<7,1,0)
If you want Sunday data to be displayed as Saturday data, you can try this:
Column = IF('Table'[weekday]=7,CALCULATE(MAX('Table'[Date]),FILTER(ALLEXCEPT('Table','Table'[Date].[Year],'Table'[weeknum]),'Table'[weekday]=6)),'Table'[Date])
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for you answer!
Instead, for the date filter starting the week on sunday? Otherwise the data that is shown for sunday(t) is the one of Week(t-1).
Hi @Anonymous ,
I'm not sure about your problem.
If you want to filter the data from Monday to Saturday of the current week, you can try this:
iscurrent_week = IF(YEAR('Table'[Date])=YEAR(TODAY())&&WEEKNUM('Table'[Date],2)=WEEKNUM(TODAY(),2)&&'Table'[weekday]<7,1,0)
If you want Sunday data to be displayed as Saturday data, you can try this:
Column = IF('Table'[weekday]=7,CALCULATE(MAX('Table'[Date]),FILTER(ALLEXCEPT('Table','Table'[Date].[Year],'Table'[weeknum]),'Table'[weekday]=6)),'Table'[Date])
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
That's what I was looking for:
If you want to filter the data from Monday to Saturday of the current week, you can try this:
iscurrent_week = IF(YEAR('Table'[Date])=YEAR(TODAY())&&WEEKNUM('Table'[Date],2)=WEEKNUM(TODAY(),2)&&'Table'[weekday]<7,1,0)
Thank you very much!
@Anonymous
You have an optional parameter on WEEKDAY to choose when the week starts. your formula could be
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
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 |
---|---|
84 | |
75 | |
68 | |
41 | |
35 |
User | Count |
---|---|
102 | |
56 | |
52 | |
46 | |
40 |