Forum Discussion

Schneider879's avatar
Schneider879
Frequent Visitor
7 years ago
Solved

Combine two values based on text

Hello,   I have a set of data that I'm hoping you all can help me to improve. We have a newsletter that we send out to our employees, anybody who does not open the newsletter is then send another c...
  • v-piga-msft's avatar
    7 years ago

    Hi Schneider879,

     

    It seems that you want to calculate the Total Unique Clicks based on the same group.

     

    You could create the calculated column or the measure to achieve that.

     

    Here is my simple sample.

     

    Assuming that this is the original table.

     

     

     

    Then you could split columns in Query Editor and you will get the table like below.

     

     

    Then you could create the calculate column or the measure.

     

    Column =
    CALCULATE (
        SUM ( Table1[Ticks] ),
        FILTER (
            'Table1',
            'Table1'[Company - Copy.1] = EARLIER ( 'Table1'[Company - Copy.1] )
        )
    )
    
    Measure = CALCULATE(SUM(Table1[Ticks]),ALLEXCEPT(Table1,'Table1'[Company - Copy.1]))

    Here is the ouput.

    More details, you could refer to my attachment.

     

    Best  Regards,

    Cherry