Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 1065

Help With Formula

$
0
0

Hi Guys,

 

I am having trouble trying to get the syntax correct for the formula below:-

 

{@Date} IN [CDate(Year({?DateFrom}) - If(Month({?DateFrom}) < 4 Then 1 else 0), 04, 01) TO {?DateTo}]

 

The {@Date} is a formula to convert a SQL date/time field to a Date format only.

 

The  {?DateFrom} and {?DateTo} are my date input prompts.

 

I am trying to extract a data set for the financial year upto the {?DateTo} prompt.

 

However I keep getting a message "Error in Formula". It says the ) is missing and then highlights the word Then, in the formula.

 

Any help would be appreciated, as been trying to figure this out for hours.

 

Regards

 

OAP


Viewing all articles
Browse latest Browse all 1065

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>