The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have my data linked to a Date table that I have created. Since I can easily show numbers depending of a Slicer which is nice.
I was able to do a new measure like so :
Association Total - Début = CALCULATE( COUNTROWS(Associations), FILTER( RELATEDTABLE(Association_Application), Association_Application[state] = "AttentePublication" || Association_Application[state] = "GrosseAssociation" || Association_Application[state] = "Publiee" ) )
But now I want the exactly same measure but without the slicer in the game.
I tried with ALL() function but I achieve what I want.
Solved! Go to Solution.
Hey,
create a measure that ignores all the filter coming from your date table like so:
Association Total - Début ignoring the date = CALCULATE( [Association Total - Début] ,ALL('name of your calendar table'[name of the column that is used in the relationship] )
Hopefully this is what you are looking for.
Regards,
Tom
Hey,
create a measure that ignores all the filter coming from your date table like so:
Association Total - Début ignoring the date = CALCULATE( [Association Total - Début] ,ALL('name of your calendar table'[name of the column that is used in the relationship] )
Hopefully this is what you are looking for.
Regards,
Tom
It's working, and thanks for that, but I want to be sure to understand. The slicer put my dashboard in a "time context", but adding ALL() doesn't care of this and overwrite, here, the date range.
That's right ?
Hey,
basically you are right.
CALCULATE(<expression>,<filter1>,...,<filterN>)
allows to modify exisiting filter before the expression is evaluated.
ALL(...) is a filter modifying function that removes an existing filter on a table or column.
Regards,
Tom
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
79 | |
72 | |
48 | |
41 |
User | Count |
---|---|
138 | |
108 | |
69 | |
64 | |
57 |