Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Run Rate in a chart

Hi,

I need to achieve the following goal:

In the Days Factor column (see the bellow table), the calculation is [num of days in month] / [current day]

so, the [num of days in month]  for November is 31 days, and the [current day] is changing according to the day in the table record.

For example, on 2012-10-27 the calculation will be 31 / 27 = 1.15

First, I dont know how to calculate this column. How can i determine which is the [current day] in specific record?

The Accumulating Revenue is actually accumulating the Revenue up to date, so, for example, on 2012-10-29 the revenue is the sum of 2012-10-27, 2012-10-28 and 2012-10-29

Second, How can i calculating this column? I can use the Accumulating checkbox for this column, but we must remember that i still need to use this value for the  RunRate Revenue calculation.

The RunRate Revenue is the multiply of [Days Factor] * [Accumalting Revenue].

DateDays FactorAccumalting RevenueRunRate Revenue
2012-10-271.15$100$115
2012-10-281.11$150$166
2012-10-291.07$170$182
2012-10-301.03$200$207
2012-10-311.00$210$210

How can I perform this calculation ?

Thanks,

Guy

1 Solution

Accepted Solutions
christophebrault
Specialist
Specialist

hi,

for Days Factor, you can do :

2-(Day(Date)/day(MonthEnd(Date)))

to calculate accumulation in a straight table you can write :

RangeSum(Above(sum( [Accumulating Revenue]),0,rowno()))

I'm not testing at the moment but this should work.

Finally, you can reuse this 2 expression in the third column

Inscrivez vous à ma Newletter Qlik
DoNotMissQlik- Connect with me on Linkedin

View solution in original post

5 Replies
Anonymous
Not applicable
Author

i 'm sorry that i couldn't get your requiremnt

you said --> runrate revenue = dayfactor * runrate revenue

if  runrate revenue = dayfactor * accumulating revenue

then u can use  this expression ---> coulumn(1)* column(2)

Not applicable
Author

Hi,

I updated my question since it was not clear at first. Yes the RunRate Revenue is the multiply of [Days Factor] * [Accumulating Revenue], but still i don't know how to calculate [Days Factor] , because i can't determine the row day inside my table, and also i don't know how to accumulate the revenue. after i know how to do it, i will be able to calculate the  RunRate Revenue.

Thanks,

Guy

christophebrault
Specialist
Specialist

hi,

for Days Factor, you can do :

2-(Day(Date)/day(MonthEnd(Date)))

to calculate accumulation in a straight table you can write :

RangeSum(Above(sum( [Accumulating Revenue]),0,rowno()))

I'm not testing at the moment but this should work.

Finally, you can reuse this 2 expression in the third column

Inscrivez vous à ma Newletter Qlik
DoNotMissQlik- Connect with me on Linkedin
Not applicable
Author

Hi Christopher,

Yes, it works fine!

Thank you very much,

Guy

christophebrault
Specialist
Specialist

Good news !

Bye

Inscrivez vous à ma Newletter Qlik
DoNotMissQlik- Connect with me on Linkedin