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, I want to create a calculated measure or column that has me select last week's sales and sales from the beginning of the year to last week. I want this to also be a filter so that I can decide if I want to see sales either by previous week or all weeks up to the previous week. What code should I write?
Thank you
What does "week" mean to you? Does your calendar table have yearweek numbers?
exactly!
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 |
---|---|
14 | |
11 | |
10 | |
10 | |
9 |
User | Count |
---|---|
18 | |
13 | |
12 | |
11 | |
8 |