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: 
sweens78
Creator
Creator

Normal Formula instead of set analysis

Hi Guys,

In the formula below , I just want to use a normal formula instead of Set analysis any ideas?

 

NUM((count({<MentalHealthHistory_ID={'2','3'}>} NEWKEYID))/(Count(NEWKEYID)-Count(PatientsNotAssessed_ID)),'##.##%')

 

Martin

2 Replies
trdandamudi
Master II
Master II

May be as below:

 

Num(If(MentalHealthHistory_ID='2' OR MentalHealthHistory_ID='3',Count(NEWKEYID)/Count(NEWKEYID) - Count(PatientsNotAssessed_ID),'##.##%')

 

 

sweens78
Creator
Creator
Author

thank you trdandamudi

Should there be a 'count' before the' if 'some where seem to be getting an error with a bracket?