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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Alejanito
Frequent Visitor

How to group columns by year in a Matrix or Table

Hi, 

I have created a matriz where:

- Rows: Product Category

- Columns: Sales Channel By Year 2021 and 2022

- Values: Gross Sales

 

Screenshot 2022-12-11 at 17.56.18.png

 

Would it be possible to group my channels by Year?

So I can see Year Over Year:

GS Amazon Vendor 2021-2022 together,

then GS Leroy Merlin 2021-2022 together

And so on...

 

It is much easier to see what happens in each channel year over year.

 

Thanks. 

 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @Alejanito,

You can try to create a new table with all measure names, then use this field on matrix columns and above the year field.

After these steps, you can write a measure formula to extract the current row and column values and use them as conditions to look up and calculate raw table values based on current categories.

Dynamic Rows and Dynamic Columns in Power BI Matrix visual using Slicers | by Raghvendra Pratap Sing...

Regard,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

5 REPLIES 5
v-shex-msft
Community Support
Community Support

HI @Alejanito,

You can try to create a new table with all measure names, then use this field on matrix columns and above the year field.

After these steps, you can write a measure formula to extract the current row and column values and use them as conditions to look up and calculate raw table values based on current categories.

Dynamic Rows and Dynamic Columns in Power BI Matrix visual using Slicers | by Raghvendra Pratap Sing...

Regard,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Alejanito
Frequent Visitor

This is the Build Visual Panel

Screenshot 2022-12-11 at 18.24.21.png

try to remove the year hierrarchy from the columns field of the Matrix Visual.

It does not make any difference. thanks

 

Screenshot 2022-12-11 at 19.48.29.png

remove the year, keep the columns field empty

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors