Skip to main content
Answer

Filtering by dates within an equation in Report Designer

  • September 10, 2024
  • 1 reply
  • 97 views

Forum|alt.badge.img

I’m trying to create a report designer that contains data for specific measurements from multiple different periods, (such as monthly, quarterly and annually.) Is there a way to filter for these time periods within a equation since the overall worksheet seems to be going off of one time period?

Best answer by lauraj46

Hi @kkraus ,

You can specify a formula for a field or report designer variable to include the data only if the date falls within the specified range, for example to include only data for the year 2024:

=iif(year([SOOrder.OrderDate])=2024, [SOOrder.OrderTotal], 0)

You can also use the sum function to get a total for the period.

Laura

1 reply

lauraj46
Captain II
Forum|alt.badge.img+8
  • Captain II
  • Answer
  • September 10, 2024

Hi @kkraus ,

You can specify a formula for a field or report designer variable to include the data only if the date falls within the specified range, for example to include only data for the year 2024:

=iif(year([SOOrder.OrderDate])=2024, [SOOrder.OrderTotal], 0)

You can also use the sum function to get a total for the period.

Laura