Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pivot Table/ Showing all the latest data

Hi All,

I have 2 tables as given below:

table A

     

CNTXT NMINDSUB CNTXT NMROWSDate Uploaded
AAAAAA122-Sep-15
AAABBB132-Sep-15
AAACCC144-Sep-15
BBBDDD155-Sep-15
BBBEEE166-Sep-15
BBBFFF167-Sep-15
AAACCC141-Sep-15

Table B

   

Day MonthYear
1Sep2015
2Sep2015
3Sep2015
4Sep2015
5Sep2015
6Sep2015
7Sep2015

Table B is derived from my Date Uploaded field of Table A and is linked to Table A.

There are 4 filters on my dashboard viz. CNTXT NM, Day, Month, Year.

I have to show a pivot table with the above fields.

But my requirement says that when I make a selection of Day, Month and Year I have to always show all the CNTXT NM. That is, if i make a selection of 2-sep-2015 then this is my desired output:

 

CNTXT NMINDSUB CNTXT NMROWSDate Uploaded
AAAAAA122-Sep-15
BBB132-Sep-15
CCC144-Sep-15
BBBDDD155-Sep-15
EEE166-Sep-15
FFF16

7-Sep-15

How will I achieve it? Any help is highly appreciable.

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

How is TableB linked to TableA?

Please clarify - you say you want to include all CNTXT NM, but how do you know which one (rows 3 and 7 in table A)?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

I have created a autonumhash(Date Uploaded) key on Table A and B.

Table B is date dimension.

If there are multiple CNTXT NMs then, the one with max(Date Uploaded) has to be displayed. In this case, row 3 (4-Sep-2015).

So, my output is CNTXT NM belonging to the date selected and all other CNTXT NMs (doesn't belong to date selected) with their corresponding max(Date Uploaded)