Forum Discussion
disabling interaction using dax
Hi All,
I'm using several measures and displaying them in Card Visual, on the same page have also several slicers.
Do you know how I can do to disable the interaction between my slicer and my card using DAX in my measures?
Thanks
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.
5 Replies
- JarroVGITResident RockstarUse context changers like ALL(table), ALLEXCEPT(table, table[col1]), etc to escape the impact of slicers on measures.
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.- nkasdaliMicrosoft 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-msftCommunity 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.
- DonScott9876Regular Visitor
Don't listen to the nay sayers. I've found thinking about things in the opposite way really helps with Power BI and DAX. Try creating an inactive relationship and then simply tack on a 'USERELATIONSHIP' function for all your existing measures and leave out the USERELATIONSHIP function for that one visual where you don't want the interaction to happen. Hey presto!