Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need Help

@I need to find out how many server having windows OS are having average of usage above 45 .

  

ServerOSDateUsage
AWindows5/20/201640
BWindows5/20/201621
CUNIX5/20/201644
DWindows5/20/201668
AWindows5/21/201654
BWindows5/21/201623
CUNIX5/21/201611
DWindows5/21/201634
AWindows5/22/201678
BWindows5/22/201634
CUNIX5/22/201612
DWindows5/22/201645

When we create a chart with average of usage for server having windows OS we get the following chart

Server OS =Avg({$<OS={'Windows'}>} Usage)
44.111111
AWindows57.333333
BWindows26
DWindows49

Now here in the above chart server A and D are having average usage above 45 . Can we get the count of the Server in having above 45 usage in displayed in a Text. The desired output is 2 but not sure how can we display this in text box

Message was edited by: Binod Kuma

9 Replies
PrashantSangle

Hi,

try like

sum(if(aggr(YourAvgExpression,os,server)>45,1)

edited:

=Sum(aggr(if(Avg({<OS={'Windows'}>} Usage)>45,1),OS,Server))

This will work

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 🙂
Not applicable
Author

=if(aggr(Expression,os,server)>45,avg({<os={'Windows'}>]usage)

Anil_Babu_Samineni

Like this, Or tell me what you are expecting

Today.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sujeetsingh
Master III
Master III

Can you please give a sample or come in more words.

Kushal_Chawda

try below expression in text box

=Count({<Server={"=avg({<OS = {'Windows'}>}Usage)>45"}>} distinct Server)

kamal_sanguri
Specialist
Specialist

Hi,

take a look into attached file..

-Kamal

Not applicable
Author

Hi,

try this one

=Count({<Server={"=avg({<OS = {'Windows'}>}Usage)>45"}>}Distinct Server)

-Joyson G

Anonymous
Not applicable
Author

Hello kamal

Your expression is correct . Only >45 as underlined below should be used as per requirement

Only thing is count({<OS={'Windows'},Usage={'>45'}>}Server)

Dear Binod Kumar

If you can mark correct answer if your issue is resolved it would help other members.

Thanks & Regards

Chintan

kamal_sanguri
Specialist
Specialist

oops, I think, I didn't understand the problem at first place..

I did this in script..

Pls have a look.