Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
chriscammers
Partner - Specialist
Partner - Specialist

Complex Set Analysis causing null dimension row in chart

I am working with a company who is analyzing medical claims data.

They want to show a chart counting the days where a member had an Outpatient ER visit. The visit should not result in an inpatient stay. So to identify the er visit I have three conditions.

Condition 1. Place of Service code on a line of the claim = 23

OR

Condition 2. Revenue codes are in a list of codes for ER

OR

Condition 3. Procedure codes are in a list of codes for ER

AND

Condition 4. The claim does not have any inpatient lines specified by Place of Service 21

When the parenthesis and stuff are placed correctly it would be like this...

(condition 1 OR Condition 2 OR Condition 3) and Condition 4

So I am showing a list of members and a count of the number of days that the member presented at the ER.

I am using the following expression

the Claim_ID identifies a collection of service lines so the conditions shown below are valid if on any service line

count(

Count({
(
<Claim_ID = P({<POS_Code = {'23'}>})> +
<Claim_ID = P({<RevenueCode = {$(vERRevenueCodes)}>})> +
<Claim_ID = P({<CPT_HCPCS_Code = {$(vERProcedureCodes)}>})>
)
* <Claim_ID = E({<POS_Code = {'21'}>})>
} Distinct MemberDateString

So finally the problem, the expression seems to return the right counts but the table will have a row with a ridiculous count and all the dimensions will be null. Is there something about this technique that is causing this, I have tried many variations of this but the null row persists. One important note, if I don't do the inpatient exclusion(POD_CODE = 21) then the null row does not appear.

Thanks for your help

Chris

5 Replies
chriscammers
Partner - Specialist
Partner - Specialist
Author

Oh for Pete's sake!

That was a typo, there is only one aggregation...

Count({
(
<Claim_ID = P({<POS_Code = {'23'}>})> +
<Claim_ID = P({<RevenueCode = {$(vERRevenueCodes)}>})> +
<Claim_ID = P({<CPT_HCPCS_Code = {$(vERProcedureCodes)}>})>
)
* <Claim_ID = E({<POS_Code = {'21'}>})>
} Distinct MemberDateString
marcus_sommer

It's difficult to say what could be wrong with such complex expression. It could be a small syntax error maybe with the variables or a logical issue or a technical problem (according to the set analysis help it could be give unexpected results by using from operators if the fields are from different tables).

I would these expression split in single parts, validate the results and combine them step by step.

- Marcus

AlexOmetis
Partner Ambassador
Partner Ambassador

Did you ever get to the bottom of this by the way? I am facing the same issue...

Qlik Partner Ambassador 2024
swuehl
MVP
MVP

What if you do it like

Count({

<

Claim_ID =

P({<POS_Code = {'23'}>}) *

P({<RevenueCode = {$(vERRevenueCodes)}>}) *
P({<CPT_HCPCS_Code = {$(vERProcedureCodes)}>})

*  E({<POS_Code = {'21'}>})

>

} Distinct MemberDateString)

It's not easy to tell why you get a certain result with a set expression without knowing your data model.

Besides this, have you tried Option 'Supress When Value is NULL' on Dimension tab for your dimensions?

edit:

Just noticed that I am answering to an 2 years old post.