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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
rammuthiah
Creator III
Creator III

Show negative counts in KPI

I have today's and yesterdays data. If I subtract today's sales with yesterdays data (i.e : for ID 1: 200-300 -> -100, So I need to show the negative count of ID). Showing result perfectly for each row. I need the negative count in KPI.

5 Replies
beck_bakytbek
Master
Master

Hi Ram,

look at this:Fabs ‒ QlikView

and this:

https://www.youtube.com/watch?v=K7nO70behkg

i hope that helps

Beck

rammuthiah
Creator III
Creator III
Author

I need the count of ID which shows the negative value. In this case no. of count is 1, since the ID : 1 has negative value.

agigliotti
MVP
MVP

please attach a printscreen and the expected result.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
pathiqvd
Creator III
Creator III

Hi ram,

     I think do like this, In script level write like this,

LOAD ID,

          Sal1,

          Sal 2,

          Sal1-Sal2 as Sal 

     from tablename;

after write condition in KPI:- count(if(Sal<=0,ID))  you will get answer.

Regards,

rammuthiah
Creator III
Creator III
Author

Now, it's working