Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
tchovanec
Creator II
Creator II

Island Calendar in straight Table

I have an island calendar in my application. This calendar is used to drive many expression that I have. I am trying to create a straight table that will have the island calendar date as a dimension along with a few expressions. I cannot get it to work correctly. Below is what I get now. It is aggreagating everything and the counts are the same for each day.

Capture.PNG

The expected result would be 1 for each day. Below is the set analysis I am using for my expression.

COUNT

(DISTINCT
{<
LINE = {1}
,
ED_DISPOSITION_C = {101}
,
EVENT_TYPE = {50,65}
,
ED_DISPOSISTION_TYPE =
,
DT_PAT_ADMIT = P(ISLAND_CAL.Date)
>}
SOURCE_VISIT_NO
)

I appreciate any assistance. Thank you

1 Solution

Accepted Solutions
tchovanec
Creator II
Creator II
Author

I figured it out.

 

COUNT

(DISTINCT
{<
LINE = {1}
,
ED_DISPOSITION_C = {101}
,
EVENT_TYPE = {50,65}
,
ED_DISPOSISTION_TYPE =
>}
IF(DT_PAT_ADMIT = ISLAND_CAL.Date,SOURCE_VISIT_NO)
)

View solution in original post

1 Reply
tchovanec
Creator II
Creator II
Author

I figured it out.

 

COUNT

(DISTINCT
{<
LINE = {1}
,
ED_DISPOSITION_C = {101}
,
EVENT_TYPE = {50,65}
,
ED_DISPOSISTION_TYPE =
>}
IF(DT_PAT_ADMIT = ISLAND_CAL.Date,SOURCE_VISIT_NO)
)