cancel
Showing results for 
Search instead for 
Did you mean: 
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
Community Champion
Community Champion

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.

 



View solution in original post

3 REPLIES 3
Ritaf1983
Community Champion
Community Champion

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.

 



Thanks @Ritaf1983 

I was glad to help 🙂

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors