Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
samuel_brierley
Creator
Creator

formula issue

Can anyone see an error in this formula?

sum({$< Date }<= {$(=Today()))>} [Total Hours]) 

its supposed to sum the total hour worked up until today.

p.s needs to be done this way as i have forecasted hours too.

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try this.

sum({$< Date = {'<=$(=Today())'}>} [Total Hours])


Regards,

Jagan.

View solution in original post

5 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try this.

sum({$< Date = {'<=$(=Today())'}>} [Total Hours])


Regards,

Jagan.

Sokkorn
Master
Master

Hi,

This one

Sum({$<Date = {"<=$(=Date(Today(),'dd-MM-yyyy'))"}>} [Total Hours])

Note: You need format Today() base on your Date field.

Regards,

Sokkorn

samuel_brierley
Creator
Creator
Author

thank you

Not applicable

Hi,

There is a bracket too much after Date.

Moreover, I would write the expression like that (not tested however):

sum({$< Date = {“<= $(=Today()) )”>} [Total Hours]) 

Fabrice

khadeer
Specialist
Specialist

Hi Samuel,

Use this

 

sum({$<Date={"$(=Today())"}>}[Total Hours])

Regards,

Khadeer