Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Daily Ordering and monitoring

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:

 

Weekday = WEEKDAY([Data]-1) 
Day of Week Name = FORMAT([Data], cp01[Weekday] & "_" & "ddd")

marcoproserpio_0-1623398178948.png

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.

1 ACCEPTED 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)

V-lianl-msft_0-1623738238800.png

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])

V-lianl-msft_1-1623738542534.png

 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

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).

 

marcoproserpio_0-1623400690696.png

 

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)

V-lianl-msft_0-1623738238800.png

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])

V-lianl-msft_1-1623738542534.png

 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

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!

Fowmy
Super User
Super User

@Anonymous 

You have an optional parameter on WEEKDAY to choose when the week starts. your formula could be

Day of Week Name = WEEKDAY([Date] , 2 ) &"_" & FORMAT([Date] , "Ddd")

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.