Forum Discussion

haraldjw's avatar
haraldjw
Frequent Visitor
5 years ago
Solved

Calculate total year, ignoring selected date range

With which measure can I calculate the total of a selected year, ignoring a selected date range?   Explanation: In a orderbook I select a daterange to compare the orders of this year with last year...
  • Jihwan_Kim's avatar
    5 years ago

    Hi, haraldjw 

    I am not sure how your measure looks like, but try something like below.

     

    New measure =
    CALCULATE (
    [your measure],
    FILTER (
    ALL ( 'your datetable' ),
    [datetable year column] = MAX ( [your selected year] )
    )
    )

     

    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: https://www.linkedin.com/in/jihwankim1975/