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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

chart problem

Hi,

     everyone, I met a problem below, I don't know why the result is in the chart,

Could anyone explain it to me?

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

'Flag' is not the same field as 'flag'.

And null values will not be counted so you'll never see the value 'exception'

Perhaps this does what you want: if(count({<flag={'1'}>}sales) + sum(0)=0,'exception','normal')


talk is cheap, supply exceeds demand

View solution in original post

6 Replies
MK_QSL
MVP
MVP

if(count({<flag={'1'}>}sales)=0,'exception','normal')

awhitfield
Partner - Champion
Partner - Champion

What are you actually trying to achieve here?

Andy

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

'Flag' is not the same field as 'flag'.

And null values will not be counted so you'll never see the value 'exception'

Perhaps this does what you want: if(count({<flag={'1'}>}sales) + sum(0)=0,'exception','normal')


talk is cheap, supply exceeds demand
Anil_Babu_Samineni

Do you mean this?

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

Another way to do if without using if

Pick(RangeSum(flag, 1),'normal','exception')


Capture.PNG

sunny_talwar

I think I turned it around.... should have been this:

Pick(RangeSum(flag, 1),'exception','normal')