Forum Discussion

alepagg's avatar
alepagg
Frequent Visitor
2 years ago
Solved

Need to compare multiple rows in the same table

Hello, I need help with this problem. I have a table like this: BRAND | CUSTOMER | VALUE A | X | 1 A | Y | 1 B | X | 2 B | Y | 0 C | X | 1 C | Y | 1 C | Z | 0   Brand is a slicer in my pag...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi alepagg ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) My test data is the same as yours.

    (2) We can create a measure. 

    Flag = 
    var _table=CALCULATETABLE(VALUES('Table'[CUSTOMER]),'Table'[VALUE]<=0)
    RETURN IF( not MAX('Table'[CUSTOMER]) in _table,1,0)

    (3) Place [Flag=1] on the visual object screening and then the result is as follows.

    Best Regards,

    Neeko Tang

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