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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
roytap
Helper I
Helper I

How to exclude a specific table dimension value using CALCULATE fomula

Hi,

 

I have a problem getting the DAX with the following example:

 

I have a source data of Product Group and Sales

 

I created a Product Group Filter.

 

I created a custom measure using the following DAX:

 

Total Product Group = CALCULATE(SUM('Table'[Sales]), ALL('Table'[Product Group]))

 

I set an Edit Interaction on the visualization to be excluded from the Product Group filter for the Total Product Group measure so that it will always display sales of all product no matter what the product filter are selected.

 

Power BI Exclude Filter.JPG

 

Question : The DAX formula will actually return all Product Group Sales, but i want to exclude Product Group E, how can i modify the DAX to exclude Product Group E? I am actually able to get the correct value for Total Product Group by using Edit Interaction and defining Page Filter. However, I am unable to get the Product Weightage as i am unable to extract a value that is filter using Edit Interaction and Page Level Filter. FYI, i am using Card as the visualisation to display these values.

 

Thanks.

 

Best Regards,

Roy 

 

 

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @roytap,

 

You can create two measures below:

Total Product Group = CALCULATE(SUM(Sheet1[Sales]), FILTER(ALL(Sheet1),Sheet1[Product Group]<>"E"))

Product weightage = DIVIDE(CALCULATE(SUM(Sheet1[Sales])),[Total Product Group])

2.jpg

 

For more information, you can see attached pbix file. 

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-qiuyu-msft
Community Support
Community Support

Hi @roytap,

 

You can create two measures below:

Total Product Group = CALCULATE(SUM(Sheet1[Sales]), FILTER(ALL(Sheet1),Sheet1[Product Group]<>"E"))

Product weightage = DIVIDE(CALCULATE(SUM(Sheet1[Sales])),[Total Product Group])

2.jpg

 

For more information, you can see attached pbix file. 

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.