Forum Discussion
Need to compare multiple rows in the same table
- Anonymous2 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.
Hi,
Here is one way to do this:
Create the following measure:
Place is as a filter like this:
Now the slicer works as you described:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
- alepagg2 years agoFrequent Visitor
Hi Valtteri,
thanks for your prompt reply but I think it doesn't fully cover my need.
Back to my example, when the user selects both A & B brands, the only customer that shows positive value for both brands is X. Therefore, the outcome measure or table should be only:
X | 3
While customer Y should be excluded since it is positive for brand A but not positive for brand B.