Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
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: 
Not applicable

Show Distinct Values in Chart

Hello,

I created this chart as below. The data model was built from two tables "Case" and "Report", linked with Case_ID as primary key. Case_ID and Report_ID are dimensions, the rest of data fields are expressions.

Since there are NULL values in the Case_ID, so I have the expression =If (not IsNull([Case Number]) AND not isnull(Report_ID),[Case Number]) for Case_ID.

There are duplicated values in "Report_ID" field. I wasn't sure why those duplicated values exsit as there is no duplicated value in the table "Report". I would like only show distinct values which not only the chart will look better and clean, as well as I will have an accurate values in "Submission Count".

Case_IDReport_IDSubmitted DateSubmission Count
2003-0509603035/9/20031
-603035/9/20031
2004-0615605066/15/20041
2005-0820805048/20/20051
-805048/20/20051

tried this in script (while loading data fields from Report table), but doesn't work.

LOAD
Distinct REG_REPORT_ID ,

REG_REPORT_ID as Report_ID.


I am not sure if try =count({$<[Submission Count] =  {'1'}>}  >}   distinct Report_ID) would work for this case. Becuase I also want to eliminate those duplicated rows.

What will be your suggestion to help me solve this issue?

Thanks for your help in advance,

Becky

10 Replies
Not applicable
Author

Oh, I see. That was the problem I had. And I am not sure why this happened. Because the same Report_ID should have same Case_ID. Then it shouldn't have duplicated values...