Quantcast
Viewing all articles
Browse latest Browse all 217137

Rank within double grouping - possible?

Hey,

 

I'm trying to add a rank column to a fact table that ranks based on two groupings.

My table basically contains records for user activities with user id, created date and a column with the product id for which the activity happend.

 

It looks like this:

Image may be NSFW.
Clik here to view.
Screen Shot 2016-10-18 at 12.31.04.png
  

 

What I now want to do is to create a column that ranks the activities by created date, based on user AND product.

How can I do this?

 

Thanks!

 

 


Viewing all articles
Browse latest Browse all 217137

Trending Articles