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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. 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
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors