Forum Discussion
Creating a visualization based on bins of years
- 8 years ago
You could create a calculated column ans SWITCH() similar to this:
Evaluation = SWITCH(
TRUE(),
YEAR(TODAY()) = Sheet1[Dates].[Year] || YEAR(TODAY()) < Sheet1[Dates].[Year] + 3, "Between 1 and 3 Years",
YEAR(TODAY()) = Sheet1[Dates].[Year] || YEAR(TODAY()) > Sheet1[Dates].[Year] + 2 && YEAR(TODAY()) < Sheet1[Dates].[Year] + 6, "Between 4 and 6 Years",
YEAR(TODAY()) = Sheet1[Dates].[Year] || YEAR(TODAY()) > Sheet1[Dates].[Year] + 5, "Greater Than 6 Years",
BLANK())
You could create a calculated column ans SWITCH() similar to this:
Evaluation = SWITCH(
TRUE(),
YEAR(TODAY()) = Sheet1[Dates].[Year] || YEAR(TODAY()) < Sheet1[Dates].[Year] + 3, "Between 1 and 3 Years",
YEAR(TODAY()) = Sheet1[Dates].[Year] || YEAR(TODAY()) > Sheet1[Dates].[Year] + 2 && YEAR(TODAY()) < Sheet1[Dates].[Year] + 6, "Between 4 and 6 Years",
YEAR(TODAY()) = Sheet1[Dates].[Year] || YEAR(TODAY()) > Sheet1[Dates].[Year] + 5, "Greater Than 6 Years",
BLANK())
Thanks for the help!! This looks like exactly what I need. My last attempt was with a lof of conditional IF statements in a column, but using this simplifys the approach and is easier to read. Thanks so much!!