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: 
bharatkishore
Creator III
Creator III

Calculating Discount

Hello All,

                   I have an discount fields of 6 types Such as LD1,LD2,LD3,LD4,LD5,LD6.I have done all of them sum to get the total discount.Now i want to get only individiual discount.

                   And also i want to get all of the fields discount.Can any one help me.

Regards,

R.Bharat Kishore

3 Replies
vijay_iitkgp
Partner - Specialist
Partner - Specialist

Hi Bharat,

If I understand your question correctly. you can use if condition to create different fields.

If(Discount Type='LD1',DiscountAmount) AS LD1 and so on...

Hope this will help

bharatkishore
Creator III
Creator III
Author

Hi Vijay,

                     Thanks a lot for the reply.But i already have six fields.I just want to get discount for each if them.Can you help me what expression i need to write.

vijay_iitkgp
Partner - Specialist
Partner - Specialist

then you can use Sales*LD1 as LD1Discount....