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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Nickodemus
Helper III
Helper III

Concatenate String Values When Aggregating

I have data relating to product price changes on specific days:

DatePrice ChangeProduct
01/01/20172Prod1
01/01/20174Prod2
01/01/20173Prod3

 

What i need is an aggregated view of the data:

DateTotal Price ChangeProducts Changed
01/01/20179Prod1, Prod2, Prod3

 

The aim is that I can include the products that have change on a given day as a value in the tool tip of a sales line chart.

 

Is this kind of concatenation of string values possible; all i can manage to produce is the first or last product name, not a list of all three?

1 ACCEPTED SOLUTION
Abduvali
Skilled Sharer
Skilled Sharer

 

Hi @Nickodemus,

 

This should work for you:

Create measures as follows

Measure = SUM(Sheet1[Price Change])  //you can create this or just use your Price Change and select SUM, up to you.

 

Measure 2 = CONCATENATEX(Sheet1,Sheet1[Product]&", ")

Capture.PNG

Regards

Abduvali

 

 

View solution in original post

2 REPLIES 2
Abduvali
Skilled Sharer
Skilled Sharer

 

Hi @Nickodemus,

 

This should work for you:

Create measures as follows

Measure = SUM(Sheet1[Price Change])  //you can create this or just use your Price Change and select SUM, up to you.

 

Measure 2 = CONCATENATEX(Sheet1,Sheet1[Product]&", ")

Capture.PNG

Regards

Abduvali

 

 

Perfect! Thanks @Abduvali!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.