Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Calculate volume next month

Hi guys,   I've the following table columns: VOLUME, PEOPLE and EOMONTH. I need to calculate the volume of the next month like the example bellow:   VOLUME PEOPLE EOMONTH Calc_Column 43 ...
  • mahoneypat's avatar
    5 years ago

    Here is a column expression with one way to do it.  Replace Volume with your actual table name.

     

    NextMonth =
    VAR vNextDate =
        EOMONTH (
            Volume[EOMONTH],
            1
        )
    RETURN
        CALCULATE (
            SUM ( Volume[VOLUME] ),
            ALLEXCEPT (
                Volume,
                Volume[PEOPLE]
            ),
            Volume[EOMONTH] = vNextDate
        )

     

    Pat