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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
adiarnon
Creator III
Creator III

Expression


hi,

I want to count the number of projects that

Sum(budget)>0

and

Sum(budget)<100

and

age>20

tnx adi

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,


Try like this

=Count({<Projects={" =Sum(budget)>0 and Sum(budget)<100"}, Age={'>20'}>} DISTINCT Projects)

Regards,

Jagan.

View solution in original post

9 Replies
PrashantSangle

Hi,

Try like this

count(if(Sum(budget)>0 and Sum(budget)<100 and age>20,Projects)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
tresesco
MVP
MVP

Front-end? May be like:

=Count(If(Aggr(Sum(budget), Dimension)>0 and

               Aggr(Sum(budget), Dimension)<100 and

               age>20,Dimension))

jagan
Partner - Champion III
Partner - Champion III

Hi Adi,

Try like this

Sum(Aggr(if(Sum(budget)>0 and Sum(budget)<100 and age>20, 1),Projects))


Hope this helps you.


Regards,

Jagan.

adiarnon
Creator III
Creator III
Author

hi tnx!!!

can i do that with a set analysis?

jagan
Partner - Champion III
Partner - Champion III

Hi,


Try like this

=Count({<Projects={" =Sum(budget)>0 and Sum(budget)<100"}, Age={'>20'}>} DISTINCT Projects)

Regards,

Jagan.

adiarnon
Creator III
Creator III
Author

hi,

tnx!

i will try this.

i didnt knew that i can use 'and' in set analysis...

adiarnon
Creator III
Creator III
Author

its not working   =(

any other soluitions?

tresesco
MVP
MVP

Could you create a sample qvw and share here?

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

The set analysis method will not work in a table or chart where the sum(budget) or age may differ from row to row, as the set expression is calculated once for the whole table, not once per row.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein