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 agoHi tackytechtom ,
I have tested and it shows me the name without the domain name..Greatttt!!!.
I need to replace DOMAIN\ with my domain name ...😅
If I publish it at power bi service, how can I ensure the timezone follows my timezone ...
Really appreciate your help tackytechtom ...
Regards,
NickzNickz
tackytechtom
Most Valuable Professional
3 years agoHi NickzNickz ,
The SUBSTTITUTE function is case sensitive. Is it "DOMAIN\" or "Domain\" or "domain\"?
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/