Profile picture for user kadudura

Hello, community.



Would You advise me how to plot the line chart with value (Y-axis) aggregated on a weekly basis?



In my case the source data structure is almost as in "Demo GreenCar roadshow - web traffic" data feed:

  • Date (date in format DD.MM.YYYY)
  • Value (number).



This data is updated weekly. That is why we can not use neither monthly aggregation (too rough) nor daily (too detailed).



Aggregation by week number is not possible in the line chart diagram. And seems there's no possibility to extract week number from date with MashZone tools for data feed definition.



If I use Excel for week data calculation (adding column to source data) then I face the sorting issue: 10th week follows after 1st week  on line chart instead of 9th.



Hope I succeeded explaining the situation.

by Stephan Freudl
Posted on Tue, 06/01/2010 - 18:18

Usually you would utilize the operator "Convert date" to achieve this. It removes precision from dates to assign different minutes to the corresponding hour or different days to their month.



But unfortunately the operator has no "weekly" precision; you already indicated day/month is the best you found. We are aware of it and the next version will introduce an enhancement.

Until now you may do some arithmetic to work around. It consists of

  1. assigning a sequence of numbers to each day
  2. doing modulo 7 after wards
  3. now use "Move date" to shift each day back using the offset calculated in step 2

E.g. starting with a date like May, 31 2010; June, 1 2010; June 2 2010 the first has an modulo 7 offset of zero and won't be shifted. The second is shifted back one day since modulo 7 offset worth 1 and so on. This moves each day of week date back to the week's first day.

You may find this related post interesting.

0
by Konstantin Dudura Author
Posted on Wed, 06/02/2010 - 04:52

Thanks. It really helps.

Related post has just expanded my consciousness.

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock