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: 
NickHoff
Specialist
Specialist

set analysis exclude variable

Hello,

I have the following set:

COUNT({1<FinancialClassCode ={"1"}, DRG = $::DRG, Facility =  $::Facility, CalendarQuarterYear = $:: CalendarQuarterYear, CalendarMonth = $:: CalendarMonth, JointSurgeonName -= {'$(vExcludeSurgeon)'}>}DISTINCT PatAcctNum)

I'm looking to ignore all selections except the following above.  I added the -= {'$(vExcludeSurgeon)'} which is supposed include all Surgeons except the excluded surgeon defined by GetFieldSelections(JointSurgeonName).

However, the set isn't working correctly and it's still counting the excluded surgeon..

1 Solution

Accepted Solutions
sunny_talwar

Can you try this:

Count({1<FinancialClassCode ={"1"}, DRG = $::DRG, Facility =  $::Facility, CalendarQuarterYear = $:: CalendarQuarterYear, CalendarMonth = $:: CalendarMonth, JointSurgeonName = e(JointSurgeonName)>}DISTINCT PatAcctNum)

View solution in original post

3 Replies
sunny_talwar

Can you try this:

Count({1<FinancialClassCode ={"1"}, DRG = $::DRG, Facility =  $::Facility, CalendarQuarterYear = $:: CalendarQuarterYear, CalendarMonth = $:: CalendarMonth, JointSurgeonName = e(JointSurgeonName)>}DISTINCT PatAcctNum)

NickHoff
Specialist
Specialist
Author

thanks Sunny

sunny_talwar

No problem at all... I am glad I was able to offer help