Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago

slicer logic (OR | AND)

Hi!

when i select 2 items in slicer i want to see records that have both selected items.

table A:

id      value

1         q

2         w

3         e

 

table B:

id     table_A_id     value

1       1                   q1    

2       1                   q2

3       2                   q3

4       3                   q4

5       5                   q1

 

i want to filte table A by values in table B

so if a select q1 AND q2 i should see only table A id = 1 value = q

 

Any ideas if it is possible to make slicer work as logically AND?

7 Replies

  • Phil_Seamark's avatar
    Phil_Seamark
    Microsoft Employee

    Hi Anonymous,

     

    You could combine the two tables into 1 table in the Query Editor or in DAX as one approach.

    • Anonymous's avatar
      Anonymous
      Not applicable

      what will it give to me? i need to filter them dynamically in the dashboard

      • Phil_Seamark's avatar
        Phil_Seamark
        Microsoft Employee

        You will be able to filter the data dynamically.  If you use your TableB[Value] field as a slicer, it will include any rows selected 

         

        id	table_A_id	value	TableA_Value
        1	1	        q1	q
        2	1 	        q2	q
        3	2	        q3	w
        4	3	        q4	e
        5	5	        q1