Forum Discussion

dwel0120's avatar
dwel0120
Icon for Helper III rankHelper III
5 years ago

Current Rate of Current Week

I am trying to get the current rate from a column but also needs to be pulling from the most current week of the year. Any thoughts or ideas? The year's current week changes every week, so I need to pull the most current week for when I refresh data. I already made the CurrentWk metric and the CRate metric but nee CurrentRate

CurrentWk = CALCULATE(Max('TABLE1'[WkNm]),'TABLE1'[SchoolYear] = "SY20/21")
CRate = DIVIDE(sumx('TABLE1','TABLE1[CumWDs]),'TABLE1'[CumDenominator],"")
 

This formula isn't working.

CurrentRate = CALCULATE('TABLE1'[CRate], FILTER(ALL('TABLE1'[WkNm]), 'TABLE1'[WkNm] = 'TABLE1'[CurrentWk]))

6 Replies