Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to count records with two numeric conditions

I need to count the records that have values between 0 and  7,  I`m using the included expression, but with this one it count also records in negative

count(DISTINCT {<dayss ={'<=7'}>}[CONTRATOi])

1 Solution

Accepted Solutions
sunny_talwar

Try this:

Count(DISTINCT {<dayss ={'>=0<=7'}>}[CONTRATOi])

View solution in original post

4 Replies
Not applicable
Author

I found the solutions..

count({ $<dayss={'>0<=7'}>} distinct CONTRATOi)

sunny_talwar

Try this:

Count(DISTINCT {<dayss ={'>=0<=7'}>}[CONTRATOi])

buzzy996
Master II
Master II

the other way,

count(DISTINCT {<dayss ={'0','1','2','3','4','5','6','7'}>}[CONTRATOi])

ramoncova06
Specialist III
Specialist III

you can close your thread