Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
10 years ago
Solved

Use filter to exclude

Is there a way use a filter to exclude rows?   Example: on selecting "productA" in a filter, i get all products EXCEPT "productA"   Can we create a measure to return  a list or table where the se...
  • konstantinos's avatar
    konstantinos
    10 years ago

    Anonymous  You need to add to the table an index row. If you don't have, create an index in query mode when you load the table.

     

    On the visual table just add the index column, make sure the defaut calculation for index  is 'Do not summarise' on the values as usually will show sum 

  • v-qiuyu-msft's avatar
    v-qiuyu-msft
    10 years ago

    Hi Anonymous,

     

    In addition, with the help of the Query Parameter, you can also achieve your requirement. When you run the report, you can change prefer parameter value to filter corresponding data rows, instead of setting any report filter or slicer.

     

    In your scenario, you can create a query parameter and list all products. Then set the filter with "does not equal" in Query Editor

    like below:

     

     

    For more information, you can take a look at this article: Deep Dive into Query Parameters and Power BI Templates.

     

    If you have any question, please feel free to ask.

     

    Best Regards,
    Qiuyun Yu