Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi all, I am looking to produce a table or matrix that sums the number of sales over each of the last 4 weeks. I gather to do this I require 4 measures, one for each week - below gives most recent week, can anyone advise how to amend it for previous week? I am guessing it needs a -1 somewhere but not sure where.
Solved! Go to Solution.
Hi, @Anonymous
I suggest having a dim-date table.
In my opinion, if you have the dim-date table with the WEEK OFFSET column, that can make it easy to create a simple measure.
However, if you do not have a week offset column in your dim date table, please try something similar to the below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Thanks that is very kind.
Hi, @Anonymous
I suggest having a dim-date table.
In my opinion, if you have the dim-date table with the WEEK OFFSET column, that can make it easy to create a simple measure.
However, if you do not have a week offset column in your dim date table, please try something similar to the below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
62 | |
55 | |
55 | |
36 | |
34 |
User | Count |
---|---|
76 | |
73 | |
46 | |
45 | |
43 |