Forum Discussion

SQUILES's avatar
SQUILES
Helper I
5 years ago
Solved

Calculate Percent

HI, I need help. This is the situation i have: This is piece of my data filter by All Mondays of Dec-2020 and Jan-2021. date Balance1 Balance2 Total 12/7/2020  $     378.00  $  7,489.00 ...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi SQUILES ,

    Please update the formula of measure [Avg_Prv_Month]  and [Percent] as below:

    Avg_Prv_Month =
    CALCULATE (
        AVERAGE ( Sheet1[Total] ),
        FILTER ( ALL ( Sheet1 ), WEEKDAY ( Sheet1[date], 2 ) = 1 ),
        PREVIOUSMONTH ( Sheet1[date] )
    )
    Percent= DIVIDE([Avg_Prv_Month],[TotalBalance],0)-1

    Best Regards