Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How do I calculate Margin in Qlikview

Hi,

I have just started using Qlikview v9.0 and i'm trying to calculate Margin in a straight chart but can't get it to work, can someone help tell me what I'm doing wrong?

The Calculation is: Sum ((Amount)-Sum(Credit Amount)-sum(%_Qty*ItemsCost))/Sum(Amount)

Thanks

1 Solution

Accepted Solutions
Not applicable
Author

Your first sum must be inside

(Sum (Amount)-Sum(Credit Amount)-sum(%_Qty*ItemsCost))/Sum(Amount)

View solution in original post

2 Replies
Not applicable
Author

Your first sum must be inside

(Sum (Amount)-Sum(Credit Amount)-sum(%_Qty*ItemsCost))/Sum(Amount)

Not applicable
Author

and for a field with charactere space, tiy must put it into: [ ] like:

(Sum (Amount)-Sum([Credit Amount])-sum(%_Qty*ItemsCost))/Sum(Amount)