Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
princyal
Contributor III
Contributor III

Show the selected field Max date Value

Hi,

 

I have Fund field and Assets Field .When i  select Date field  i want the  fund field max date and sum(Assets).

eg :

suppose i select fund 3 i want the max date of 30/11/19 sum(Assets)

i attached my sample data

please help any one as soon as possible

thank you

 

Labels (1)
17 Replies
Rodj
Luminary Alumni
Luminary Alumni

Unfortunately your sample data isn't attached as far as I can see, but from what I can tell of what you are looking to do I would calculate the max date for each fund in the load script as a separate table.

Load 

max(Fund Date) as fund_max_date,

Fund

Resident <your loaded table>

group by Fund;

 

I'm guessing a bit though, as it's not totally clear what you are after so if you could provide that example data it would be good.  Hope it helps anyway.

Rod

princyal
Contributor III
Contributor III
Author

i attche my sample data

Rodj
Luminary Alumni
Luminary Alumni

I'm not sure I'm properly understanding what you want to do, but I think maybe you want the max date and the sum(Assets) in the one table? It's hard to tell from your sample data as there's only one record per fund, is that truly representative of what your data is like? The date 30/11/19 you mention isn't the max date in your sample data and it isn't the date that correlates with Fund 3 (which is 30/09/19) so I'm confused as to what you want to do.

You might try two simple measures: sum(Assets) and Max(Report_Date). 

If you want the max date across all of the records you can use: Max(total Report_Date)

If you have more than one record per fund you can use the Aggr function.

princyal
Contributor III
Contributor III
Author

hi ,

thanks for helping me,

I briefly explained the requirement please check the attached file.

please replay as soon as possible bcz this requirement i need to  complete today only.

Thank You

sunny_talwar

Which object are you looking to see this in? KPI or some kind of chart?

princyal
Contributor III
Contributor III
Author

KPI

sunny_talwar

One more question... what happens if Fund 4 was there on 30/6/19 and 30/9/19 also? How would the output change then?

Check NoReport_DateFundAssets
12530/6/19Fund 18,000
12030/6/19Fund 42,000
12230/9/19Fund 210,000
13330/9/19Fund 37,000
13930/9/19Fund 44,000
25030/11/19Fund 410,000
54230/11/19Fund 515,000
26530/12/19Fund 45,000
33030/12/19Fund 55,000
princyal
Contributor III
Contributor III
Author

the current  requirement is what i mentioned that only and 

The max report date should be  <= today()

sunny_talwar

Not sure I follow?