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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Steffen1
Frequent Visitor

Power BI Filter returns wrong Date Range

Hi Community, 

 

I have another problem with the Date / Time intelligence 

 

I have a Data Model with a custom date table which is defined as a date table. 

In options I disabled the auto date / time for this file and global.

In a visual I want to filter based on the Date column of my custom Date Table a relative date for this week.  

 

Now my problem: Today is Sunday 12.11.2023 and according to my custom date Table it would be week 45 starting Monday 06.11.2023 to Sunday 12.11.2023. ( blue frame 😞 

Steffen1_0-1699794672993.png

However, applying the filter he selects 12.11.2023 Sunday to Friday 18.11.2023 (green frame) : 

Steffen1_1-1699794730324.png

It seems the filter does not consider the week from my custom date table. 

 

I would be thankful for any idear why the filter choose the "wrong date" and if possible, how to change it ?

 

Best regards

 

 

1 ACCEPTED SOLUTION

Hi some_bih, 

 

thank you for checking into this problem, 

 

my weekday starts on Mondays, as you can see in the column "Day of Week No for Sort " its 0 Monda - 6 Sunday. 

 

I did the Date Table within Power Query not with Dax.

 

Meanwhile I created a solution with the "offset-method":  https://www.youtube.com/watch?v=NKr2TizM-KU

View solution in original post

2 REPLIES 2
some_bih
Super User
Super User

Hi @Steffen1 

as weeks are involved, details are important 🙂

please check your definition for weekday when it start, like is it Sunday or Monday

If you use WEEKNUM function please notice that different values could return different start of week, like 2 is Monday.

Check link for some details

https://learn.microsoft.com/en-us/dax/weeknum-function-dax?WT.mc_id=DP-MVP-4025372 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Hi some_bih, 

 

thank you for checking into this problem, 

 

my weekday starts on Mondays, as you can see in the column "Day of Week No for Sort " its 0 Monda - 6 Sunday. 

 

I did the Date Table within Power Query not with Dax.

 

Meanwhile I created a solution with the "offset-method":  https://www.youtube.com/watch?v=NKr2TizM-KU

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

Top Solution Authors