Forum Discussion
groups and binning
Hi,
I don't have a date, it's just showing month and year. By using the second solution, it means I need to add in all possible combinations. What if I have all months from 2015 - up to anytime in the future? Is there any way to do this dynamically?
Thanks & Rgds,
Lina
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
- Anonymous7 years agoNot applicable
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