Forum Discussion

i_like_tacos's avatar
i_like_tacos
Regular Visitor
1 year ago
Solved

Find changes in trend

Hello all,

 

I have played with Power BI a little, but when it comes to DAX I am overwhelmed and struggle to figure things out.  I have a set of data that I'm trying to figure out how to identify changes in trends.

 

For example, my set of data looks similar to this, but with several thousand students across a minimum of 1 month.  I have "truncated" the data for this example below.  You can see StudentA and StudentB test scores are all relatively similar, but with StudentC something happened where their trend shifted and degraded.  I am looking to see how in PowerBI I can identify all students that have a significant shift in their Score trend say over the past month and possibly up to the past 2-3 months.

 

I've been attempting to look online for how to get this to work, but it seems more complex than I realized.  Tried using chatgpt, but everything it recommends results in some sort of errors or circular dependency issues.  I'm stumped and was hoping some smart folks may have some suggestions on how I can accomplish this.

 

Cheers!

 

StudentDateScore
StudentA5/1/202598
StudentA5/2/202598
StudentA5/3/202598
StudentA5/4/2025100
StudentA5/5/2025100
StudentA5/6/202599
StudentA5/7/202595
StudentA5/8/202597
StudentA5/9/202596
StudentA5/10/202596
StudentB5/1/202599
StudentB5/2/202598
StudentB5/3/2025100
StudentB5/4/202595
StudentB5/5/2025100
StudentB5/6/202596
StudentB5/7/202595
StudentB5/8/202597
StudentB5/9/202595
StudentB5/10/202597
StudentC5/1/2025100
StudentC5/2/202596
StudentC5/3/2025100
StudentC5/4/202596
StudentC5/5/202595
StudentC5/6/202599
StudentC5/7/202570
StudentC5/8/202563
StudentC5/9/202566
StudentC5/10/202561
  • In statistics, a moving average is the most frequently used way to identify trends with smoothing out short-term fluctuations. With PBI, it's even more informative by visulizing it.

  • i_like_tacos - You don't really need to implement any complicated DAX for this. You could do so with the right choice of visualisation. Customising a Scatter Plot would help visualise changes to the norm for each student. 

     

    This is a great article that will show you how: https://www.sqlbi.com/articles/using-scatterplots-to-find-details-in-reports/

     

    If I answered your question please mark my post as the solution, it helps others with the same challenge find the answer!

4 Replies

  • In statistics, a moving average is the most frequently used way to identify trends with smoothing out short-term fluctuations. With PBI, it's even more informative by visulizing it.

  • i_like_tacos - You don't really need to implement any complicated DAX for this. You could do so with the right choice of visualisation. Customising a Scatter Plot would help visualise changes to the norm for each student. 

     

    This is a great article that will show you how: https://www.sqlbi.com/articles/using-scatterplots-to-find-details-in-reports/

     

    If I answered your question please mark my post as the solution, it helps others with the same challenge find the answer!

  • i_like_tacos's avatar
    i_like_tacos
    Regular Visitor

    Thank you both.  I've been able to implement the moving average window into my project and have been successful getting it to work.  I am playing with it to try to expand functionality across other KPIs I'm working with.

     

    The scatterplot method proposed is an interesting take and I am also playing with that and seeing how that may be incorporated as well.


    Many Thanks!