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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Globus
New Member

Relative Date filter - this week

Hi,

Setting the "Relative Date" filter at the Visual level to "This Week" does not work correctly. It is not possible to change the schedule of the week from English Sunday - Saturday to our Monday - Sunday. I tried setting the locale and unfortunately I couldn't change it. Does anyone know any help on how to do this?

1 ACCEPTED SOLUTION
v-robertq-msft
Community Support
Community Support

Hi, @Globus 

According to your description, it seems that you are facing the problem that you can’t change the schedule of the week in the “Relative Date” filter, I think the first way to can try is to change the regional setting of the computer and the Power BI desktop to check if it can work:

v-robertq-msft_0-1622685805822.png

v-robertq-msft_1-1622685805832.png

 

If it can’t work, you can try to use the WEEKNUM() function in DAX to create a measure to achieve the same filter as this:

Flag =

IF ( WEEKNUM ( MAX ( [Date] ), 1 ) = WEEKNUM ( TODAY (), 1 ), 1, 0 )

Then set the visual filter like this:

v-robertq-msft_2-1622685805837.png

 

And you can also get what you want.

More info about the WEEKNUM() function in DAX

 

You can download my test pbix file below

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

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

2 REPLIES 2
v-robertq-msft
Community Support
Community Support

Hi, @Globus 

According to your description, it seems that you are facing the problem that you can’t change the schedule of the week in the “Relative Date” filter, I think the first way to can try is to change the regional setting of the computer and the Power BI desktop to check if it can work:

v-robertq-msft_0-1622685805822.png

v-robertq-msft_1-1622685805832.png

 

If it can’t work, you can try to use the WEEKNUM() function in DAX to create a measure to achieve the same filter as this:

Flag =

IF ( WEEKNUM ( MAX ( [Date] ), 1 ) = WEEKNUM ( TODAY (), 1 ), 1, 0 )

Then set the visual filter like this:

v-robertq-msft_2-1622685805837.png

 

And you can also get what you want.

More info about the WEEKNUM() function in DAX

 

You can download my test pbix file below

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

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

amitchandak
Super User
Super User

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.