Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
bobbydave
Creator III
Creator III

Syntax error

=sum(

        if(   

            aggr(sum({<[Control Description]={"Policy New Business", "Policy Cancellations"},

                       [Fiscal Year Month] = date(addmonths(today(), -1), 'YYYY-MM') >}

                               [Record Count]),

                       Country)=0,

                       1,0)) > 0

Can anyone see what is wrong with this code above? I want to say [Fiscal Year Month] = last month (2016-10)

1 Solution

Accepted Solutions
Anil_Babu_Samineni

You may forget $

=sum(

        if( 

            aggr(sum({<[Control Description]={'Policy New Business', 'Policy Cancellations'},

                       [Fiscal Year Month] = {"$(=date(addmonths(today(), -1), 'YYYY-MM'))"}>}[Record Count]),Country)=0,1,0)) > 0

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

View solution in original post

2 Replies
settu_periasamy
Master III
Master III

May be try this

=sum(

        if(  

            aggr(sum({<[Control Description]={'Policy New Business', 'Policy Cancellations'},

                       [Fiscal Year Month] = {"=date(addmonths(today(), -1), 'YYYY-MM')"} >}[Record Count]),Country)=0,1,0)) > 0

Anil_Babu_Samineni

You may forget $

=sum(

        if( 

            aggr(sum({<[Control Description]={'Policy New Business', 'Policy Cancellations'},

                       [Fiscal Year Month] = {"$(=date(addmonths(today(), -1), 'YYYY-MM'))"}>}[Record Count]),Country)=0,1,0)) > 0

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