Forum Discussion
NickzNickz
Helper IV
3 years agoGreeting User Login Message
Hi ... I have below measures to greet users who access the dashboard. Greeting User =
VAR _User = USERNAME()
VAR _Hour = HOUR(NOW())
VAR _Prefix =
SWITCH(
TRUE(),
_Hour <...
- 3 years ago
Hi NickzNickz ,
What a great idea to greet your users!How about this:
Measure = 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, SUBSTITUTE(_User, "DOMAIN\", "") )Let me know if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
NickzNickz
Helper IV
3 years agotamerj1
Community Champion
3 years agoOf it it is afternoon in your local time then it should.