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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need a Qlikview Help in creating a Delta Data Set !!!

Hi All,

I am facing a problem while creating a Delta report in the Front End.

There are two data sets in the UI Table Boxes.

A. Without Any Filters (Table Box)

B. With All Filters Selected (Table Box)

I need to Create a Delta Report ( Data Set A - Data Set B)

The below are Data Sets.  

Data Set A
DATEEMP NOProduct
3/28/2015X12345A
4/29/2015B1234B
3/29/2016Y32567C
7/30/2016N3456A
3/30/2017B45389D
1/31/2017L3421E
3/31/2018A89012N

  

Date Set B
DATEEMP NOProduct
3/28/2015X12345A
3/29/2016Y32567C
3/30/2017B45389D
3/31/2018A89012N

  

Delta (A - B) --- Expected
DATEEMP NOProduct
4/29/2015B1234B
7/30/2016N3456A
1/31/2017L3421E

Note these are Direct Fields from Data Model i.e. No Aggregations like Sum() or Max()

Filters are

Quarters

Month

Year

Any Inputs would be Helpful...............

6 Replies
sunny_talwar

Try this:

Dataset1:

LOAD *,

  DATE&[EMP NO]&Product as Check1;

LOAD * Inline [

DATE, EMP NO, Product

3/28/2015, X12345, A

4/29/2015, B1234, B

3/29/2016, Y32567, C

7/30/2016, N3456, A

3/30/2017, B45389, D

1/31/2017, L3421, E

3/31/2018, A89012, N

];

Dataset2:

NoConcatenate

LOAD *,

  DATE&[EMP NO]&Product as Check2;

LOAD * Inline [

DATE, EMP NO, Product

3/28/2015, X12345, A

3/29/2016, Y32567, C

3/30/2017, B45389, D

3/31/2018, A89012, N

];

[Set1-Set2]:

NoConcatenate

LOAD *

Resident Dataset1

Where not Exists(Check2, Check1);

DROP Tables Dataset1, Dataset2;

Output:

Capture.PNG

sunny_talwar

Here is a front end solution where Script is just the two tables:

Dataset1:

LOAD * Inline [

DATE, EMP NO, Product

3/28/2015, X12345, A

4/29/2015, B1234, B

3/29/2016, Y32567, C

7/30/2016, N3456, A

3/30/2017, B45389, D

1/31/2017, L3421, E

3/31/2018, A89012, N

];

Dataset2:

LOAD * Inline [

DATE, EMP NO, Product

3/28/2015, X12345, A

3/29/2016, Y32567, C

3/30/2017, B45389, D

3/31/2018, A89012, N

];

Chart's Dimension: DATE, Product

Chart's Expression: =Only({<[EMP NO] = {"=Count([EMP NO]) = 1"}>}[EMP NO])

Output:

Capture.PNG

Not applicable
Author

Hi Sunny,

The Data set is the Front End Table Box which i mentioned, which is coming from Data model.

I cannot use the where exists clause, because this is the same table.

Data Set B:- With Filters in Front End

Data Set A:- Without any filters.

Expected A - B

sunny_talwar

‌May be you need this in the set analysis

{1-$}

Not applicable
Author

Can you give me in details please..?

Because, there is no aggregation.

This is no Chart, its a table Box, Even if i create a ST table Chart, Don't know to proceed.

Hope you got my point.

sunny_talwar

I don't think there is any way to do this in a table box, but you may be able to manipulate a straight table to behave like a table box. Would you be able to share a more representative data where I can make selections in Quarter, Month, Year Fields and may be help you achieve the result (via Straight table).

Best,

Sunny