Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

View all the Fabric Data Days sessions on demand. View schedule

Reply
pankajsk83
Regular Visitor

All doesn't override filter CONTEXT

Hi All,

 

In the image here, I am trying to get All to override filter context on category. However, that doesn't happen. It works for every other column like Brand, color or manufacturer. However, it doesn't remove filter context for category and subcategory. I even tried using the category field which is within the hierarchy but no success.dax question.JPG

1 REPLY 1
OwenAuger
Super User
Super User

Hi @pankajsk83 

The logic of your [all trial] measure looks correct, assuming that your visual is grouping by 'Product'[Category] only.

 

Is there by any chance a sort-by column or group-by defined on 'Product'[Category]?

 

If you examine the DAX query generated by the visual using Performance Analyzer, it may help answer this.

 

In the SUMMARIZECOLUMNS portion of the query, if there are two columns inside ROLLUPGROUP, then that is the source of the problem, and the second column would need to be added to ALL.

 

SUMMARIZECOLUMNS(
	ROLLUPADDISSUBTOTAL(
		ROLLUPGROUP('Product'[Category], 'Product'[Some Other Column]), "IsGrandTotalRowTotal"
	),
	"all_trial", 'Sales'[all trial],
	"v_all_trial_FormatString", IGNORE('Sales'[_all trial FormatString])
)

 

 

Otherwise, this is how I would expect the SUMMARIZECOLUMNS portion of the query to appear if no sort-by or group-by columns are defined:

 

SUMMARIZECOLUMNS(
	ROLLUPADDISSUBTOTAL('Product'[Category], "IsGrandTotalRowTotal"),
	"all_trial", 'Sales'[all trial],
	"v_all_trial_FormatString", IGNORE('Sales'[_all trial FormatString])
)

 

 

If the above doesn't help, could you post a link to a PBIX demonstrating the issue?

 

Regards

 

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.