I'm trying to use the RANKX formula rank the values of one column, but filtered for the value of a second column. In this example, col2 is a simple counter running in ascending value. I'm trying to find item_id's Rank value relative to the col1.
col1 col2
1001 8001
1001 8002
1002 8003
1002 8004
1002 8005
I'd like to figure out a col3 that would read:
col1 col2 col3
1001 8001 1
1001 8002 2
1002 8003 1
1002 8004 2
1002 8005 3
Because that would be the rank of col2 relative to col1.