Dear all,
I am working with a data set of revenues per customer over several months. However, I want to change this table to show revenues per customer from the first month they purchased. So instead of the first column header '202001', the first column header should be Month 1, and instead of the values being the actual spend per customer in that month, the values should be the spend per customer in their first month. Example tables below:
What I have:
202001 | 202002 | 202003 | 202004 | |
Customer 1 | 50 | 20 | ||
Customer 2 | 2 | 40 | ||
Customer 3 | 3 | 30 |
What I want:
Month 1 after first purchase | Month 2 after purchase | Month 3 after purchase | Month 4 after purchase | |
Customer 1 | 50 | 20 | ||
Customer 2 | 2 | 40 | ||
Customer 3 | 3 | 30 |
The data set is very large. I normally do this in excel, but there are unfortunately too many rows and too many columns.
Could someone help?
Solved! Go to Solution.
Hi @Majao
Here's what you could do:
I believe that works, but notwhen there is a long sequence of zeros before there are new values again. Is that something you can help with as well? I updated the table in my question to include a number in the end after some zeros.
Hi @Majao ,
Is the data actually 0 or empty? Important distinction, it's achievable but wanted to check.
Data is [Null]
Impressive - thank you!