Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Fill a column based on last month date

Hello!   I need to create a calulated column "NEW COLUM", placing the last month values acording to the  "tipe" column,  and olny the last month f.e I had 2700000 kg of CPRS in January, i need the...
  • LivioLanzo's avatar
    7 years ago

    Try like this:

     

    = CALCULATE(

            SUM( 'Table'[kGS] ),

            ALLEXCEPT( 'Table', 'Table'[Type] ),

            'Table'[Month] = EARLIER( 'Table'[Month] ) - 1

    )