Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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.