Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover the Trends Shaping AI in 2026: Register Here!
cancel
Showing results for 
Search instead for 
Did you mean: 
mohan2391
Creator III
Creator III

Profit&Loss

hi

i have 2 fields as Amount & name. I want to show the families which r in profit & which r in loss seperately. How to do it ? How can i show ?

If amount is in +ve it means profit & if -ve it means loss.

5 Replies
its_anandrjs
Champion III
Champion III

Hi,

Check the attached app.

Regards

Anand

its_anandrjs
Champion III
Champion III

Hi,

If you have any data so provide that so we have look out the solution otherwise if this your answer so please check.

Regards

Anand

Not applicable

Hi,

Try to put this in the script.

if(amount>0,Profit,Loss) as Category.

zkn_0247
Contributor II
Contributor II

In load script define condition if(amount <0,'loss','profit') as pnl_flag. now you can group your data on the basis of this flag.

mohan2391
Creator III
Creator III
Author

Thank You.......