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: 
apthansh
Creator
Creator

Set analysis expression

I have the below expression  and it doesn't work.Any help is appreciated.

=sum({<[Expense Month-Year]={'$(>=MonthName(Today())& <= monthname(AddMonths(today() ,11))'},

             [Subspace Commence]={'$(< addmonths(today(),12,'MM/DD/YYYY'))'}>}Finalamount)

Thank you very much.

3 Replies
Chanty4u
MVP
MVP

try this


=sum({<[Expense Month-Year]={'>=$(=MonthName(Today())& <= monthname(AddMonths(today() ,11))'},

             [Subspace Commence]={'<$(= addmonths(today(),12,'MM/DD/YYYY'))'}>}Finalamount)

sunny_talwar

Incorrect syntax, try this:

=Sum({<[Expense Month-Year] = {"$(='>=' & MonthName(Today()) & '<=' & MonthName(AddMonths(Today(),11)))"}, [Subspace Commence] = {"$(='<' & Date(AddMonths(Today(), 12), 'MM/DD/YYYY'))"}>} Finalamount)

Not sure if this will work, but the syntax should be better with the above expression

Anil_Babu_Samineni

Try this?

=Sum({<[Expense Month-Year] = {"$(='>=' & MonthName(Today()) & '<=' & MonthName(AddMonths(Today(),11)))"}, [Subspace Commence] = {"$(='<' & Date(AddMonths(Today(), 12), 'MM/DD/YYYY'))"}>} Finalamount)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful