- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Change to find percent change from 2012 to 2022
Good afternoon -- I'm working on a dataset that has the number of applicants to different columns. I previously asked how to get the yearly percent change for a number of applicants.
I would now like to just get the percent change from 2012 to 2022. I have tried a lag column and also modifying the numbers in the formula in the current column that calculates percent change, but I can't seem to figure it out. I appreciate the help in advance. Also, I've been trying to find what the numbers 1,1,0,1 reference as I think that has to do wth the solution, but can't find it. Thanks!
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Change to find percent change from 2012 to 2022
Are you trying to find the change between first year and last year or specifically 2012 and 2022?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Change to find percent change from 2012 to 2022
Depending on the assumptions which can be made (is ordered by year / do you want first vs last year) there are different solutions. Below is one option for 2012 vs 2022
Col Sum(If(:Year == 2012, :Applicants total, ., ), :Institution name)
/
Col Sum(If(:Year == 2022, :Applicants total, ., ), :Institution name)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Change to find percent change from 2012 to 2022
Expanding on Jarmo's solution, you may only want the 2012 to 2022 change to be displayed in the 2022 rows
The formula for this is
If( :Year == 2022,
Col Sum( If( :Year == 2012, :Applicants total, . ), :Institution name ) /
Col Sum( If( :Year == 2022, :Applicants total, . ), :Institution name ),
.
)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Change to find percent change from 2012 to 2022
Are you trying to find the change between first year and last year or specifically 2012 and 2022?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Change to find percent change from 2012 to 2022
Depending on the assumptions which can be made (is ordered by year / do you want first vs last year) there are different solutions. Below is one option for 2012 vs 2022
Col Sum(If(:Year == 2012, :Applicants total, ., ), :Institution name)
/
Col Sum(If(:Year == 2022, :Applicants total, ., ), :Institution name)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Change to find percent change from 2012 to 2022
Expanding on Jarmo's solution, you may only want the 2012 to 2022 change to be displayed in the 2022 rows
The formula for this is
If( :Year == 2022,
Col Sum( If( :Year == 2012, :Applicants total, . ), :Institution name ) /
Col Sum( If( :Year == 2022, :Applicants total, . ), :Institution name ),
.
)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Change to find percent change from 2012 to 2022
Thank you all -- that worked great. I'm just getting into JSL, so your examples are incredibly helpful. Thanks!