Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to compare two similar data sets using a chart function ?

Hi all!

I have two data sets 'X' and 'Y' which are of similar data type having same header fields.

Eg; Data set 'X' is old data and 'Y' is the current refreshed data

How can I bring up these two data sets in a same bar graph next to each other as shown in the below snap?

Shall I store the data in two separate files or shall I just append these two data sets in single file ?

6 Replies
sunny_talwar

I think you should be able to append the two data sources, but may be add a flag to differentiate between old and new.... and then you can use this flag as one of the dimensions....

Anonymous
Not applicable
Author

Can you plz elaborate more about the flag ? How to add it ?

sunny_talwar

I am not sure what is there to elaborate... but I can show you via a sample script... may be that will help clarify

Data:

LOAD blahblah...,

     'OldData' as DataFlag

FROM OldData;

Concatenate (Data)

LOAD blahblah,

     'NewData' as DataFlag

FROM NewData;

Now use DataFlag as your dimension

Anonymous
Not applicable
Author

For the above code, data should be in different files/sheet right ?

It should not be appended.

PrashantSangle

Can you post some sample data???

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
sunny_talwar

Not sure I understand