Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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:
Hope someone can help
Regards
Ron
Solved! Go to Solution.
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])
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]))
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-Date
What do I have to do to get ALLEXCEPT working?
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])
Hi @eliasayyy
you helped me out
This is the solution. Thnx a lot
on your chart, your slicer is using dates table month as a filter so you need to specify the column the allexcept should respect and keep the filters , in your case its dates table month or dates date. if you want to use categories date in all except , you need to use categories date in your slicer
Ah, ok
with slicer you mean the visual, the line and clustered column chart
yes
User | Count |
---|---|
17 | |
14 | |
13 | |
13 | |
11 |
User | Count |
---|---|
19 | |
15 | |
15 | |
11 | |
10 |