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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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.

 



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.

 



Thanks @Ritaf1983 

I was glad to help 🙂

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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