Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum maximum date

Hi,

My data is like that

5-Oct-10215
5-Oct-101,143
6-Oct-101,158
7-Oct-101,103
8-Oct-101,069
9-Oct-101,099
10-Oct-10974
11-Oct-101,123
12-Oct-101,069
12-Oct-10974
12-Oct-10951
12-Oct-10154
12-Oct-10456
12-Oct-10544
12-Oct-10265

I want to calculate just maximum date like

10/5/2010215
10/5/20101143
10/6/20101158
10/7/20101103
10/8/20101069
10/9/20101099
10/10/2010974
10/11/20101123
10/12/20104413

Is it possible in qlikview with out using loading multiple this is dummy data we have more that 14 million records and it is very hard to reload this.

7 Replies
vivientexier
Partner - Creator II
Partner - Creator II

LOAD

  Date,

  Max(Sales) as Sales

From ...

Group By Date

;

CELAMBARASAN
Partner - Champion
Partner - Champion

I dont get the word "loading multiple". you could probably use Resident load once it is loaded.

Could you please explain if i missed anything.

Not applicable
Author

Adhimulam,

I dont want to load this multiple of time.

due to no of records we want to load just one time rather then Load first and get maximum date and load again to get our desired result.

Not applicable
Author

Texier,

If you know the function of group by it will sum all dates.

And we want to sum on highest  value of dates not on any other date

Not applicable
Author

Try this

Load *,

Date,

sum(sales) as Sale

Resident Table A

Group by Date;

Not applicable
Author

This works:

 

Data:

LOAD Date,
Sale
FROM

(
biff, embedded labels, table is [Sheet1$]);

NoConcatenate

A:
Load Date,
Sum(Sale) as Sale Resident Data
Group by Date;

Drop Table Data;

DavidFoster1
Specialist
Specialist

I would suggest looking at:

IF(DATE=MAX(DATE),SUM(SALES)