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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.