Forum Discussion
Calculate Percent
- Anonymous5 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)-1Best Regards
SQUILES , few things are not clear, when need % of Monday, then you should divide sum of Monday by total, here you are dividing total by Monday
Monday = CALCULATE([TotalBalance],PREVIOUSMONTH('Date'[Date]), filter('Date',WEEKDAY('Date'[Date],2)=1))
last month = CALCULATE([TotalBalance],PREVIOUSMONTH('Date'[Date]))
last month % = divide([Monday],[last month])
Can you elaborate on calculations
Sure,
1. I need to calculate the AVERAGE of Total Balance of all MONDAYS of Previous Month:
2. The percent = Average_Monday_Prev_Month / Total_Balance of each Monday of Current Month -1
Example: Average_Monday_Prev_Month=11,188.00
1/4/2021 = (11,188 / 8,987.00) -1
1/11/2021 = (11,188 / 13692.00) -1
1/18/2021 = (11,188 / 14703.00) -1
- Anonymous5 years agoNot applicable
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)-1Best Regards