Forum Discussion
groups and binning
Then you could do:
YourCalculatedColumn = SWITCH( TRUE(), LEFT(< month column >, 2) = "Jan", "Feb " & RIGHT(< month column >, 4) , LEFT(< month column >, 2) = "Feb", "Feb " & RIGHT(< month column >, 4), ... )
If this solves the problem, please like it and mark it as solution.
Best regards,
Kristjan76
HI!,
I tried to use your first solution, because turns out the column is in date form, but it's not what I want to do.
so what happen is Jan and Feb = Feb
March and April = March
With this, I only have 6 data groups in a year, it's supposed to be 12.
but what I wanted is
Dec and Jan = Jan
Jan and Feb = Feb,
Feb and March = March
March and April = April.
- Anonymous7 years agoNot applicable
I created a table consists of 2 columns Grouping and Period.
Content of the data will be
- Grouping - Period
- Jan 2018 - Dec 2017
- Jan 2018 - Jan 2018
- Feb 2018 - Jan 2018
- Feb 2018 - Feb 2018
- Mar 2018 - Feb 2018
- Mar 2018 - Mar 2018
- and so on...
Then match the period column with the same in other table, and group the chart based on Grouping column.
It's a bit hardcoded, but it works for now...if anybody have a simpler way/more dynamic way to do this, I would appreciate.
Thanks & Rgds,
Lina
- Anonymous7 years agoNot applicable
Hi Anonymous ,
Please share a part of sample data so that we can test and coding formula on it.
Notice: if you not have permission to upload sample file, please upload to onedrive or google drive and share link here.
Regards,
Xiaoxin Sheng
- Anonymous7 years agoNot applicable
Hello Anonymous ,
I did mention the ultimate goal is to be able to group Dec 2017 and Jan 2018 as Jan 2018, Jan and Feb 2018 as Feb 2018 and so on.
Grouping Period Jan-18 Dec-17 Jan-18 Jan-18 Feb-18 Jan-18 Feb-18 Feb-18 Mar-18 Feb-18 Mar-18 Feb-18 Thank you & rgds,
Lina