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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

Transpose rows to columns

 

I've tried all the suggestions in the community and not getting desired result. I don't want to summarize the data.

I'm trying to get this...

 

after.jpg

 

from this... where the fields are in one column...any other suggestions?

 

before.jpg

 

 

 

 

 

 

5 REPLIES 5
rlsmith1994
Helper II
Helper II

I think IT folks / programmers are confused on this question. The question is focused on transposing the visualization table, not the data table. If you transpose the data table in the Transform Data window, that will change the underlying structure of the queries. 

Ashish_Mathur
Super User
Super User

Hi,

If the entries in the first column will always be in the order of doctype, docid, batchid and loanid, then i can help.  If that be the case, then paste data in a format that i can take over to MS Excel.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
az38
Community Champion
Community Champion

Hi @Anonymous 

go to the Power Query Editor, add a Custom column

Number.RoundUp([Index]/4)

then remove Index column

then pick field name column, press Pivot Column in Transform ribbon, set parameters as below

Снимок.PNG

then remove Custom column

 

as a result you will get your desired table


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Hi @az38 Saz38, sorry for delay to reply.

 

thank you for the tip on using pivot and customer column. It worked on moving the field names to columns and populated the values on one of the fields (loanid). I think how the data is arranged is a bit off. The values for loanid looks good, however the other values, doctype, batchid, etc. is populating with mostly nulls and incorrect values. It's like when it was pivoting, some of the values got out of order. I'm looking at the data and see if the values are matching up with the fields correctly, and will run it again.

Anonymous
Not applicable

i think the issue is the field column is not in consistent order..for example loanid, batchid, itemid, doctype is not always in same order. would that cause the results to not populate correctly?

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors