Forum Discussion

Paiman's avatar
Paiman
Frequent Visitor
5 years ago
Solved

Cumulative by multiple criteria and date range

Hello, I've stuck on to solve this using dax measure. I have example table called "Crypto",    Commodity Recom Trade_Date Risk_Month Value BTC Recommended 10/12/2018 1/1/2020 803 ...
  • Jihwan_Kim's avatar
    5 years ago

    Hi, Paiman 

    I am not sure if I understood your question correctly.

    I assume you are showing the expected outcome by using different data.

    Please check the below.

     

    Cumulative Measure =
    CALCULATE (
    SUM ( Crypto[Value] ),
    FILTER (
    ALLEXCEPT ( Crypto, Crypto[Risk_Month], Crypto[Commodity], Crypto[Recom] ),
    Crypto[Trade_Date] <= MAX ( Crypto[Trade_Date] )
    )
    )
     
     

    Hi, My name is Jihwan Kim.


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


    Linkedin: linkedin.com/in/jihwankim1975/

    Twitter: twitter.com/Jihwan_JHKIM