Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Ben83
Advocate IV
Advocate IV

Trend calculation

I hope you can help me to find a solution for my problem. I want to visualize the trend of my companies delivery reliability (OTIF - on time in full). I have a table which contains every single delivery position of the last year. So there are a lot of positions every calendar week which were rated by tolerances for the delivery date and the delivery quantity. The result is that it is currently possible to show and visualize the delivery reliability of every single delivery position and in that context also the delivery reliability of every single calendar week, every single month, every single quarter and the delivery reliability for the whole year.

My problem is that I want to show a trend of the delivery reliability. It would be great when it would be possible to show the average of the delivery reliability for the last 5 calendar weeks in every single week.

Explanation:
In calendar week 5 the average of the delivery reliability for the calendar weeks 1, 2, 3, 4 and 5.
In calendar week 6 the average of the delivery reliability for the calendar weeks 2, 3, 4, 5 and 6.
In calendar week 7 the average of the delivery reliability for the calendar weeks 3, 4, 5, 6 and 7.
....
In calendar week 20 the average of the delivery reliability for the calendar weeks 16, 17, 18, 19 and 20.
....
And so on.

I would appreciate it if someone can help me to find a solution.

1 ACCEPTED SOLUTION
kcantor
Community Champion
Community Champion

 

I did something similar in our data to show a moving averege of quantiy sold over the past three months. I followed the advice on the following blog in order to capture and quantify the appropriate averages.

 

http://www.powerpivotpro.com/2013/07/moving-averages-sums-etc/

 

It was very easy to follow along with this particular blog.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
kcantor
Community Champion
Community Champion

 

I did something similar in our data to show a moving averege of quantiy sold over the past three months. I followed the advice on the following blog in order to capture and quantify the appropriate averages.

 

http://www.powerpivotpro.com/2013/07/moving-averages-sums-etc/

 

It was very easy to follow along with this particular blog.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Awesome! That's what I am looking for. Thank you very much for the usefull help!

Greg_Deckler
Community Champion
Community Champion

Well, you will need a measure to calculate delivery reliability. Sounds like you already have that. Then, you will probably want a date/time table, something like DateStream from the Azure Data Marketplace (free). Relate your table with your delivery dates to your date table. Then, you should be able to create a line chart, picking "Week of Year" essentially from the date table and your reliability measure and wahla, you should have your trend as the visualization will context filter your measure by the related week of the year.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors