Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
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

'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

'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

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
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')