Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Move Calculated Column value ahead in time?

Hi guys, i need help moving my calculated column calculation value (can be a measured if needed) into month ahead of it. The image below should make things clear. Instead of having my target li...
  • v-chuncz-msft's avatar
    v-chuncz-msft
    7 years ago

    Anonymous,

     

    You may refer to the following code.

    Column =
    IF (
        CALCULATE (
            SUM ( 'Data Table'[Actual] ),
            PREVIOUSMONTH ( 'Data Table'[Fiscal Dates] )
        )
            <> BLANK (),
        'Data Table'[Planned]
            + CALCULATE (
                SUM ( 'Data Table'[Planned] ) - SUM ( 'Data Table'[Actual] ),
                PREVIOUSMONTH ( 'Data Table'[Fiscal Dates] )
            )
    )