Forum Discussion
disabling interaction using dax
- 6 years ago
nkasdali ,
I'm afraid dax can't disable interaction between visuals, ALL() function can only remove the filters in the filter context in dax expression. You need to use "visual interaction" in the format pane.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
For example, measure = CALCULATE ( SUM (table[Column]), ALL (table) ) will always result in the total sum of table[column] regardless of the context created by the current slicer selection.
- nkasdali6 years agoMicrosoft Employee
Hi JarroVGIT
I tried All, Allexpect ! but didn't work. You can see in the profile AAS is executing a DAX calculation on my measure when selecting a value in my slicer.
Knowing that I have 22 measures in 22 cards, my aim is to avoid to send useless queries to my AAS.
It works well by disabling the interaction in the "Format" view but want to do it using DAX.
- v-yuta-msft6 years agoCommunity Support
nkasdali ,
I'm afraid dax can't disable interaction between visuals, ALL() function can only remove the filters in the filter context in dax expression. You need to use "visual interaction" in the format pane.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- JarroVGIT6 years agoResident RockstarYou can't, I am sorry. I see what you are trying to achieve. Upon changing the datamodel context by selecting a slicer, you don't want all measures to reevaluated if they aren't impacted. However, this is not how PowerBI works. When selecting a slicer, your datamodel is reevaluated and so are all your measures. You can't disable this behavior in DAX and can only change interaction from the Edit Interactions button in PBI Desktop.
Hope this answers your question,
Derro123