Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

"Accrual" Formula

Hi,

I have a formula related to budget compsumption and I want to know, for any given day the information is accessed to, how much of the year budget "belongs", accumulated, to that given day.

The logical formula would be something like = YearBudget * (# of days already past in the year, as of today)/ (Total # of days of the current year)

I would like to define said variable in a way that I could add it to any given expression in order not to worry about updating its value.

I thought about defining it from the script editor but I don´t have the slightest idea how to do it.

I would really appreciate any help (or the straight formula ;-DD)

Thank you very much.

Regards.

1 Reply
Gysbert_Wassenaar

Something like: YearBudget * DayNumberOfYear(today())/ DayNumberOfYear(YearEnd(Today()))


talk is cheap, supply exceeds demand