Forum Discussion

sharmon9000's avatar
sharmon9000
Helper I
8 years ago
Solved

13 Week Rolling Average Graph with Daily %

After looking at some examples previously posted, I still cant figure out how to implement this seemingly easy concept into my PowerBI report.     My dataset only includes the columns: [Date], and ...
  • Ashish_Mathur's avatar
    8 years ago

    Hi,

     

    Try this

     

    1. Create a calendar table which should have all dates that exist in your dataset.  There should be no repetitions in the calendar table and no date should be missed either
    2. Create a relationship from the Date column of your data table to the date column of your calendar table
    3. In your visual, drag the date field from the calendar table
    4. Write the following measures

    Success rate = SUM(Data[Success%])

    13 week average success rate = CALCULATE([Success rate],DATESBETWEEN(Calendar[Date],MIN(Calendar[Date])-91,MIN(Calendar[Date])))

     

    Hope this helps.