Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
vikas_nandanwar
Creator II
Creator II

Cumulative Calculation for Rotation Days

Hi,

I have following Data set -

       

MonthInvSalesCum InvMonth NoAvg Inv (=[Cum Inv]/[Month No])YTD SalesRotation Days
Jan10030100110030100
Feb12025220211055120
Mar10035320310790107
Apr11040430410813099
May15050580511618097
Jun15555735612323594
Jul16040895712827598
Aug170601065813333595
Sep170651235913740093
Oct1605513951014045592
Nov1555015501114150592
Dec1506017001214256590

My Calculation for Rotation Days is  -

(Month No * 30) / [(Avg Inv)/(YTD Sales)]

How to write expression for that?

Thanks,

Vikas

4 Replies
uacg0009
Partner - Specialist
Partner - Specialist

Hi Vikas,

Sorry I didn't understand what you want to calculate, because according to what you said :

Rotation Days = (Month No * 30) / ([Avg Inv] / [YTD Sales])

Then for your first line data, the Rotation Days should be :

1 * 30 / (100 / 30) = 9

But your result is 100.

Why?

Thanks.

Aiolos Zhao

vikas_nandanwar
Creator II
Creator II
Author

Sorry for the error the formula should be

Rotation Days = (Month No * 30) * ([Avg Inv] / [YTD Sales])

sunny_talwar

May be this

([Month No] * 30) * ((RangeSum(Above(Sum(Inv), 0, RowNo())) / [Month No])/RangeSum(Above(Sum(Sales), 0, RowNo())))

sunny_talwar

Check the attached

Capture.PNG