Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

put a condition in set analysis as variable

Hello got the following condition which I use in set analysis    

TPK={"=RANK(COUNT(RECORD_ID))<=$(vTopXTPK)"}

this condition I want to use it in several expressions on more than one chart

I want to put it in a variable and use this variable in set analysis

please advise on what would be the syntax if I put the above condition in variable for the following expression

COUNT(DISTINCT {<TPK={"=RANK(COUNT(RECORD_ID))<=$(vTopXTPK)"}, IS_WASTE={1}>} RECORD_ID) 

I can walk on water when it freezes
1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Create a variable as below

var1

RANK(COUNT(RECORD_ID))<=$(vTopXTPK)


Now use in expression as


COUNT(DISTINCT {<TPK={"=$(var1)"}, IS_WASTE={1}>} RECORD_ID)

View solution in original post

4 Replies
MK_QSL
MVP
MVP

Create a variable as below

var1

RANK(COUNT(RECORD_ID))<=$(vTopXTPK)


Now use in expression as


COUNT(DISTINCT {<TPK={"=$(var1)"}, IS_WASTE={1}>} RECORD_ID)

ali_hijazi
Partner - Master II
Partner - Master II
Author

can I put in var1 2 definitions based on another variable?

will it work?

i.e. if ($(var1)= 1, rank(count(record_id)) <=$(vTopXTPK),Rank(Count(distinct {< some_set_analysis_here>} Record_ID))

I can walk on water when it freezes
MK_QSL
MVP
MVP

Not sure... need to work on your data or apps.. .Try it...

ali_hijazi
Partner - Master II
Partner - Master II
Author

yes it works

thank you very much indeed

I can walk on water when it freezes