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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to count expression with minus value?

Hi all,

I'm wondering how to count stores that i had with minus value, in this case my YTD Growth value, i use

Count(

{< vYTDamt = {'<0'} >} Distinct (Stores)

)

but i had that error in modifier expression, So anyone can help me? i attach an image for detail,

Thanks a lot,

Cheers,

31 Replies
Not applicable
Author

nop.. nothing happens, total still 82..

Not applicable
Author

Hi all,

Anyone in the forum can help me found at the problem? @_@

kamielrajaram
Creator III
Creator III

Hi,

Can you provide the document with no selections included.

Thanks

Kamiel

Not applicable
Author

just unselect "always one selected", here you go

thank you,

nikhilgarg
Specialist II
Specialist II

HEy , try this:

Count(if([YTD Growth]< 0 , Stores))

May be Distinct won't work out here !!

vinafidalgo
Partner - Creator
Partner - Creator

Hi, I'm selecting the Year 2014 and getting 82.

The expected result is 26?

Not applicable
Author

Nop.. its still wrong, the right value is 26.. but with your exprss is 163

Not applicable
Author

hi Vinicus,

yeap.. thats correct, did you get the expression??

vinafidalgo
Partner - Creator
Partner - Creator

Not yet but I'm trying to figure it out.

Not applicable
Author

oh boy.. its hard lol, i just cant find it the right expression @_@