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

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

Reply
non23
Helper I
Helper I

Sum of filtered values based on drill through

We have two kinds of pumpkins. We want to get the total weight of pumpkins for the day, even if it is filtered to one kind of pumpkin, as seen in the photo below for 15/04/2025. It gives the correct total weight per day, but the TOTAL is incorrect as it should be 125K only. Any help on how I should compute this in DAX?

 

I'm currently using
CALCULATE([TotalWeight],CONTAINSSTRING(Fruit,"Pumpkin")

Screenshot 2025-05-09 112757.png

2 ACCEPTED SOLUTIONS
techies
Super User
Super User

Hi @non23 please check this

 

Total Weight =
SUMX (
    VALUES('Sheet4'[Date]),
    CALCULATE (
        SUM('sheet4'[Weight]),
        REMOVEFILTERS('sheet4'[PumpkinType])
    )
)
― Power BI | Microsoft Fabric | PL-300 | DP-600 | Blog: medium.com/@cseprs_54978

View solution in original post

v-kpoloju-msft
Community Support
Community Support

Hi @non23,
Thank you for reaching out to the Microsoft fabric community forum. Thank you @techies, for your inputs on this issue.

After thoroughly reviewing the details you provided, I was able to reproduce the scenario, and it worked on my end. I have used it as sample data on my end and successfully implemented it.    

Output:

vkpolojumsft_0-1746772111025.png

 


If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.

Thank you for using Microsoft Community Forum.

View solution in original post

5 REPLIES 5
v-kpoloju-msft
Community Support
Community Support

Hi @non23,
Thank you for reaching out to the Microsoft fabric community forum. Thank you @techies, for your inputs on this issue.

After thoroughly reviewing the details you provided, I was able to reproduce the scenario, and it worked on my end. I have used it as sample data on my end and successfully implemented it.    

Output:

vkpolojumsft_0-1746772111025.png

 


If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.

Thank you for using Microsoft Community Forum.

Hi @non23,

 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Hi @non23,


I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

Hi @non23,

I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.

techies
Super User
Super User

Hi @non23 please check this

 

Total Weight =
SUMX (
    VALUES('Sheet4'[Date]),
    CALCULATE (
        SUM('sheet4'[Weight]),
        REMOVEFILTERS('sheet4'[PumpkinType])
    )
)
― Power BI | Microsoft Fabric | PL-300 | DP-600 | Blog: medium.com/@cseprs_54978

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.