Forum Discussion

iping's avatar
iping
New Member
5 years ago
Solved

Filtering Data by containing string values

Figure 1.0 - design screen above is shown of my report.

 

I collected data shown in the table for preference of colors - the results are shown eg. Red, Yellow for the participants in survey.

 

What I need to acheive:

The horizontal three colors at the top, as shown in the image above, when clicked shouold filter for all rows that contains the selected color.

  • The three (3) Colors at the top (horitonal layout) are an independant table that is created in the PowerBI,
  • The dataset with the color choices and participant ID are  stored in another table named the ColorDS. See figure 2.0

\Figure 2.0 the tables in the PowerBI

 

 

  • Hi iping ,

     

    Try this:

    Measure 2 =
    IF (
        SUMX (
            ColorTable,
            FIND (
                UPPER ( ColorTable[ChoiceList] ),
                UPPER ( MAX ( ColorsDS[Color Choice] ) ),
                ,
                0
            )
        ) > 0,
        1
    )
    

     

     

    Best regards

    Icey

     

    If this post helps, then consider Accepting it as the solution to help other members find it faster.

4 Replies