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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Prabhu1204
Creator
Creator

Max Date in Set Analysis

Hello All,

I wanted to Calculate the Sum of R&D Cost only for the Maximum of PAB date.

I used the below set expression and it is not coming for all the values tough  the PAB date is there.

Could you please help

Expression:  Sum({$<[PAB date] = {"$(=Date(Max([PAB date]), 'MM/DD/YYYY'))"}>} [R&D Costs
(Gross)])

 

Prabhu1204_0-1603898687510.png

 

 

 

 

 

-Prabhu
1 Solution

Accepted Solutions
tm_burgers
Creator III
Creator III

sum(if(PAB_Date = aggr(nodistinct max(PAB_Date),Platform),[R&D Costs Gross]))

 

will give you the correct Values for your Top Table.

 

View solution in original post

2 Replies
Prabhu1204
Creator
Creator
Author

@sunny_talwar , I used the expression which you have posted in Different Blog. 

-Prabhu
tm_burgers
Creator III
Creator III

sum(if(PAB_Date = aggr(nodistinct max(PAB_Date),Platform),[R&D Costs Gross]))

 

will give you the correct Values for your Top Table.