Dear all,
For example each row represents a unique licensing deal, I would like to know how to create a variable (i.e. stock_deal) that counts how many licensing deals a particular Licensee has with a particular Licensor in a 5-year time window. If you look at the table below, you see that
This is the result I want to become
I've tried "stock_deal = wordcount(Licensee !==" "), by Licensor" but this does not work and I don't find a syntax for a moving time window of 5 years. Does anyone know what I'm doing wrong?
Thank you in advance.
Yours sincerely,
An
For example each row represents a unique licensing deal, I would like to know how to create a variable (i.e. stock_deal) that counts how many licensing deals a particular Licensee has with a particular Licensor in a 5-year time window. If you look at the table below, you see that
- Licensee A has 2 unique licensing deals with licensor B in a 5-year time window (1999 & 2003 )
- Licensee E has 2 unique licensing deals with Licensor C in a 5-year time window ( 1995 & 1997)
| Licensor | Licensee | year of licensing deal |
| A | B | 1999 |
| C | B | 2000 |
| A | B | 2003 |
| C | E | 1995 |
| G | E | 1998 |
| C | E | 1997 |
| Licensor | Licensee | Year of licensing deal | stock_deal |
| A | B | 1999 | 2 |
| C | B | 2000 | 1 |
| A | B | 2003 | 2 |
| C | E | 1995 | 2 |
| G | E | 1998 | 1 |
| C | E | 1997 | 2 |
Thank you in advance.
Yours sincerely,
An

Comment