Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Present on the screen

Hi guys,

 

How to create a measure to display good morning, good afternoon or good night on the screen in relation to the current time?



Thanks

  • Anonymous 

    maybe you can try this

    Measure = 
    VAR _time=hour(now())
    return if(_time<12,"Good Morning",if(_time<18,"Good afternoon","Good night"))

3 Replies

  • Anonymous 

    maybe you can try this

    Measure = 
    VAR _time=hour(now())
    return if(_time<12,"Good Morning",if(_time<18,"Good afternoon","Good night"))