Forum Discussion

arhomberg's avatar
arhomberg
Helper I
4 years ago
Solved

Summarize Table by Fields and Implementing Calculations

Hello everyone,   I am currently working to figure out the best way to combine and summarize some time series data I have. We are currently tracking quiz scores and would like to eventually see an ...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi arhomberg ,

     

    Sorry about my mistake. DATEADD needs to put the date column into the visual to work.

     

    I made a simple example. I used the simplest function to filter this month and last month. Please check the screenshots and attachments.

    Current Avg = CALCULATE(AVERAGE('Table'[Percent_Correct]),FILTER('Calendar',YEAR([Date])=YEAR(TODAY())&&MONTH([Date])=MONTH(TODAY())))
    Prev Month Avg = CALCULATE(AVERAGE('Table'[Percent_Correct]),FILTER('Calendar',YEAR([Date])=YEAR(TODAY())&&MONTH([Date])=MONTH(TODAY())-1))
    Percent change = DIVIDE([Current Avg]-[Prev Month Avg],[Prev Month Avg])

     

    Hope to help you. Sorry again.

     

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.