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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I don't know how I do it
Solved! Go to Solution.
Hi, @Syndicate_Admin
First of all, in my understanding, your problem is that in case the filter changes, measure will change depending on the option attempted, and if my understanding is wrong, I hope you can give me some suggestions to help me better understand your question.
ALLSELECTED:Removes context filters from columns and rows in the current query, while retaining all other context filters or explicit filters.
ALLSELECTED function (DAX) - DAX | Microsoft Learn
First I created one tables, one master table, the master table is named "report“.
Here are the measure I've constructed about this.
Measure = SUMX(ALLSELECTED('report'),[Amount])
The function is changed according to the [Amount] column.
When I add the measure to the filter the result looks like this:
After I filtered row B from the view filter, it looks like this:
I hope my case study helps you understand the allselected function.
3.If you are interested in this area, the following is also very similar to Allselected:
ALL function (DAX) - DAX | Microsoft Learn
ALLEXCEPT function (DAX) - DAX | Microsoft Learn
If my output is not what you expected, can you provide sample data and sample output in tabular format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Syndicate_Admin
First of all, in my understanding, your problem is that in case the filter changes, measure will change depending on the option attempted, and if my understanding is wrong, I hope you can give me some suggestions to help me better understand your question.
ALLSELECTED:Removes context filters from columns and rows in the current query, while retaining all other context filters or explicit filters.
ALLSELECTED function (DAX) - DAX | Microsoft Learn
First I created one tables, one master table, the master table is named "report“.
Here are the measure I've constructed about this.
Measure = SUMX(ALLSELECTED('report'),[Amount])
The function is changed according to the [Amount] column.
When I add the measure to the filter the result looks like this:
After I filtered row B from the view filter, it looks like this:
I hope my case study helps you understand the allselected function.
3.If you are interested in this area, the following is also very similar to Allselected:
ALL function (DAX) - DAX | Microsoft Learn
ALLEXCEPT function (DAX) - DAX | Microsoft Learn
If my output is not what you expected, can you provide sample data and sample output in tabular format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.