Forum Discussion

Divous's avatar
Divous
Helper III
4 years ago
Solved

Show values based on filter and text string

Hi community,   I have Table01 like this   customer_id  date  details  info 1  08.01.2022  color  red 1  09.01.2022  size  small 1  10.01.2022  price  100 2  11.02.202...
  • v-kkf-msft's avatar
    v-kkf-msft
    4 years ago

    Hi Divous ,

     

    Please create the measure and filter the visual with measure.

     

    Measure = 
    VAR SelectDate =
        SELECTEDVALUE ( Dates[Date] )
    VAR _id =
        CALCULATETABLE (
            VALUES ( Table01[customer_id] ),
            FILTER (
                ALLSELECTED ( Table01 ),
                Table01[date] = SelectDate
                    && Table01[info] = "big"
            )
        )
    RETURN
        IF (
            SelectDate = BLANK (),
            1,
            COUNTROWS ( INTERSECT ( VALUES ( Table01[customer_id] ), _id ) )
        )

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.