Forum Discussion

BJP99's avatar
BJP99
New Member
1 year ago
Solved

Creating a Sum Based on Month

Hi,   I have budget data by month.  How do I go about creating a field that would add Months 1-8 of said data, ignoring the other 4 months.  This data being budget data does not have actual dates t...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi BJP99 

    Please try the following Dax:

    (Jan - Aug) = CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),MONTH('Table'[Date])>=1 && MONTH('Table'[Date])<=8 && 'Table'[Account]=EARLIER('Table'[Account])))

     

    Result:

     

     

     

     

     

     

    Best Regards,

    Jayleny

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.