Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Dynamic Date & Site/Location Reference in Like For Like Calculations

Hi, everyone.   I have been having trouble with performing like for like calculations. Specifically, the task is to produce like for like calculation table where I would have comparison of two per...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hey, 

     

    I figured it out. I just integrated in my measure the minimum date that I then used in time filter for calendar year:

     

    <div>

     

    Measure =
    VAR MinimumDate = CALCULATE(MIN('Calendar'[Year]),ALLSELECTED('Calendar'[Year]))
    VAR Result = CALCULATE (
        [LFL EBITDA Actual],
        FILTER (
            ALL ( 'Calendar' ),
            'Calendar'[Year]
                = ( MinimumDate )
                && 'Calendar'[Month] IN VALUES ( 'Calendar'[Month] )
        )
    )
    RETURN
        Result

     

     

    </div>

     

    Best regards