Forum Discussion

SwaroopShankar's avatar
SwaroopShankar
Frequent Visitor
6 years ago
Solved

measure if column value is a certain text

Hi,   Please see below data for your refernce.    I need to get a Measure which concatenates 'Pic' column based on 'Name'.   Basically, IF('Name'="Site Photo 1", CONCATENATE('Pic') using ...
  • gpoggi's avatar
    gpoggi
    6 years ago

    Hi my friend, you can apply filter you need, for example if you try this:

     

    MyMeasure = 
    IF (   
        SELECTEDVALUE('Table'[Name]) = "My Photo1.png",    
        CONCATENATEX (
            'Table',
            'Table'[Pic],
            "",
            'Table'[Index], ASC
        ),""
    )

     

    When you have 4 values it will fill the concatenation only if selected Name is "My Photo1.png":

    So you will get the same behavior if you try with an slicer and a card, the card will fill the concatenation only if the name "My Photo1.png" is selected.

     

    Give it a try and let me know if it works.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    PS: There is a current contest in this community I'm participating in, if you like it I'll appreciate your Kudo in this link:

     

    Better-Together-T-Shirt-Contest 

     

    Regards,

     

    Gian Carlo Poggi