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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
randyrettig
Helper I
Helper I

Column rows to headers

Hi all,

 

I'm transforming info from a .pdf, and there is a little table on the .pdf that shows up in power query like the picture attached.

 

How can I make the values in column 1 and column 3 the headers, and then the call info in columns 2 and 4 show in the appropriate rows below?

 

randyrettig_0-1706814941284.png

 

Thanks!

1 ACCEPTED SOLUTION
v-yilong-msft
Community Support
Community Support

Hi @randyrettig ,

Based on your question, here are my answers.

I think you can Transpose the table.

vyilongmsft_0-1706850582186.png

Then click on the Use First Row as Headers.

vyilongmsft_1-1706850700084.png

Use Text Filters and enter the codes.

= Table.SelectRows(#"Changed Type1", each Value.Is(Value.FromText([Total Calls]), Int32.Type))

vyilongmsft_2-1706850736782.png

Then you will see what you want.

vyilongmsft_3-1706850914882.png

 

 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

How to Get Your Question Answered Quickly 

 

 

Best Regards

Yilong Zhou

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

2 REPLIES 2
v-yilong-msft
Community Support
Community Support

Hi @randyrettig ,

Based on your question, here are my answers.

I think you can Transpose the table.

vyilongmsft_0-1706850582186.png

Then click on the Use First Row as Headers.

vyilongmsft_1-1706850700084.png

Use Text Filters and enter the codes.

= Table.SelectRows(#"Changed Type1", each Value.Is(Value.FromText([Total Calls]), Int32.Type))

vyilongmsft_2-1706850736782.png

Then you will see what you want.

vyilongmsft_3-1706850914882.png

 

 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

How to Get Your Question Answered Quickly 

 

 

Best Regards

Yilong Zhou

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

Greg_Deckler
Super User
Super User

@randyrettig Perhaps try importing Column1 and Column2 as one query and Column3 and Column4 as another. Append the queries and perform a Transpose.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.