Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
amit_saini
Master III
Master III

Line Char Help with Start and End Date

Hi Folks,

I'm having below set of data:

Main_OrderStartEndCost
715012015-02-112017-12-158809.81
715022015-02-262017-12-0116304.07
715032017-12-042017-12-0420167.84
716012016-02-102017-12-019147.59
716032016-11-182018-05-1416178.57

My requirement is to create chart like below from this data:

Line.PNG

Logic : What ever is start Date like "2015-02-11" , "2015-02-26" , we need to consider this as Month number 1 and based on corresponding End Date - Month number ,need to show line trend .


So in first case for 71501 ,between 2015-02-26 and  2017-12-15 = We need to create line trend from Month 1 (Feb 2015) upto Month 35 (Dec 2017).


Like wise trend for all Main orders.


Please help , no idea how to do this.


Thanks in advance!


Regards,

AS

16 Replies
amit_saini
Master III
Master III
Author

One Min Sir

amit_saini
Master III
Master III
Author

PFA

amit_saini
Master III
Master III
Author

This one too.

sunny_talwar

This table that you are adding the AutoNumber to, doesn't have any Month_Year information....Do you have a table where you have Plant and MonthYear in a single table?

amit_saini
Master III
Master III
Author

Sorry , no.

Month , Year and Cost is coming from my fact table. For cost analysis via Plants , I have used another table carrying Plant info . I'm doing Left Join by Key called Main_Orders on Fact table/

Regards,

As

sunny_talwar

May be take a resident load of the Fact Table and create the MonthNum field in the resident load like this

AutoNumber(Year_Month, Plant)

I have made the updates in the attached qvw file for you to check and run the updates

amit_saini
Master III
Master III
Author

Thank u so much