Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
maxime66
Creator
Creator

Get minimum date by year

Hi,

i would like to duplicate on each line of year the min (date) in an expression  (see example)

Thanxx

3 Replies
Not applicable

Maybe you want add something like the following to your load script?

[Data]:

LOAD date,

          year(date) as year

FROM [your\source];

[Tmp_Minimum]:

LOAD year,

          Date(Min(date), 'DD.MM.YYYY') as minimum

RESIDENT [Data]

GROUP BY year;

LEFT JOIN([Data])

LOAD year, minimum

RESIDENT [Tmp_Minimum];

DROP TABLE [Tmp_Minimum];

maxime66
Creator
Creator
Author

hi Dorothea,

thanks but i don't want to modify my script ...

can't we put a calculated dimension in aggr ? like :

aggr(min(date),year(date)) (doesn't work for me)

Not applicable

Hi,

try to use function

FirstSortedValue()