Forum Discussion

tsurugi824's avatar
tsurugi824
New Member
2 years ago

Rolling average

Hello!! Community. Iam facing problem in one visual table i'll need your help. There are 3 columns in the table Sheets1; The columns are  Sales Date, Total Sales, Region. I want to calculate 3 month rolling average i had created the Dax Measure:

 

Rolling avgg = CALCULATE(average(Sheet1[total sales]), DATESINPERIOD(Sheet1[sales date ].[Date], LASTDATE(Sheet1[sales date ].[Date]), -3, MONTH))
 

But in the results it is showing Rolling avgg values along with 2 extra months  i.e august, september for region mumbai and may, june for banglore which is not there in the dataset. I dont want these rolling avgg with extra months in the results and i dont want to create calendar dimension table. I had attached the result image. Please Help

 

5 Replies