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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Transpose table

Hi All,

 

Is it possible in Power BI "not via power query unpivot" to transform the below table to the other format

 

Table1

FirstNameLastNameQ1Q2
AABB13
CCDD57

 

to Table2

FirstNameLastNameQuarterValue
AABBQ11
CCDDQ23
AABBQ15
CCDDQ2

7

 

Thank you

1 ACCEPTED SOLUTION

@Anonymous yes doing with DAX using summarize not a bad option but why not use power query when it has in-built function to do the job. 

 

Doing wiht power query will have better compression and performance in vertipaq enqine but that all depends on how big is your dataset?

 

Anyhow I will leave that decision with you, you have both the choices. You can do performance test to figure out what works best.

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

4 REPLIES 4
parry2k
Super User
Super User

@Anonymous I don;t think so, it is better to unpivot data in Power Query then you can use pivot or unpivot in desktop using matrix or table visual.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Thank you parry2k 

 

What about using summarize with VAR to create two tables with new additional columns "Quarter" and "Value"

Then using UNION to combine the 2 tables.

I managed to get this done and works perfect.

Not sure what will happen if the source table will get more data into it

@Anonymous yes doing with DAX using summarize not a bad option but why not use power query when it has in-built function to do the job. 

 

Doing wiht power query will have better compression and performance in vertipaq enqine but that all depends on how big is your dataset?

 

Anyhow I will leave that decision with you, you have both the choices. You can do performance test to figure out what works best.

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Thank you very much for detailed clarification

Franckly a colleague who is like me very new to Power BI  alreay started and built a lot with row data from Excel file..and will not be happy to start all over again by unpivoting data.

Thats why I figured out this dax approach as data set is very small

 

Reagrds,

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.