Hi all!
I am writing a report that is calculating deferred/accrued revenue to be accounted for each month. To determine how many days are allowed for deferral I have a column that tells me how many days are in each period. There are 12 buckets as there are 12 billing periods.
To look up to that information in my report I have a formula that says =IF([@[Billing Cycle ]]="LT",SUM(MONTH([@[Last Bill date]])+1),IF([@[Billing Cycle ]]="LD",SUM(MONTH([@[Last Bill date]]+1)),MONTH([@[Last Bill date]]))) which is all good UNLESSS the last bill date is December because if it is it is trying to make it 13 when I only have 12 periods a year.
I tried adding another if statement that says if(month@[Next Bill Date]=12,1,IF([@[Billing Cycle ]]="LT",SUM(MONTH([@[Last Bill date]])+1),IF([@[Billing Cycle ]]="LD",SUM(MONTH([@[Last Bill date]]+1)),MONTH([@[Last Bill date]])))
I must be putting it in the wrong spot as it is not working. All the embedded ifs trip me up every time! If someone could help that would be greatly appreciated!
I am writing a report that is calculating deferred/accrued revenue to be accounted for each month. To determine how many days are allowed for deferral I have a column that tells me how many days are in each period. There are 12 buckets as there are 12 billing periods.
To look up to that information in my report I have a formula that says =IF([@[Billing Cycle ]]="LT",SUM(MONTH([@[Last Bill date]])+1),IF([@[Billing Cycle ]]="LD",SUM(MONTH([@[Last Bill date]]+1)),MONTH([@[Last Bill date]]))) which is all good UNLESSS the last bill date is December because if it is it is trying to make it 13 when I only have 12 periods a year.
I tried adding another if statement that says if(month@[Next Bill Date]=12,1,IF([@[Billing Cycle ]]="LT",SUM(MONTH([@[Last Bill date]])+1),IF([@[Billing Cycle ]]="LD",SUM(MONTH([@[Last Bill date]]+1)),MONTH([@[Last Bill date]])))
I must be putting it in the wrong spot as it is not working. All the embedded ifs trip me up every time! If someone could help that would be greatly appreciated!
Last edited: