Forum Discussion

Nickodemus's avatar
Nickodemus
Helper III
8 years ago
Solved

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?

  •  

    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]&", ")

    Regards

    Abduvali

     

     

2 Replies

  • Abduvali's avatar
    Abduvali
    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]&", ")

    Regards

    Abduvali