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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
lazarus1907
Helper I
Helper I

Group by sub-heading

Hi,

I am trying to import data that is tabulated in a database-unfriendly format. Instead of having the name of an employee appearing in several rows for several bits of information, the name appears only once, and you just assume that everything below is the same employee, until a new name appears. I would like to either fill the gaps with the same name, of group them by employee name in blocks, so I can create columns with the same name. Both potential solutions are illustrated below.
Any ideas?

borra.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@lazarus1907 

Three steps:

1. Replace blank cell with null

Vpazhenmsft_0-1626334468574.png

2. Fill down names

 

3. Group by like following:

Vpazhenmsft_2-1626334551068.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@lazarus1907 

Three steps:

1. Replace blank cell with null

Vpazhenmsft_0-1626334468574.png

2. Fill down names

 

3. Group by like following:

Vpazhenmsft_2-1626334551068.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

 

ImkeF
Community Champion
Community Champion

Hi @lazarus1907 ,
Check the column with the name -> righclick mouse -> Fill -> down.

If this doesn't work because the empty fields are just empty and don't show null, then replace these empty fields by null before filling down.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.