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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ethanlsaul
Helper I
Helper I

Pivot/Unpivot Data

Hello,

 

I have tried every combo of pivot, transpose, unpivot. I want my data to go from 

 

ProductPlantQty
123US10100
123US20200
123US30111
456US1026
456US2033
456US3056
789US10700
789US20600
789US30555

 

To this:

 

ProductUS10US20US30
123100200111
456223356
789700600555
1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @ethanlsaul ;

You could use pivot it.and the seting as follow:

vyalanwumsft_0-1653376966675.png

The final show:

vyalanwumsft_0-1653377078792.png

 


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yalanwu-msft
Community Support
Community Support

Hi, @ethanlsaul ;

You could use pivot it.and the seting as follow:

vyalanwumsft_0-1653376966675.png

The final show:

vyalanwumsft_0-1653377078792.png

 


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

GilbertQ
Super User
Super User

Hi @ethanlsaul 

 

If you use a Matrix there is an option to switch values to rows

GilbertQ_0-1652999627423.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Hi @GilbertQ,

Thanks for replying. It worked, sort of! 

 

Do you know how i would go about replacing the blanks with 0's. The tricky part here is that the data isn't null for the missing column. 3rd row, 2nd line-- there isn't a line that contains anything in the raw data for that plant + item combo. I think it needs some sort of measure, but i have failed all week to figure it out. I wrote it here: Missing Data in inputs resulting in blanks on Matr... - Microsoft Power BI Community 

 

ethanlsaul_1-1653077456301.png

 

Hi @ethanlsaul 

 

What you could do is to create a measure and where it finds a blank to replace it with zero as shown with the example below

 

Qty (With Zeros) = IF(ISBLANK('Table Name'[Qty]),0,SUM('Table Name'[Qty]))




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Not exactly-- it seems like in the field after isblank it needs another measure, which i dont have. 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.