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
Mohamed_Kamel
New Member

Pivoting Columns

I am trying to pivot 12 coloumns into two coloumns of Actual value and Target value. The thing is it is pivoted in two different raws, having 12 raws of actual then 12 raws of target. and it is annoying since I cant benifit from them being in the same raw to do comparisons. Here is the photo.

Please help me it is super important. I already do with th pivoting the "Don't aggregate" option.

 

Thanks in advance.

Mohamed_Kamel_0-1706195869422.png

 

2 REPLIES 2
Daniel29195
Super User
Super User

@Mohamed_Kamel 

 

can you share the intial structure of your table with some dummy data. 

that would be helpful

 

 

best regards

Hello,

It is like this but much bigger, I first unpivot the months colouns then pivot the target actual so I have the coloumn of Months then Target Then actual. But then the Target and actual are separated in different coloumns like my first photo in the original post.

 

Thanks a lot

 

 

Source.Name.1KPI codeYear to day average.Target-ActualJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
Plant 1 L95Target555555555555
Plant 1 L93Actual333333333333
Plant 2L9156787Target14150127571449714389144001375514446603314313136791429010078
Plant 2L9nullActual14106,81422015221,513816153711303413796,25634813369,51429200

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.