Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Filter/slicer with 2 values on the same columns

Hi All,

 

I am trying to create slicer on same column whihc will have 2 types of data - please find below more details

 

 

 

9 Replies

  • Hi,

    Create a 2 column Table (Table2) with all fruits and cities in column 1 and Fruit or City in column 2.  Build a relationship from the Data column of Table1 to the Data column of Table2.  Create a slicer from column 2 of Table2.  To your visual, drag the Data column from Table1.  Write this measure

    Measure1 = SUM(Table1[sales])

    Hope this helps.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi,

      Thanks for your response,

      was tried with below approch,unfortunalty no luck .

       

      as you mentioned created a new table with 2 columns , column1(Data) as is with main table and Column2 has only Fruits. when i use column2 from table 2 - i am getting all the fruits and nulls as well.

       

      what i am looking in the slicer is - slicer should have only 2 values - Fruits and Cities - so that i can select either one of them or both.

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Icon for Super User rankSuper User

        Hi,

        Column 2 of Table2 should have Fruit or City depending upon the entry in column A.

  • v-juanli-msft's avatar
    v-juanli-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous 

    1.create a category table by entering data

    2. create relationship

    3. add "category" from Table2 in a slicer

    Best Regards
    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.