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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Help With Labelling

Hi guys,

 

I've got the following table (see screenshot below) and what I need to do is create a measure and when I'll drag it onto my table, it will display "A & D" next to customer A50000030.

 

Capture.PNG

 

A & D are nothing but products and the measures A,B,C and D are just calculating the number of times a person purchased each of the products (being calculated from a Sales table).

 

For some of you this will be very simple. Even if you share a link from where I might learn to do it myself will be very, very helpful!

 

Cheers,

Kashif

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

We can try to use the following measure to meet your requirement:

 

Product = 
CONCATENATEX ( DISTINCT ( 'Sales'[Product] ), [Product], "&" )

 

If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.


Best regards,

 

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?


Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
piyushszope
Helper I
Helper I

Hello,

 

If you are looking to change the Id to "A & D". Then you can easily change the label from the Fields section. 

 

You can change the label by just double-clicking on the field and change the value.

  

image.png

 

 

If you liked my solution, please give it a thumbs up. And if I answered your question, please mark my post as a solution.

Thank you!

 

Anonymous
Not applicable

Hi,

 

That's not what I'm looking for, maybe I wasn't clear in my request.

 

I need to create a measure that will display whatever products the customer bought. So, when I drag this measure onto my table, for the very first donor (A50000030) it will display "A & D" since they bought those two items once each.

 

Hope this makes sense.

 

Let me know if I can make my query any better.

 

Hi @Anonymous ,

 

We can try to use the following measure to meet your requirement:

 

Product = 
CONCATENATEX ( DISTINCT ( 'Sales'[Product] ), [Product], "&" )

 

If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.


Best regards,

 

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.