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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

transpose

Hello,

 

I want to know how I can transpose this data from columns to rows. I have lot of columns like that but just for example sharing an example,

 

NamePlanindexProject NameScheduled DateL21L213L19N19L7L8L6N6L25 C1L25 C2N25 C1N25 C2
A02046BExisting1EU10/28/2022131112121 611    
A02046BExisting2EU10/28/2022232122222 622    
A02046BExisting3EU10/28/2022333132323 633    
A02092BNew1COV11/16/20221 112121 611131141301 
A02092BNew2COV11/16/20222 122222 622132142302 
A02092BNew3COV11/16/20223 132323 633133143303 
B01062AExisting1EU11/30/20221 112121 611131 301311
B01062AExisting2EU11/30/20222 122222 622132 302312
B01062AExisting3EU11/30/20223 132323 633133 303313
B02614AExisting1AN12/28/20221 1121  611131141301311
B02614AExisting2AN12/28/20222 1222  622132142302312
B02614AExisting3AN12/28/20223 1323  633133143303313

 

output:

band is the data that is been transposed from L21 to N25 C2 and tech is the column that is telling which band as there are duplicates.

 

NameBandScheduled DateProject NamePlanTech
A02046B110/28/2022EUExistingL21
A02046B210/28/2022EUExistingL21
A02046B310/28/2022EUExistingL21
A02046B3110/28/2022EUExistingL213
A02046B3210/28/2022EUExistingL213
A02046B3310/28/2022EUExistingL213
A02046B1110/28/2022EUExistingL19
A02046B1210/28/2022EUExistingL19
A02046B1310/28/2022EUExistingL19
A02046B2110/28/2022EUExistingN19
A02046B2210/28/2022EUExistingN19
A02046B2310/28/2022EUExistingN19
A02046B2110/28/2022EUExistingL7
A02046B2210/28/2022EUExistingL7
A02046B2310/28/2022EUExistingL7
A02046B6110/28/2022EUExistingL6
A02046B6210/28/2022EUExistingL6
A02046B6310/28/2022EUExistingL6
A02046B110/28/2022EUExistingN6
A02046B210/28/2022EUExistingN6
A02046B310/28/2022EUExistingN6

 

 

5 REPLIES 5
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @Anonymous.


What do you mean with derived from other columns? Do you work with Power BI Desktop? How did you et the data into Power BI Desktop?

 

Best regards

Michael

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!
Anonymous
Not applicable

so in power querry those columns are not there, these are derived from combination of other columns that are there in the pbi

Hi @Anonymous 

 

Sorry but I do not really understand.

 

 

Do you even use Power BI Desktop?

if yes, are the data you provided now in Power BI Desktop? 

If yes, how did you get the data in Power BI Desktop?

 

if no, do you have other data in Power BI Desktop and you want to add the data above?

if yes, where are these data stored?

 

A little bit more context would be helpful. 🙂

 

Best regards

Michael

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!
Mikelytics
Resident Rockstar
Resident Rockstar

HI @Anonymous 

 

Please go in Power Query and select the first five columns of your dataset using STRG so that all of them are selected.

 

Then use the "unpivot other columns" feature.

 

Mikelytics_0-1668460142034.png

 

You can find more information under:

Unpivot columns - Power Query | Microsoft Learn

 

Best regards

Michael

-----------------------------------------------------

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your thumbs up!

@ me in replies or I'll lose your thread.

 

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!
Anonymous
Not applicable

Hello Mike,

 

these columns are derived from other columns so they are not in power querry editor. Can something be done in outside of power query editor?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors