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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
jeongkim
Post Patron
Post Patron

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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