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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Glo_Loaisiga86
Frequent Visitor

Unpivot but show more than one row in the matrix

Hi all,

I'm building a power bi dashboard where the users can select the columns that they want to see in the table. The dashboard will be used by the users to download their savings projects report. A single project can contain 2 different project types (Cost Avoidance and Cost Reduction). Hence, in the original report, I have two rows, one showing the savings under Cost Avoidance and one showing the savings for Cost Reduction.

Glo_Loaisiga86_0-1685410148093.png

 

I made a unpivot and created a matrix, however, when filtering by the project ID, it is showing me only one row with the first value (saving amount for cost avoidance) or with the last value (saving amount for cost reduction).

Is it a way to show the 2 rows in the matrix after unpivoting?

Glo_Loaisiga86_1-1685410403161.png

 

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Glo_Loaisiga86 

A matrix is a table that aggregates data.
Similar to pivots in Excel.
Therefore, if there is a "split" data, the hierarchy is the only way to display all its layers.

Ritaf1983_0-1685413752013.png

 


Otherwise, a flat table may be used.

Ritaf1983_1-1685413798531.png

Link to the sample file 

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

 



Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @Glo_Loaisiga86 

A matrix is a table that aggregates data.
Similar to pivots in Excel.
Therefore, if there is a "split" data, the hierarchy is the only way to display all its layers.

Ritaf1983_0-1685413752013.png

 


Otherwise, a flat table may be used.

Ritaf1983_1-1685413798531.png

Link to the sample file 

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

 



Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Thanks @Ritaf1983 

I was glad to help 🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors