0

I have one To_date parameter in my report, and I have to pass max date vale into the To_Date parameter from two data sets, which contains date. How can I write expression to retrieve max date?

Tony Babarino
  • 3,355
  • 4
  • 32
  • 44
Swapnil Date
  • 9
  • 1
  • 7

1 Answers1

0

you can try to use below expression

  =IIF(MAX(Fields!PaymentDate.Value, "dsMain") > MAX(Fields!OrderCreatedDate.Value, "dsMain") 
, MAX(Fields!PaymentDate.Value, "dsMain") , MAX(Fields!OrderCreatedDate.Value, "dsMain"))

Thanks.

Kevin Shah
  • 1,589
  • 1
  • 13
  • 20