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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

summarized values with , seperator in dax

Dear all,

 

I have a table:

ProductLocation
A1
A2
A3
B1
B3
C4
D1
D2
D3
D4

 

And i would like to create a table ( in a visual) like this:

ProductLocation combined
A1,2,3
B1,3
C4
D1,2,3,4

 

is this possible in DAX?

 

so to my understanding it can either be a measure or calc column.

best

1 ACCEPTED SOLUTION
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

You could try using the solution provided here

Measure = CONCATENATEX ( VALUES ( Table2[Name] ), Table2[Name], ", " )

 

View solution in original post

3 REPLIES 3
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

You could try using the solution provided here

Measure = CONCATENATEX ( VALUES ( Table2[Name] ), Table2[Name], ", " )

 

Anonymous
Not applicable

Hi @Gordonlilj 

 

I used your formula and in my table it gives me the requested result. however if i add a total bar in my table it will give all the values concatenated. is this solvable in a way, that if you have the total bar, it wil give you a "*" saying that it is too many values or something.

One way you could try is to use the solution provided in this post

So something like this perhaps

if(HASONEVALUE('Table'[Product]),[Measure],"*")

Or you could try and hide the total for just the measure by changing the font and background colors. This can be done under field formatting and just apply it to total.

 

Capture.PNG

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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