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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
jeongkim
Post Partisan
Post Partisan

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
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.