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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
v-jtian-msft
Community Support
Community Support

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 @v-jtian-msft 

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?

@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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors