Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
samuel_brierley
Creator
Creator

count statement with 2 conditions

I have the following formula and for the life of me cant work out whats wrong with it. it produces a number the number is not correct.

pretty obvious but for clairty its supposed to count how many cars that have a length between 10 and 6 meters. Ive tried both ways i.e 10m first and then 6 vice versa.

thanks for any help

count({$<Length = {'<10'},Length = {'>6'} >} Length)

1 Solution

Accepted Solutions
amit_saini
Master III
Master III

Hi Samuel,

Please try this:

=Count({<Length = {">6<10"}>}Cars)

Thanks,

AS

View solution in original post

7 Replies
Not applicable

count({$<Length={">6<10"}>}'ID')

Not applicable

Hi,

Try like this

  =Count(Distinct {<Length={">=6<10"}>}Length)

Regards

Kumar

VishalWaghole
Specialist II
Specialist II

Hello samuel,

Please try this, hope this will work for you.

=Count({<Length = {'<6','>8'}>}Length)

- Regards,

Vishal Waghole.

er_mohit
Master II
Master II

Try this

=Count({<Length = {">6<10"}>}Car)

or

=Count({< Car={"=Count({<Length = {">6<10"}>}Car)"}>}Car)

amit_saini
Master III
Master III

Hi Samuel,

Please try this:

=Count({<Length = {">6<10"}>}Cars)

Thanks,

AS

Not applicable

hi

try this

count({<Length={">=6<=10"}>}Cars)

samuel_brierley
Creator
Creator
Author

thanks for the help