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: 
Not applicable

Help regarding a calculation logic

Hi Everybody,
I am having a problem regarding a calculation. Please go through the data and the explanations given below and let me know how I can go forward with the calculation logic. Below given is the data which is used for the same.
YearMonthProductSalesOrderRentalAmountCancelFlag
201004QlikView9.0SR1100,000
201004QlikView9.0SR2200,000
201004QlikView9.0SR3300,000
201004QlikView9.0SR4400,000
201005QlikView9.0SR1100,000
201005QlikView9.0SR2100,000A
201005QlikView9.0SR30C
201005QlikView9.0SR4400,000
201006QlikView9.0SR150,000A
201006QlikView9.0SR2100,000
201006QlikView9.0SR4400,000
201007QlikView9.0SR150,000
201007QlikView9.0SR2100,000
201007QlikView9.0SR40K
where in cancellation flag A,C and K means cancellation criterias for different orders. The Cancellation logic is done as given below.
The cancellation amount is calculated for all the products whose cancellation flag is set.
so for the product QlikView 9.0 in the yearmonth 201005 SalesOrder SR2 is cancelled. For this calculation is done like
200000 - 100000 = 100000 where 200000 is the previous year months rental and 100000 is the current yearmonths rental. Similarly, for product QlikView 9.0 in year month 201005 SalesOrder SR3, the cancellaton amount is 300000 - 0 = 300000.
that is Calculation Amount = previous Yearmonths rental amount for which cancellation flag exists in the next month- Current Yearmonths Rental amount for which Cancellation flag exists.
Please give me some pointers in how to calculate the cancellation amount if possible in the modelling level or in the reporting side.
Thanks to all the people in advance for extending you help.
Thanks and Regards
Robin


2 Replies
Not applicable
Author

Hi Robin, Please visit this link http://community.qlik.com/forums/t/27247.aspx. John have given some solution for the same problem which you are facing. Regards, Ravi

Not applicable
Author

Hi Robin, Please visit this link http://community.qlik.com/forums/t/27247.aspx. John have given some solution for the same problem which you are facing.

Regards,

Ravi