Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
dseelam
Creator II
Creator II

MAX Date

hello all,

I don't know how to put this in to question, please check the attachments first

results needed in QVW - I want to see only one A in the column test with max date as 1/2/2017

thanks,

D

1 Solution

Accepted Solutions
sunny_talwar

Then use a left join with a flag

test:

LOAD test,

[receipt date],

sales

FROM

[TEST*.xlsx]

(ooxml, embedded labels, table is Sheet1);

Left Join (test)

load test,

  Max([receipt date]) as [receipt date],

  1 as Flag

Resident test

Group By test;


Capture.PNG

Now use the flag to restrict seeing the latest test value

View solution in original post

3 Replies
sunny_talwar

Try this:

test:

LOAD test,

[receipt date],

sales

FROM

[TEST*.xlsx]

(ooxml, embedded labels, table is Sheet1);

Right Join (test)

load test,

  Max([receipt date]) as [receipt date]

Resident test

Group By test;

dseelam
Creator II
Creator II
Author

Sunny, thanks you for the reply

I just want to see max date on front end view, I don't want to avoid data coming in to data model bcoz I need history

sunny_talwar

Then use a left join with a flag

test:

LOAD test,

[receipt date],

sales

FROM

[TEST*.xlsx]

(ooxml, embedded labels, table is Sheet1);

Left Join (test)

load test,

  Max([receipt date]) as [receipt date],

  1 as Flag

Resident test

Group By test;


Capture.PNG

Now use the flag to restrict seeing the latest test value