Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Margin %

Hi,

I am trying to get a margin percentage in a straight table.  I found another discussion that said to use sum(sales)/sum(cost).  I when I click apply, the whole row shows as -.   Any suggestions on what I might try instead?  Thanks.

2 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Kindly post the QVW file.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
MayilVahanan

Hi

Check whether sum(cost) gives null value or zero? If so, it display "-".

= sum(sales)/Alt(sum(cost),1)

please make sure, that field name are correct too.

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.