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

Join 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.

Reply
vicky1610
Frequent Visitor

How to avoid aggregation of categorical data in Matrix Visual?

Hello Folks,

I have a data which looks like

 

CategoryTypeUsernameDateCommentsShareLikes
mem1type1abc2024-02-12100
mem1type1mno2024-01-31010
mem1type1mno2024-01-31010
mem2type1def2024-02-12102
mem2type2ghi2024-02-12010
mem2type2pqr2024-01-31010
mem2type3stu2024-02-08001

 

I want to display it in Matrix visual so that it looks like the below and on expanding (clicking 🔽 ) it should show rows like table as above with all relative information for that category.

CategoryTypeUsernameDateCommentsShareLikes
mem1 (3)      🔽   120
mem2 (4)      🔽   123
Total   243

 

I tried it using matrix visual, but I am facing issue that for any column which is not number, matrix visual takes either first value or count etc. and there is no way to restrict it. Please See below snapshots

vicky1610_2-1716377276427.png 

vicky1610_3-1716377316712.png

 

Can someone help me with this?

Thank You!!!

 

 

3 REPLIES 3
Anonymous
Not applicable

Hi,@vicky1610 
I am glad to help you.

Hello, you can use Unpivot to change the data after using the matrix to complete the target effect

Here are my test results for your reference

vjtianmsft_0-1716435806670.png

This is your existing data

 

You will need to move your data:

Select both the [Category] column and the [Date] column, and Unpivot the selection to the other columns

like this.

vjtianmsft_1-1716435821304.png

vjtianmsft_2-1716435831885.png

Here is the result

vjtianmsft_3-1716435846781.png

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Anonymous 

Thank you for the response!

 

The approach you provided does not leads me to what I am trying to achieve.

I want the matrix to be look like this,

CategoryTypeUsernameDateCommentsShareLikes
mem1 (3)      vicky1610_0-1716453911529.png   120
mem2 (4)      vicky1610_1-1716453911532.png   123
Total   243

 

and the default selection of First/Last/Count etc. in column options for values is stopping me to achieve this.

vicky1610_2-1716454452015.png

Is there any way by which I can take direct value from source as it is or any measure can help?

Anonymous
Not applicable

@vicky1610 
Unfortunately,if you want to put fields into values fields in the matrix, the data in this field is aggregated by default (as with measure) to show a scalar value, so if you don't want to use the default Values aggregation effect in the matrix, I recommend that you manually create your own measures as needed. However, for non-numeric fields, there are fewer aggregation functions available (max,min, etc).

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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