Forum Discussion
mnetsereab
3 years agoRegular Visitor
Exclude data based on a slicer selection
Hello, I have a column in a table with product names and I wanted to exclude 4 products but not always. So I create another disconnected table with those 4 products and used it as a slicer. What I ne...
- 3 years ago
mnetsereab , refer
Need of an Independent Table in Power BI - Exclude: https://youtu.be/lOEW-YUrAbE
FreemanZ
3 years agoSuper User
you would need the EXCEPT function.
it is like this
CALCULATE(
SUM(),
EXCEPT(
ALL(),
VALUES,
)
)
With ALL, we get the full product list and with VALUES, we capture the Products selected in the slicer. EXCEPT them, we get the rest of the Product list.