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: 
chriscools
Creator II
Creator II

propose a default calculated value in a variable?

Hello,

i have a table to fill in with variables, and 1 of the variables is the "number of working days left in the current month".

i use this to calcultate the remaining effort per day to reach our target set for that month.

when i use this i change this value every day and save this value.

But the other users open their qlikview in a mode that they can not save, to avoid that they would delete or change something in the qlikview file.

Now my question:

is it possible to have as default this number automatically calculated?

i don't want to put it in a hardcoded formula because we still want the possibility to change the value to calculate

the effect of adding working days . (working on holidyas, weekends,...)

i hope my question is explained clearly? 🙂

grtz,

chris

invultabel.PNG.png

1 Solution

Accepted Solutions
chriscools
Creator II
Creator II
Author

Hello,

i solved it with this expression in the variable:

NetWorkDaystoday(2), MonthEnd(Today()))

grtz,

Chris

View solution in original post

3 Replies
hic
Former Employee
Former Employee

One way could be to call the variable using

     $(=if(Len(variable)>0,variable,12))

Then it will use the variable value, if there is one. Otherwise use 12.

HIC

chriscools
Creator II
Creator II
Author

Thanx for the reply,

but for what i want there should allways be a variable value that is:

     => precalculated : the remaining working days till the end of this month (how do i calculate this?

     => manually changed when a different value then the precalculated one is needed.

grtz,

chris

chriscools
Creator II
Creator II
Author

Hello,

i solved it with this expression in the variable:

NetWorkDaystoday(2), MonthEnd(Today()))

grtz,

Chris