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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors
Top Kudoed Authors