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
sustainhort
Frequent Visitor

Caluclate Sum Filter DAX not Filtering in report

I have the following

Source Use Gain Production = CALCULATE(sum('Business Crop Schedule'[Value]), FILTER(ALL('Business Crop Schedule'[Sub Type]), 'Business Crop Schedule'[Sub Type]="Production Number")) though when selecting a filter on the report it is not updating the values, instead of 6447 in this case it should read 0. How do i write the measure so these values are updating when also filtering in the report thanks

 

sustainhort_0-1678599994723.png

 

 

3 REPLIES 3
tamerj1
Super User
Super User

Hi @sustainhort 
Please try

Source Use Gain Production =
CALCULATE (
    SUM ( 'Business Crop Schedule'[Value] ),
    FILTER (
        VALUES ( 'Business Crop Schedule'[Sub Type] ),
        'Business Crop Schedule'[Sub Type] = "Production Number"
    )
)

or

Source Use Gain Production =
CALCULATE (
    SUM ( 'Business Crop Schedule'[Value] ),
    KEEPFILTERS ( 'Business Crop Schedule'[Sub Type] = "Production Number" )
)
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your datamodel looks like, but I assume the column that you want to filter inside the measure is sorted by another column. If my assumption is correct, please try inserting that column as well into the measure.

Source Use Gain Production =
CALCULATE (
    SUM ( 'Business Crop Schedule'[Value] ),
    FILTER (
        ALL (
            'Business Crop Schedule'[Sub Type],
            'Business Crop Schedule'[Sub Type Index number]
        ),
        'Business Crop Schedule'[Sub Type] = "Production Number"
    )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Hi thanks for replying, it is filter from another data table what would be the workaround for that cheers

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.