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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out 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

Labels (1)
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?