Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
WEBINAR June 25, 2025: Build on Apache Iceberg with Qlik Open Lakehouse - REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
l26b
Contributor III
Contributor III

Two different filters in two sheets in the same app

Hello,

 

I have two different data sets - one with current data and one with historical data but same column names. 

 

Table 1 Current Data 

 

ColumnName1 

ColumnName2

ColumnName3

 

Table2 Historical Data

ColumnName1 

ColumnName2

ColumnName3

I want to load both tables into UI app but in Sheet 1 I want to display data for current data and Sheet 2 I want to display historical data.

I want ColumnName1, ColumnName2 and ColumnName3 filters to be applied on both sheets(so I do not want to rename columns) but in Sheet one I would need a filter or logic applied to show only Current Data and on Sheet 2 to display historical data. 

 

How can I do this or apply the filter on Sheets/ State of the sheet?

 

Thank you 

Labels (1)
2 Solutions

Accepted Solutions
l26b
Contributor III
Contributor III
Author

how  I can create this Flag to be used in the metrics but not be seen as a Filter in the app? I do not want it to be displayed as a possible selection option

View solution in original post

4 Replies
Kushal_Chawda

@l26b  You can concatenate both the tables in load script with the flag. You can then utilize that Flag either as a filter or set analysis condition in measure to restrict current or historic data

Current:
LOAD *,
     'Cuurent' as Flag
FROM current_table;

concatenate
LOAD *,
     'Historic' as Flag
FROM Historic_table;

 

l26b
Contributor III
Contributor III
Author

how  I can create this Flag to be used in the metrics but not be seen as a Filter in the app? I do not want it to be displayed as a possible selection option

l26b
Contributor III
Contributor III
Author

Thank you so much for this solution, it is working!

 

In Order to avoid Synthetic Keys would it be better to use Concatenate or No Concatenate function?