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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ben83
Regular Visitor

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
Super User
Super User

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.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.