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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
monojchakrab
Resolver III
Resolver III

How to merge rows in a report

Hi PBI community,

 

I have a report (screen shot attached) :city wise salescity wise sales

Is it possible to merge the rows in this report so that cities which are on different rows - like Mumbai and Nvi Mumbai, or Kolkata and Bidhannagar, could actually be merged and seen together?

They are technically the same city (only PIN codes could be different).

Any help appreciated

Thanks and best regds.,

2 ACCEPTED SOLUTIONS
TomMartens
Super User
Super User

Hey @monojchakrab ,

 

I have to admit that I do not fully understand your requirement.

 

Maybe you can create another column in your dimension table that contains the name, this column can be filled using a lookup table inside Power Query. This table contains two columns one that contains the original column value and the 2nd one contains the "lookup" value. You can join both tables using the Merge function of Power Query, the next to articles explain this feature in more detail:

Depending on the nature of the join you can keep or remove the rows where the city is not contained in the lookup table, my recommendation is "keep". 

You can create a report(page) showing the cities that are not contained in the lookup table.

 

Here you will find a very little pbix file
https://tommartens-my.sharepoint.com/:u:/g/personal/tom_minceddata_com/ER5HTPFrq8lOopj2IdRuQx0BAftaY...
that demonstrates what I described above. Next to "keeping"  the rows if a city is not contained in the lookup table (Left outer join), the resulting null value will be replaced.

Hopefully, this provides an idea of how to tackle this challenge.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

2 REPLIES 2
TomMartens
Super User
Super User

Hey @monojchakrab ,

 

I have to admit that I do not fully understand your requirement.

 

Maybe you can create another column in your dimension table that contains the name, this column can be filled using a lookup table inside Power Query. This table contains two columns one that contains the original column value and the 2nd one contains the "lookup" value. You can join both tables using the Merge function of Power Query, the next to articles explain this feature in more detail:

Depending on the nature of the join you can keep or remove the rows where the city is not contained in the lookup table, my recommendation is "keep". 

You can create a report(page) showing the cities that are not contained in the lookup table.

 

Here you will find a very little pbix file
https://tommartens-my.sharepoint.com/:u:/g/personal/tom_minceddata_com/ER5HTPFrq8lOopj2IdRuQx0BAftaY...
that demonstrates what I described above. Next to "keeping"  the rows if a city is not contained in the lookup table (Left outer join), the resulting null value will be replaced.

Hopefully, this provides an idea of how to tackle this challenge.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

let me try this out @TomMartens 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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