Forum Discussion
Use filter to exclude
- 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
- 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
jahida Anonymous Really interesting..I was trying to test EXCEPT() for a long time & now is the time..
I create a table 'Sales'
ProductAmount
| A | 5 |
| A | 5 |
| A | 5 |
| B | 5 |
| B | 5 |
| B | 5 |
| C | 5 |
| C | 5 |
a table 'Products'
Product
| A |
| B |
| C |
Then create the relantionship ( one way ) and the formula
Sales = CALCULATE(SUM(Sales[Amount]);EXCEPT(ALL(Products);Products))
Result :
* You need to use the column from sales table, else if use the column from Product it gives you the correct sum but shows the selected product.
Sales = CALCULATE(SUM(Sales[Amount]);EXCEPT(ALL(Products);Products))
i am using same its not working i my power bi. can you suggest me.