Skip to main content
Solved

Year to date for last year.

  • January 9, 2026
  • 2 replies
  • 33 views

Forum|alt.badge.img

So, I just build this GI. I want to show year to date for this year and last year.

The formula for this year is working. The formula I have for this year is not working. Can I please get help if anyone has done this.

This is my result now.

 

Best answer by lauraj46

Hi ​@SandyA ,

You could try this formula:  

=sum(iif(year([ARTran.TranDate])=year(Today())-1 and [ARTran.TranDate]<=DateAdd(Today(),'y',-1), [ARTran.TranAmt],0))

Hope this helps!

Laura

2 replies

lauraj46
Captain II
Forum|alt.badge.img+9
  • Captain II
  • Answer
  • January 9, 2026

Hi ​@SandyA ,

You could try this formula:  

=sum(iif(year([ARTran.TranDate])=year(Today())-1 and [ARTran.TranDate]<=DateAdd(Today(),'y',-1), [ARTran.TranAmt],0))

Hope this helps!

Laura


Forum|alt.badge.img
  • Author
  • Freshman II
  • January 9, 2026

@lauraj46 thanks a lot, its working