Forum Discussion

Isildur13's avatar
Isildur13
Frequent Visitor
2 years ago
Solved

Calculate total on each row based on year

Hi Community   I need help with calculating the total amount for the whole year and display it on the rows in my table. I have no date table since the data only includes a year column.   I have t...
  • Daniel29195's avatar
    Daniel29195
    2 years ago

    Isildur13 

    try this : 

    $ Total Amount last Year =
    var  last_year =  max( period[year])   - 1 
        CALCULATE (
            [$ Amount],
            all( table_name), 
    period([year]) = last_year
        )
     
     
     
     
     
     
     
     
    If my response has successfully addressed your issue kindly consider marking it as the accepted solution! This will help others find it quickly. Dont forget to hit that  thumbs up button 🫡👍