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: 
Marissa23
Contributor
Contributor

set analysis help

Hello,

I have created an expression that returns correct results, but I'm having a hard time with set analysis.

I would like to add logic so that the expression ignores a specific filter called quality_sid. I have added the following set analysis but it returns 0 and that is wrong.

Could anyone help me out?

1-num(Count(${<quality_sid=, <metric={'Material Reversals'}>} distinct unique_finding_id)/Count(${<quality_sid=,<metric={'Denominator'}>} distinct unique_finding_id),'#,#%')

Thank you!

Marissa

Labels (1)
1 Reply
rwunderlich
MVP
MVP

Too many angle <  brackets. And the num should be on the outside. Should be:

num(
  1 - (
    Count(${<quality_sid=, metric={'Material Reversals'}>} distinct unique_finding_id)
    /Count(${<quality_sid=,metric={'Denominator'}>} distinct unique_finding_id)
  )
,'#,#%')

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com