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: 
Not applicable

Max of date

Lease IDSubIDSubspace Expiration DateExpIDAmountExpense TypeAmount* Frequencypay_frequency
2459.62 29515.44
4465105/9/201633381016.37Base Rent Post Free Rent12196.44Monthly
4466695/9/201748251016.37Base Rent Post Free Rent12196.44Monthly
4465105/9/20163340213.44Occupancy Tax / Sales Tax2561.28Monthly
4466695/9/20174827213.44Occupancy Tax / Sales Tax2561.28Monthly

       

=Sum(Aggr((Max([Amount of Expense]) * Pick(Match(pay_frequency, 'Monthly', 'Quarterly', 'Annually', 'Semi Annually','One Time'), 12, 4, 1, 2,1)),SubID,[Expense Type],ExpID))

For the above expression is working now iI have to add the if statement to pick only the max of date.So ex : it should pick the date 5/9/2017.

How can I add that If statement to the above expression.

Thank you very much.

12 Replies
Not applicable
Author

Expense Type and also I want to use this script in the Text object so aggr Dimension will not work right ?

Not applicable
Author

Sum(Aggr(Max([Amount]) * Pick(Match(pay_frequency, 'Monthly', 'Quarterly', 'Annually', 'Semi Annually','One Time'), 12, 4, 1, 2,1), [Subspace ID],[Expense Type],[Expense ID]))

sunny_talwar

Try this Expression (in both your chart and text box object:

=Sum({<[Expense ID] = {"=Max(TOTAL <[Subspace ID]> [Subspace Expiration Date]) = [Subspace Expiration Date]"}>} Aggr(

  Max({<[Expense ID] = {"=Max(TOTAL <[Subspace ID]> [Subspace Expiration Date]) = [Subspace Expiration Date]"}>}[Amount]) * Pick(Match(pay_frequency, 'Monthly', 'Quarterly', 'Annually', 'Semi Annually','One Time'), 12, 4, 1, 2,1),

  [Subspace ID],[Expense Type],[Expense ID]))