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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
KyawMyoTun
Helper IV
Helper IV

Convert caption row to column

Dear Experts,
I have a table as below.
  Current table.JPG

I would like to transform above table to be usable in power query as below.
Expected Table.JPG

Please help me to transfrom the table in power query. Thank you.

Regards,
Kyaw Myo Tun

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

just for the sample data

NewStep=Table.FromPartitions("Department",Table.Group(PreviousStepName,"Name",{"n",each {[ID]{0},Table.Skip(_)}},0,(x,y)=>Byte.From(y=null or y=""))[n])

View solution in original post

2 REPLIES 2
wdx223_Daniel
Super User
Super User

just for the sample data

NewStep=Table.FromPartitions("Department",Table.Group(PreviousStepName,"Name",{"n",each {[ID]{0},Table.Skip(_)}},0,(x,y)=>Byte.From(y=null or y=""))[n])

Hi @wdx223_Daniel ,

  This is working perfectly. Thanks for your help.

Regards,
KMT

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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