Juan Pablo Melgarejo Zamora Posted June 5, 2019 Posted June 5, 2019 Hi everyone, I have a dataframe like this: Person Age Person1 20 Person1 20 Person2 30 Person2 30 Person2 30 I'd like to get something like this: Person Age Age2 Person1 20 20 Person1 20 Person2 30 30 Person2 30 Person2 30 So that I can later be able to add that and get that the total age is 50, instead of 130.
Gaia Paolini Posted June 6, 2019 Posted June 6, 2019 Try this: If(RowId()=First(RowId()) OVER ([Person]),[Age],NULL) Gaia
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now