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

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.

Reply
Tob_P
Helper V
Helper V

Filtering on amount >=

I have been working off a piece of DAX that I used previously whereby I only wanted to show sales after a certain date which worked well and wanted to adapt it so that only sales after a certain amount where shown. Here's the DAX...

 

Product Target Filtered Sales (MSM Amount) =
sumx (
    'tblProductTargets',
    VAR BonusStartAmount ='tblProductTargets'[Start Amount]
    RETURN
    CALCULATE(
        sum('Nav_Sales History MASTER'[Amount (LCY)]),
        KEEPFILTERS(
            'Nav_Sales History MASTER'[Amount (LCY)] >= BonusStartAmount)))+0
 
To test it out, I reset the [start amount] to zero, fully expecting to see the full amount but get this result...
 
TobP4.png
 
Is there a reason why this would work on dates, but not on amounts? I thought it would be fairly straightforward.
 
Thanks
6 REPLIES 6
Tob_P
Helper V
Helper V

@johnt75Thanks for the suggestion. I'll give that a go and see if anything comes up!

Hi @Tob_P ,

 

Have your questions been resolved and can you share them?

 

Best regards.

@ChenwuZhu_Gmail 

 

I'm afraid not - still looking for a solution. Nothing flagged up in Performance Analyser and there is a direct relationship between Sales History and Target

johnt75
Super User
Super User

If [Amount (LCY)] is a measure rather than a column I think you will need to use the FILTER function rather than just passing it as a parameter to CALCULATE. Without the FILTER iterator it has no row context in which to evaluate the measure

Hi @johnt75 - Thanks for coming back to me. It's a column, not a measure.

 

Then the problem would seem to be in other filters which may be being applied. Is there a relationship from the targets table to sales history?

A good way to see which filters are being applied to a visual is to get the DAX code generated for it from Performance Analyzer and look at that in DAX Studio. Might point you in the right direction

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.