Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I was wondering if in my scenario this is at all possible to accomplish.
What I would like to do is to create dynamic header names for my table visual that will change depending on the week number. The previous week column is a dynamic value, which i utilise in my report for filtering purposes as we only want to look into 5 weeks into the past.
Above is the final outcome I would like to achieve. As of now these header names are derived from the measure names and these will not change as we progress into the future weeks.
So for instance assuming we were in week 35 at present, week 4 would turn into week 34, week 3 into week 33 etc. and these header names would reflect that accordingly.
Hopefully it makes sense.
Thanks for your support in advance!
You can use a visual level filter using date column from your date table, and then use the filter type as relative then select past 5 weeks
Hi @Klaudiusz ,
From what I understood you need the columns to be dynamic right?
I just created the following measure and added it into the matrix column part:
Is this what you were looking for ?
I didnt get the previous week part. if that needs to taken in consideration could you please elaborate the requirement for me ?
I hope I was able to resolve your issue. If so please tag this as the answer to help others as well. 😊
Hi @Gayatri_D05 Let me elaborate on the topic.
I'm only interested in displaying 5 weeks prior to the present time in one table visual hence why I have got the "Previous weeks" column which is made out of the following formula:
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
86 | |
49 | |
45 | |
38 | |
37 |