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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
vvira1316
Specialist II
Specialist II

Set analysis to get expected output

Hi,

I'm having challenges to get expected output.

I'm including data file and application for your reference.

Sample Scenario

   

IdProfileIdDIM_FLD1_IdDIM_FLD2_IdDIM_FLD3_IdDIM_FLD4_IdDATE
11027211017/7/2016
21027211114/30/2018
31027211177/18/2018

   

DIM_FLD3_IdBSN
0BSN1
1BSN2
2BSN3
4BSN4
5BSN5
6BSN6

   

DIM_FLD4_IdOSN
0OSN1
1OSN2
2OSN3
3OSN4
4OSN5
5OSN6
6OSN7
7OSN8

Below is Straight Table Chart in QS

   

Data DimData Field IDApplicationEmployeeCountryDepartmentData Max DateID
211027ALN21Employee3United StatesDEPT1997/18/20183
601072ALN60Employee3United StatesDEPT1994/30/20185
681081ALN68Employee4United StatesDEPT414/30/20187
951119ALN95Employee4United StatesDEPT414/30/20189

Requirement

1. Straight table contains all Max (Data Date) Records of each DIM_FLD1_Id.

2. Details in table to include BSN, OFFNM, OSN, etc.

    i.e.in above straight table for Data Dim 21 it should show BSN2, OSN8

3. 30 Day ( Today() - 30   )Aging Detail Table (same as above) and Count of records

    for each DIM_FLD1_Ids Max Date i.e. less than or equal to Today() - 30 but  has no record within last 30 days

Thanks & Regards,

Vijay

17 Replies
vvira1316
Specialist II
Specialist II
Author

Hi Sunny,

It is working the way expected. I've couple more questions and they are related to Geo Chart that I'm trying to put together. I can open another thread, if you would like me to do so. Please let me know.

The question is as follows

Question 1)

Is there a way to not display the country where count is 0. (Please refer to image for reference.)

Formula in the label is as follows

=CountryName & Chr(10) & Count(DISTINCT {<DIM_FLD1_Id = {"=Max([Data Date]) <= Today()"}>} DIM_FLD1_Id)

GeoQuestion.PNG

Question 2)

How do I get a count of remaining distinct DIM_FLD1_Id that are not part of 640 count.

BR,

Vijay

sunny_talwar

Hey Vijay -

I have no idea of how Geo Chart works buddy... I think it makes sense to open a new thread which will help you get better coverage.

2) you want total cound - 640? May be this

Count(DISTINCT DIM_FLD1_Id) - Count(DISTINCT {<[Data Date] = {"*"}>} DIM_FLD1_Id)

vishsaggi
Champion III
Champion III

May be you can use like below for Question one in your Label?

=IF(Count(DISTINCT {<DIM_FLD1_Id = {"=Max([Data Date]) <= Today()"}>} DIM_FLD1_Id) = 0, 0,

CountryName & Chr(10) & Count(DISTINCT {<DIM_FLD1_Id = {"=Max([Data Date]) <= Today()"}>} DIM_FLD1_Id))

vvira1316
Specialist II
Specialist II
Author

Thanks, I'll try or clarify with you in the new thread.

vvira1316
Specialist II
Specialist II
Author

Thanks. I'll open a new thread and close this one.

sunny_talwar

Sounds good

vvira1316
Specialist II
Specialist II
Author

Hi,

It did help. Thanks a lot.

BR,

Vijay

sunny_talwar

Hey Vijay, feel free to mark helpful responses for any response which helped your reach your final goal. If vishsaggi‌'s helped you, I would encourage you to mark his response as helpful as it might help others in the future when they have similar issues.