To implement this recipe, perform the following steps:
- Create the following measure:
Greeting =
VAR __User = USERNAME()
VAR __Hour = HOUR(NOW())
VAR __Prefix =
SWITCH(
TRUE(),
__Hour < 12 , "Good morning ",
__Hour >= 12 && __Hour < 17 , "Good afternoon ",
"Good evening "
)
RETURN
CONCATENATE(__Prefix , __User)
- Create a Card visualization and place the Greeting measure in the Fields area for the Card visualization.