Forum Discussion
REMOVEFILTERS or ALLEXCEPT
Hi
see charts below.
The Line should always show the sum of the categories. Also if I only choose one category in the slicer as in the second chart.
I thought this would work:
But it doesn't. In the second chart the Line just follows the number of Detection.
Hope someone can help
Regards
Ron
ok in your formula , you used allexcept , and they ask you to sepcify a table , you chose dates table ,
so in theory , it will remove all filters inside the dates table only , however if yo uuse all except and choose the category table, it will fremove all filters from categort table
so instead of
allexcept(dates,dates[month])
use allexcept(category table,dates[month])
7 Replies
- eliasayyy
Memorable Member
if you have relatioship between date and table ,
You used in the all except function the calendar or dates table , which removes all filetrs from date which doesnt have your category , so you need to replace Dates with your table that has categories .Sum of Categories Line = CALCULATE([Sum of Categories],ALLEXCEPT(Table,Dates[Year],Dates[MonthShortName]))- AnonymousNot applicable
Hi eliasayyy
I don't understand the answer.
I have a Dates table with amongst other Date, Year and MonthShortName.
I have a Category table with, amongst others, Category-Date.
There is a 1:n relation between Dates and Category on the fields Date and Category-DateWhat do I have to do to get ALLEXCEPT working?
- eliasayyy
Memorable Member
ok in your formula , you used allexcept , and they ask you to sepcify a table , you chose dates table ,
so in theory , it will remove all filters inside the dates table only , however if yo uuse all except and choose the category table, it will fremove all filters from categort table
so instead of
allexcept(dates,dates[month])
use allexcept(category table,dates[month])