Forum Discussion

rmcgrath's avatar
rmcgrath
Advocate III
1 year ago
Solved

Filter in CALCULATE

I'm working with Accounts Receivable data and I have two DAX measures.  One controls the [Amount Due] to grab everything greater than $500.  The other one calculates the AR total less anything considered "Current".  How can I apply AmountDuewithAllDelinquency > 500 to the second?
 
AmountDuewithAllDelinquency =
CALCULATE (
    SUM ( 'Accounts Receivable'[Amount Due] ),
    ALL ( 'Accounts Receivable'[Delinquency] )
)
 
 
ARtotal =
CALCULATE (
    SUM ( 'Accounts Receivable'[Amount Due] ),
    Customer[EGG/NON-EGG] = "EGG",
    Delinquency[Delinquency] <> "Current",
    Customer[INTERNAL/EXTERNAL] = "EXTERNAL"
)
  • rmcgrath , Try using

    DAX
    ARtotal =
    CALCULATE (
    SUM ( 'Accounts Receivable'[Amount Due] ),
    Customer[EGG/NON-EGG] = "EGG",
    Delinquency[Delinquency] <> "Current",
    Customer[INTERNAL/EXTERNAL] = "EXTERNAL",
    FILTER (
    'Accounts Receivable',
    [AmountDuewithAllDelinquency] > 500
    )
    )

1 Reply

  • rmcgrath , Try using

    DAX
    ARtotal =
    CALCULATE (
    SUM ( 'Accounts Receivable'[Amount Due] ),
    Customer[EGG/NON-EGG] = "EGG",
    Delinquency[Delinquency] <> "Current",
    Customer[INTERNAL/EXTERNAL] = "EXTERNAL",
    FILTER (
    'Accounts Receivable',
    [AmountDuewithAllDelinquency] > 500
    )
    )