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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
TomBond77
Specialist
Specialist

two x-axis with year values

Hi experts

I have the following dataset:

TomBond77_1-1674829636514.png

 

The first two columns can be integrated well into a bar chart, the last 2 columns also in another bar chart.

Is there a solution to combine both year types into one chart, with two x-axis? Both year types are derived from different date types.

 

Thank you, Tom

 

 

Labels (6)
1 Solution

Accepted Solutions
ogster1974
Partner - Master II
Partner - Master II

Yes. Remodel your data.

Load the first 2 columns and add new status field = Open, rename Value Open to Value and Year Open to Year

then concentrate and load the next 2 columns and add new status = Closed, rename Value Closed to Value and Year Closed to Year

.

Should look like this.

ogster1974_1-1674839204882.png

 

Then you can produce this.

ogster1974_0-1674839173247.png

 

View solution in original post

5 Replies
ogster1974
Partner - Master II
Partner - Master II

Yes. Remodel your data.

Load the first 2 columns and add new status field = Open, rename Value Open to Value and Year Open to Year

then concentrate and load the next 2 columns and add new status = Closed, rename Value Closed to Value and Year Closed to Year

.

Should look like this.

ogster1974_1-1674839204882.png

 

Then you can produce this.

ogster1974_0-1674839173247.png

 

TomBond77
Specialist
Specialist
Author

Thank you! This works!

 A last question, the sorting of month-year is not working, any ideas? Thank you.

TomBond77_1-1675058997309.png

 

MayilVahanan
MVP
MVP

Hi

If Year/Month column is date format, then sort by Numerically, will work.

However, if its text format, then need to convert text format to date format by using date#(date()).

If you create filter object with Year/Month column, if its date format, it will display the value in right side.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
TomBond77
Specialist
Specialist
Author

Thank you!

TomBond77
Specialist
Specialist
Author

Sorry, I lost your solution 😞 It worked.

But I have done some changes and lost the solution. 

TomBond77_0-1675177974767.png