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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
adiarnon
Creator III
Creator III

set analysis problem

hi,

i have this expression

(NOT working)

count({<Task_MS={'1'},Perf_CC=,Lead_CC={=GetFieldSelections(Perf_CC)}>}DISTINCT Task_ID)

how can i fix it?

adi

9 Replies
avinashelite

try like this:

count({<Task_MS={'1'},Perf_CC=,Lead_CC={"=GetFieldSelections(Perf_CC)"}>}DISTINCT Task_ID)

PrashantSangle

Hi,

Try this

count({<Task_MS={'1'},Perf_CC=,Lead_CC={"$(=GetFieldSelections(Perf_CC))"}>}DISTINCT Task_ID)

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 🙂
rubenmarin

Hi adi, you also can try this:

count({<Task_MS={'1'},Perf_CC=,Lead_CC={$(=Chr(39) & Concat(Distinct Perf_cc, Chr(39) & ',' & Chr(39)) & Chr(39))}>}DISTINCT Task_ID)

adiarnon
Creator III
Creator III
Author

working!!

pratap6699
Creator
Creator

count({<Task_MS={'1'},Perf_CC=,Lead_CC={"=$(=GetFieldSelections(Perf_CC))"}>}DISTINCT Task_ID)

adiarnon
Creator III
Creator III
Author

HI,

BUT WHEN IM NOT CHOOSING "Perf_CC"

ITS SHOW ME ALWAYS 0

I WANT IT TO BE LIKE

count({<Task_MS={'1'},Perf_CC=,Lead_CC="}>}DISTINCT Task_ID)

PrashantSangle

Hi,

Use if condition for it

like if(getSelectedCount(Perf_CC)>0,

count({<Task_MS={'1'},Perf_CC=,Lead_CC={"$(=GetFieldSelections(Perf_CC))"}>}DISTINCT Task_ID),

count({<Task_MS={'1'},Perf_CC=,Lead_CC=>}DISTINCT Task_ID)

)

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 🙂
adiarnon
Creator III
Creator III
Author

hi,

tnx!

but i have 7 fields that i nssd to do it for them,

so i need to do 7 IFS?

IS there any other option?

adiarnon
Creator III
Creator III
Author

and....

if the user filter 2 fields Perf_CC,Perf_ML

SO in wich if it will be?