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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Matrix using multiple columns w/ same pick list values

Hi all,

 

Been searching for some time and haven't found a good solution to an issue we're having in terms of building out a matrix that takes multiple columns that all have the same pick list values and summarizes them based on those that we could then slice based on other dimensions within the same table.

 

I have a single table at the moment w/ all of our data.  Simplified, the data looks like the following:

Deal#BudgetTechPlanFitValue
1YesNoYesYes10
2NoYesMaybeMaybe15
3YesNoNoYes10
4YesNoYesYes15
5YesMaybeYesNo20
6NoYesYesNo5
7NoMaybeMaybeMaybe10
8MaybeYesNoNo5
9YesYesYesYes10

 

What we'd then like to build out is a matrix like the following:

Sum of Value

 YesNoMaybe
Budget65305
Tech353530
Plan601525
Fit453025

 

Is this possible?  Much appreciated, thanks!

 

1 ACCEPTED SOLUTION

See if this works:

You can get the following by unpivoting and a simple SUM measure

Result.jpgI've attached the PBIX file

Please beware you will need to change the source of the file





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

8 REPLIES 8
PaulDBrown
Community Champion
Community Champion

The easiest way is to unpivot the table to get the "Types in rows":

Unpivot.jpg

You can then create three measures (for Yes/No/Maybe) using the following:

 

 

Yes =
CALCULATE ( SUM ( Unpivoted[Value] ), Unpivoted[Criteria] = "Yes" )

 

 

Create the matrix by putting "type" in the rows bucket and add the three measures to get:

Result.jpg

 

I've attached the sample PBIX file





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Thanks for the quick response as well as the file.  Quick follow up question; if the backend data refreshes daily, is there a way to automate this?  I created a dummy file but due to restrictions can't share from my onedrive nor can i see a way to upload here.  The actual data is over 100k rows and 50+ columns, but I think the methodology makes sense (this would be the first time using the unpivot function as i'm still new to PBI), but I'm not sure if it's something that would run daily.  Thanks again!

Sure. The unpivoting takes place as a step in Power Query, so it will create the unpivoted table automatically once it is set up. 
You can share the dummy file using a cloud service or something like wetransfer





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

that's great to hear.  Here's an attempt at sharing the dummy file

https://we.tl/t-m2khJgW8lg 

See if this works:

You can get the following by unpivoting and a simple SUM measure

Result.jpgI've attached the PBIX file

Please beware you will need to change the source of the file





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Thanks again!

Anonymous
Not applicable

can you share your powerbi file?

Anonymous
Not applicable

see the following link

https://we.tl/t-m2khJgW8lg 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.