- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Configure first day of week for "relative date" filter on page or visual
Hi everyone,
I'm building a report, which is based on calendar weeks. I'd like to filter data on some visuals to the last n calendar weeks. Unfortunately it seems as if those weeks are as ranging from sunday to saturday - which interferes with the measures and date dimesnion I've created (as my week starts on monday, data from the last sunday is not considered as it should ... just a tiny error, but still an error).
Is there a way to configure the definition of a week for page/visual filters? Alternatively: Is there a way to programmatically define a custom filter on the page/visual?
Any help is appreciated.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

This is a long standing bug which Microsoft chooses to ignore unfortunately....
Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!
Proud to be a Super User!
Paul on Linkedin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

This is a long standing bug which Microsoft chooses to ignore unfortunately....
Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!
Proud to be a Super User!
Paul on Linkedin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Edit:
I have
1. a table with events consisting of a date and a description
2. a date dimension table (marked as date table) with a european calendar week calculated from "EuropeanCalendarWeek = WEEKNUM(DimDate[Date], 21)"
3. a relation between the two date columns
4. a measure counting the events
This is what I get as visuals
The topmost table shows the data and the linked european calendar week.
The "Unfiltered" matrix shows the calendar weeks and their respective count.
The "Filtered ..." is a copy with a filter applied to the visual.
I assume, that "Event #4" is not included, because the visual filter uses a calendar week which starts on Sunday an thus would sort "Event #4" into week 51 (which at the time of writing would be the current week).
So, I want to configure the start date of the visual filter as I can do it with the "WEEKNUM" function. Is that possible?
Alternatively: Can I programmatically apply a filter to a visual (or page), which calcualtes the european calendar week start end end dates based on the current date?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

HI @juergenroehr-rd,
>>So, I want to configure the start date of the visual filter as I can do it with the "WEEKNUM" function. Is that possible?
Yes, this part is possible to achieve. You can use aggregate function to extract text selection from filter/slicer then you can use date function with these to calculate the correspond date values.
Row Context and Filter Context in DAX - SQLBI
BTW, current power bi does not support create dynamic calculated column/table based on filter effects.
Regards,
Xiaoxin Sheng
If this post helps, please consider accept as solution to help other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @juergenroehr-rd ,
Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
If this post helps, please consider accept as solution to help other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @v-shex-msft,
thank you for the reply. Unfortunately I get a "PBIX is not allowed" when trying to attach a demo file. So, I added a description which hopefully makes the case more understandable.
Regards
Jürgen Röhr

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
02-28-2024 06:39 AM | |||
09-20-2024 12:10 PM | |||
07-06-2023 11:28 PM | |||
04-14-2024 07:24 AM | |||
07-05-2024 04:25 PM |
User | Count |
---|---|
83 | |
79 | |
53 | |
39 | |
37 |
User | Count |
---|---|
104 | |
85 | |
47 | |
43 | |
42 |