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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
OsmanEmi
Frequent Visitor

Merging Row Values in a column

Hi All,

 

I have a column with row values I would like to merge however unsure how I should progress with this.

 

For example in the below table I would like to merge all "Blue Barrels".

Any insights would be greatly appreciated.

The expected output would be for all instances of blue barrels to be merged in relation to store number or store name.
for example
store number 935
blue barrel 120l - 20
blue barrel 240l - 40

I would like it to be summed to display
store number 935
blue barrel - 60


OsmanEmi_0-1612438300313.png

 

1 ACCEPTED SOLUTION

Hi @OsmanEmi ,

 

You can use a matrix visual in Power BI to achieve this:

  • Select matrix visual
  • Move "Store Name" to ROWS section
  • Move "Type" to COLUMNS section
  • Move "COUNT(Type)" to VALUES section

As you haven't attached a sample data file, I can't try it at my end, but try the above solution.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

4 REPLIES 4
Tahreem24
Super User
Super User

@OsmanEmi ,

Try this DAX measure:

Measure = CALCULATE(SUM(Table[SalesColumn]),FILTER(Table,SEARCH("Blue Barrels",Table[Type],1,0)))
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Pragati11
Super User
Super User

Hi @OsmanEmi ,

 

I don't understand your query completly. What is the expected output?

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

I have updated to show expected output on my original message apoligies for not being clear enough.

Hi @OsmanEmi ,

 

You can use a matrix visual in Power BI to achieve this:

  • Select matrix visual
  • Move "Store Name" to ROWS section
  • Move "Type" to COLUMNS section
  • Move "COUNT(Type)" to VALUES section

As you haven't attached a sample data file, I can't try it at my end, but try the above solution.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.