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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Universe24
Frequent Visitor

Row as header for different columns and different rows

Hello Experts,

 

For the below i want to make, for column 31 header should be 1st row and the remaining column header should be 2row how can i do it, If all are in same row i can use "use fitst row as header" but they are in different rows. Please help me experts.

 

Universe24_0-1682330639147.png

 

1 ACCEPTED SOLUTION
Universe24
Frequent Visitor
3 REPLIES 3
Universe24
Frequent Visitor

DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

You can do this in power query:

 

  1. Promote the headers for the first row
  2. Add an Index column
  3. Duplicate the table
  4. Remove all columns except the Domain and Index in the first table
  5. In the duplicated table - Promote headers twice then add an Index column and remove the domain column
  6. Back in the first table - merge queries and select the column index to join on
  7. expand the rows and bring through the fields needed

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

ahmadibrahimbus
Resolver III
Resolver III

 Dear @Universe24  please refer to the attached pbi and see how it's solved in M language.

 

https://drive.google.com/file/d/12kikF9Ps038k4SwTtdV42y8ibuYdSAxB/view?usp=share_link

 

let me know if you need any additional support.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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