Forum Discussion

JPrince_22's avatar
JPrince_22
Helper I
6 years ago
Solved

Cumulative sum using filtered dates

Hi all   i have a series of Graphs in Power BI which reference two different amount fields, and two date fields. There is an active relationship on one and the measure works fine, however when tryi...
  • amitchandak's avatar
    amitchandak
    6 years ago

    Try one of the two.

     Deposits Received = var MaxAcc = MAXX('Servicing Accounts',[account_funded_date]) Return calculate(sum([ledger_balance]),('Servicing accounts'),'Servicing accounts'[account_funded_date] <=MaxAcc, userelationship('Servicing accounts'[account_funded_date],DateTable[Date]))
     
     Deposits Received =  calculate(sum([ledger_balance]), userelationship('Servicing accounts'[account_funded_date],DateTable[Date]))

     

    Can you share sample data and sample output.