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.
Hello Folks,
I have a data which looks like
Category | Type | Username | Date | Comments | Share | Likes |
mem1 | type1 | abc | 2024-02-12 | 1 | 0 | 0 |
mem1 | type1 | mno | 2024-01-31 | 0 | 1 | 0 |
mem1 | type1 | mno | 2024-01-31 | 0 | 1 | 0 |
mem2 | type1 | def | 2024-02-12 | 1 | 0 | 2 |
mem2 | type2 | ghi | 2024-02-12 | 0 | 1 | 0 |
mem2 | type2 | pqr | 2024-01-31 | 0 | 1 | 0 |
mem2 | type3 | stu | 2024-02-08 | 0 | 0 | 1 |
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.
Category | Type | Username | Date | Comments | Share | Likes |
mem1 (3) 🔽 | 1 | 2 | 0 | |||
mem2 (4) 🔽 | 1 | 2 | 3 | |||
Total | 2 | 4 | 3 |
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
Can someone help me with this?
Thank You!!!
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
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.
Here is the result
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,
Category | Type | Username | Date | Comments | Share | Likes |
mem1 (3) | 1 | 2 | 0 | |||
mem2 (4) | 1 | 2 | 3 | |||
Total | 2 | 4 | 3 |
and the default selection of First/Last/Count etc. in column options for values is stopping me to achieve this.
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.
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 |
---|---|
64 | |
56 | |
54 | |
36 | |
34 |
User | Count |
---|---|
85 | |
73 | |
55 | |
45 | |
43 |