Yup. We draw workouts from a wide range of sources. Some are specific issues that the Workout Leaders have encountered in their own work, and at times we will also adapt workouts that we think have broad applicability from forums, Accelerator courses, presentations, challenges - you name it…
We’re also wide open to input from the Community. If you have a good problem you’ve encountered in your own work that you think would make a good workout, definitely send it along to me and/or the workout leader(s).
No difference in performance. It’s really just a readability viewpoint. Not many people know what #EFEF66 color is but they will understand Soft yellow when selecting the color
Hello friends, my first workout! I am pleased to share the solution, also as @BrianJ keeping gray all three years gray when no year is selected
SWITCH Color =
VAR SelCol = SELECTEDVALUE(Colores[Color])
VAR SelYear = SELECTEDVALUE(Dates[Year])
VAR Slicer = VALUES(‘Seleccion Año’[Year])
VAR Color = IF(AND(SelYear IN Slicer, ISFILTERED(‘Seleccion Año’[Year])), SelCol, “DimGray”)
@Paul.Gerber thanks for a great workout. I must admit to getting stuck on this one so I ended up using the solutions from @DavieJoe & @BrianJ I haven’t worked much with disconnected tables so it was a good learning exercise
This workout topic wasn’t familiar to me, so I learned many things while doing it. I started by entering some color data manually. I got the color names from @BrianJ 's lovely “Cheatsheet”, thanks for that!
Then I created a new “Years” table without connecting it to anywhere.
Years = DISTINCT(Dates[Year])
And then I created the following measure (again utilising the Cheatsheet):
Color measure =
VAR _color = SELECTEDVALUE(Colors[Colorname], "DarkGrey")
VAR _year = VALUES(Years[Year])
RETURN
IF(
AND(
ISFILTERED(Years[Year]), SELECTEDVALUE(Dates[Year]) IN _year
), _color, "LightGrey"
)
I got the idea of the “default” colors from here as well, good additions I think, so thanks to you all who contributed to this topic!
And finally I inserted the column chart, and changed the Format style of the columns to be “Field value” / “Color measure”.
Highlight sales year =
VAR Color_sel =
SELECTEDVALUE(
‘Choose color to highlight’[Choose Highlight Color]
)
VAR Year_Sel =
VALUES(
‘Choose years to highlight’[Select Years to Highlight]
)
RETURN
IF(
MAX(
Dates[Year]
)
in
Year_Sel,
Color_sel,
“grey”
)
Creating two disconnected tables (DimensionYear, Highlight Color)
ColoresDimensión =
VAR ColorSeleccionado =SELECTEDVALUE('Highlight Color'[Hex]) -- Color Hexadecimal selecionado en dimensión
VAR anoSeleccionado = VALUES(Dates[Year])
VAR Resultado = IF(
iSFILTERED(DimensionYear) && anoSeleccionado in VALUES(DimensionYear[Year]),
ColorSeleccionado,
"#0070BB" ) -- color azul
RETURN
Resultado