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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
jeongkim
Helper V
Helper V

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.