Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
mattheomx
Contributor
Contributor

calculate daily rank

I have the following scenario: user selected a Milk from Product selection box.

The requirement is to display the daily ranking based on Sales for the last couple couple of days for product Milk. The resulting table should look like this:

                          

DateRank
3/3/20155
3/4/20152
3/5/20154
3/6/20154
3/7/20156
3/8/20154

How can this be achieved?

1 Solution

Accepted Solutions
chrislofthouse
Partner Ambassador
Partner Ambassador

Ah sorry, I misunderstood your requirements:

View solution in original post

6 Replies
chrislofthouse
Partner Ambassador
Partner Ambassador

See the application ! ! attached.

mattheomx
Contributor
Contributor
Author

Thanks for the help but this solution doesn't work.

I reloaded the app with a different number to differentiate the sales. For 08/03 and  07/03 it works correctly. 06/03 and before have incorrect ranks:

chrislofthouse
Partner Ambassador
Partner Ambassador

Is this any better?

mattheomx
Contributor
Contributor
Author

Here's a catch: when I select milk rank changes to 1:

The rank should stay as if there was no product selection. We should see rank 1 and rank 2 depending of the day.

Really appreciate the help!

chrislofthouse
Partner Ambassador
Partner Ambassador

Ah sorry, I misunderstood your requirements:

mattheomx
Contributor
Contributor
Author

Great thank you!