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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Newbie - Dates and non dates on same x-Axis

Hi, Qlikview beginner question.

I have the following database table..

COST CENTREBCKLOGSCH1SCH2SCH3SCH4SCH5
A026123
B1002860
C518900
A2225340
C150606

The BCKLOG represents the total of backdated qtys


The SCH1 in reality represents today, SCH2 represents today+1 day (ie. tomorrow), SCH3 represent today+2 days (ie. the day after tomorrow), and so on ...


I need to create a chart where the X-Axis starts with Backlog and then the dates follow, and the Y-Axis is the sum of the specific date.  So if run today the X-Axis would be, BACKLOG, 3/7, 4/7, 5/7, etc..


The cost centre would be in a list box and when I choose a particular cost centre the chart would show the relevant data for that cost centre.


With the support of this forum I managed to get the date part sorted but cannot put the backlog infront of the today's date on the x-axis.

This is the script I have at the moment...

SQL SELECT
    ITEMCODE,
    BCKLOG,
    SCH1,
    SCH2,
    SCH3,
    SCH4,
    SCH5,
    SCH6,
    SCH7
FROM BULEAS1.PMFDATA.KBOARD;

Source:
CrossTable(SCH, Value) LOAD *;
LOAD *;
SQL SELECT
    ITEMCODE,
    BCKLOG,
    SCH1,
    SCH2,
    SCH3,
    SCH4,
    SCH5,
    SCH6,
    SCH7
FROM BULEAS1.PMFDATA.KBOARD;

T:

load
[ITEMCODE],
date(Today() + right(SCH, len(SCH)-3)-1) as Date,
Value
Resident
Source;

DROP Table Source;

Any help will be appreciated.

Thanks

1 Solution

Accepted Solutions
Greg_Williams
Former Employee
Former Employee

2 Replies
Greg_Williams
Former Employee
Former Employee

Will this work?

Not applicable
Author

Thanks it does work.

Still I cannot understand how you did it.