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
jeongkim
Post Prodigy
Post Prodigy

Get the values from merged and multi-layered columns/rows

Spoiler
 

Hi,

 

Can we get the values from merged and multi-layered cells using PBI Query editor or something?

The struggling points below:

 

1. Not all the merged cells are taken with values.

2. Grocery and Clothes should be categorized as well which is just written only in 1 cell on top of the table.

3. Second levels of columns should be categorized. If we use First row as a header then parent category Fruit/Drink will be deleted.

4. New item can be added later both column/row so this table is not fixed.

 

Merged cells from original sheet

jeongkim_2-1705465808295.png

 

Desired ouput as raw data

jeongkim_3-1705465819403.png

 

Please help!

 

P.S. Can't we attach the sheet here?

3 ACCEPTED SOLUTIONS
Ahmedx
Super User
Super User

8 REPLIES 8
Ahmedx
Super User
Super User

to know how to do this watch my video

https://1drv.ms/v/s!AiUZ0Ws7G26RjG9DHqweYEqkGTkC?e=mweHY2

Hi,

1 more question,

 

Deos it work with adding more columns(from right) and rows(from bottom)?

Or we need to modify query every time we get new columns/row? especially for Transpose/Unpivot fuction. 

should work

Hi Ahmedx,

It's super! Thank you so much for your detailed video.

 

By the way, how could you get the text of 'Grocery' and 'Clothes'?

It is not always at the same row(but same column) and not only one. There are multiple 'Grocery' and 'Clothes' with multiple tables so dynamically need to get the text. 

 

Meaning, from certain row to row setting will not work. 

I didn't understand what you want
you explain in detail and show a clear example

Is there any function that creating custom column from particular cell text?

 

e.g. if the value right next to Fx rate is 1457.3, then create custom column with "1457.3"

(this time I created manually but hope to have dynamically)

Fx rate value will be always there and only number will change every month so hope to get the value and put to all of rows by creating column. 

 

 

 

jeongkim_0-1705477697869.png

jeongkim_1-1705477729917.png

 

to know how to do this watch my video

https://1drv.ms/v/s!AiUZ0Ws7G26RjHPoKCbeYM5HQHKM?e=PcGrdS

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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