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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Matrix

Hello everyone, they ask me for a complicated report but I have not managed to put it together I detail the requested report.

1. Sellers

2. Sales data per week between the years 2021 and 2022

3. Make an accumulated from week 1 to 48 of the year 2021

4. Show individual week 49 to 53 of the year 2021

5. In the same report show the weeks by individual of the year 2022

6. Obtain metrics of sales increase per seller by comparing last weeks and previous week of the year 2022.

I show you how far I have come and you can get the subsection 1 to 4 but when I want to place it the weeks of the year 2022 these are also placed in the year 2021.

I attach an image of how the report is shown, in steps 1 to 4

cjpg77_0-1648054239335.png

When I want to add step 5 that are the weeks of the year 2022 from week 1 what the matrix does is that it adds week 1 in the year 2021 and that week I do not want it to be shown in that year and adds the columns that are in the year 2021 in the year 2022 attached image of the report.

cjpg77_1-1648054420532.png

and what they ask me is that it be shown in this way this is an excel.

cjpg77_2-1648054678319.png

I have even created measures that are filtered by the year but always add the column in 2021, an example of a measure that uses

Week 1 for 2022 = CALCULATE([Week 1], 'Calendar'[Year] IN { 2022 })
I would greatly appreciate your help with this report it can not be that I am complicated life and is a solution easier than I think.
As a comment, I don't have much time working with Power BI.
Thanking you for your help and your time
Best regards
1 REPLY 1
lbendlin
Super User
Super User

Create a YearWeek column and then create groups based on your requirements.

 

Or use a SWITCH statement to define the aggregation level for each Year and week.

 

Please provide sanitized sample data that fully covers your issue. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.