Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
New-Qlik
Creator II
Creator II

Creating line chart staring from fourth date column

Hello ,

I have to create a line chart in which my x axis should start from fourth record (date column)

I tired using dimension as (if(rowno() >4 , date)

but it is not working because data inserted into tables is in different sequence and we are displaing in different.

please find attached smaple data along with chart which needs to be build.

Kindly let me know if it makes any sense.

Thanks

9 Replies
narendiran
Partner - Creator
Partner - Creator

Hi Avneet,

Add Rowno() in load script

Like

Load *, RowNo( )  as Rowno from Table;

then use the same if(rowno() >4 , date)

sunny_talwar

Do you have a sample you can share with the expected output to help you better.

Best,

Sunny

New-Qlik
Creator II
Creator II
Author

Thanks .. But I cannot put rowno because example

Rowno   Date

1        2016030801(yyymmddhh)

2        2016030709

3         2016022604

4       2016022618

5      2016022610

6     2016022600

7     2016022601

8   2016022605

etc.. so if I want to start building graph it will start with 2016022600 but I want to start it with 4th record so it will be

2016022605( how if u sort it it will come as 2016022600,2016022601,2016022604,2016022605,2016022610,2016022600,2016022618.....)

so I want to sort date and pick up fourth record and give date interval as 4.

I hope I have explained it properly

New-Qlik
Creator II
Creator II
Author

Please find sample data n graph

PrashantSangle

attachment missing...

well logic could be in set analysis expression you can use

min(date,4) and max(date)

like sum({<date={">=$(=date(min(date,4)))"}>}sales)

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 🙂
New-Qlik
Creator II
Creator II
Author

Thanks for replying.

I am using line chart-->dimension is Date-->edit dimension-->=mim(Date,4)

its says expression ok but chart is displaying no data

Anonymous
Not applicable

please find the attached

New-Qlik
Creator II
Creator II
Author

Thanks Vinay really appreciate,

But I have personal edition so cant open your qvw. If you can post what needs to be done that will be big help.

New-Qlik
Creator II
Creator II
Author

I tried same

dim is = [Christian Full Date

expression =sum({<[Christian Full Date]={">=$(=[Christian Full Date](min([Christian Full Date],4)))"}>}Qty)

but its starting from 2016022600 only