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

Set Analysis : Finding a way to calculate selected week vs previous week

Hi All,

I'm trying to develop a set analysis expression where a user clicks on a specific week in a list box in date format, and then a text box automatically calculates a Week Over Week analysis based on the selected week vs the previous week. 

Example : User clicks on 8/18/2014.  A text box would show the percentage difference between the selected week and the previous week in regards to sales.

Is this possible? Is Set Analysis the best to use in this case?

3 Replies
maxgro
MVP
MVP

yes it should be possible with set analysis

something like (for this week)

=sum({<date={">=$(=WeekStart(max(date)))<=$(=WeekEnd(max(date)))"}>} sales )  

Anonymous
Not applicable
Author

Take a look on the attached file.

In this case you will need to create a new dimension with the week.

Regards,

Gabriel

Not applicable
Author

Thank You! I simply added a -1 to your expression and it worked perfectly! I really need to engage and understand Set Analysis more