How grouping text fields with same number in another column?

citizenbh

Board Regular
Joined
Sep 19, 2013
Messages
145
Is it possible to do this in DAX
QuantityProductQuantityProducts
5A5A, E
2B->3C
3C2B, D, F
2D
5E
2F

<tbody>
</tbody>
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi
In Excel 2016 and Power BI Desktop you can use
Code:
SUMMARIZE('Table1', 'Table1'[Quantity], "Products", CONCATENATEX('Table1', 'Table1'[Product], ", "))
Regards,
 
Upvote 0
Thank you for your prompt reply, but can the more detailed explanation for Excel 2016, please
 
Last edited:
Upvote 0
After entering:

measure1:=SUMMARIZE('Table1'; 'Table1'[Quantity]; "Products"; CONCATENATEX('Table1'; 'Table1'[Product]; ", "))

I have error:

Calculation error in measure 'Table1'[measure 1]: The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.
 
Last edited:
Upvote 0
I thought you want a virtial table. Alright for measure simple use
Code:
Products:=CONCATENATEX('Table1'; 'Table1'[Product]; ", ")
 
Upvote 0
I've changed your proposal and working

Code:
=CONCATENATEX(
    SUMMARIZE('Table1','Table1'[Quantity], Table1[Product]),
    'Table1'[Product], ", ")

This above is much simpler
Thanks again
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,499
Messages
6,125,163
Members
449,210
Latest member
grifaz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top