Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 112 | |
| 108 | |
| 39 | |
| 34 | |
| 27 |