Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello,
As shown in the figure below,I'm ignoring category3's filter in the ALLEXCEPT function, but I want the category3's external slicer to work.
However, in order to apply an external slicer, it is necessary to put category3 in the ALLEXCEPT function.
Then the calculation will not work. I want to know the solution.
thank you
target table
measure fomula
not_slicer =
var selectedfilter1 = SELECTEDVALUE('table'[category1])
var table1 = ADDCOLUMNS('table',"sum_value",MAXX(FILTER('table','table'[category1]=selectedfilter1)
,CALCULATE(SUM('table'[value]),ALLEXCEPT('table','table'[category1],'table'[category2]))))
RETURN
MAXX(table1,[sum_value])
not "E""H" =
var selectedfilter1 = SELECTEDVALUE('table'[category1])
var table1 = ADDCOLUMNS('table',"sum_value",MAXX(FILTER('table','table'[category1]=selectedfilter1)
,CALCULATE(SUM('table'[value]),ALLEXCEPT('table','table'[category1],'table'[category2],'table'[category3]))))
RETURN
MAXX(table1,[sum_value])
Solved! Go to Solution.
I think this should work:
MAXX (
ADDCOLUMNS (
SUMMARIZE ( 'table', 'table'[category1], 'table'[category2] ),
"SUM_value", CALCULATE ( SUM ( 'table'[value] ) )
),
[SUM_value]
)
I think this should work:
MAXX (
ADDCOLUMNS (
SUMMARIZE ( 'table', 'table'[category1], 'table'[category2] ),
"SUM_value", CALCULATE ( SUM ( 'table'[value] ) )
),
[SUM_value]
)
Hello and thank you for answering my question. I have additional questions.
Is it possible to do the same with the ALLEXCEPT function?
I have a reason to use it.
It would be helpful if you could answer this question as well.
Thank you.
I'm not sure I understand the question. You could put ALLEXCEPT inside the CALCULATE in the DAX I gave but without knowing why you want to use it, I have no way of knowing if it will behave as you intend or not.
thank you for your answer.
I'm sorry for the unclear intention. I asked again what I wanted to do.
I would be very happy if you could answer this question.
thank you
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.