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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
harleen_singh
Creator III
Creator III

I am using correct script??

I don't know where i am wrong in this script??

LOAD date,

     v,

     Max(date) as maximumdate

FROM

table

thanks

Lavi

15 Replies
Not applicable

Hi,

   Check with 'Group By"

-Jai

harleen_singh
Creator III
Creator III
Author

I have used this

LOAD date,

     v,  

     Max(date) as maxidate

   

FROM

table

Group by date;

it didn't worked

Not applicable

Hi,

the load statement should be like this:

LOAD date,

     v,

     Max(date) as maximumdate

FROM

table

Group by date, v;

Cheers.

harleen_singh
Creator III
Creator III
Author

blackrocks

               you are correct but max function is not retrieving maximum date its displaying all dates as usual.

thanks

Not applicable

Hi,

is it possible for you to attach sample data that you are loading.

Not applicable

Hi,

Check with the appln

-Jai

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

    Remove the date field if you want only max(date) and the value of v.

    something like this.

    load v,max(Date) as MaxDate

     from table

    group by v;

   

    If you just want to have max(date) which is not linked to the table. then try this.

   load max(Date) as MaxDate

   from table

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
harleen_singh
Creator III
Creator III
Author

Black Rocks

its simple

date         v

10/7/2011  1

11/7/2011  2

12/7/2011  3

harleen_singh
Creator III
Creator III
Author

I want to display maximum date as well as all dates as well as all values(v).

thanks