calculation with a user entered parameter in it
Posted: Wed Oct 21, 2009 4:11 pm
we have a calculation
CASE
WHEN ( DateName(m,[Transaction Date]) = (Period Ending([Transaction Date]))) THEN [Amount]
ELSE 0
END
(Period Ending([Transaction Date]) is a filter that the user will enter a value. We get an error, every way we try to enter the parameter. If we use
CASE
WHEN ( DateName(m,[Transaction Date]) = 'June')
THEN [Amount]
ELSE 0
END
the report runs. What is correct statement to include the user input?
CASE
WHEN ( DateName(m,[Transaction Date]) = (Period Ending([Transaction Date]))) THEN [Amount]
ELSE 0
END
(Period Ending([Transaction Date]) is a filter that the user will enter a value. We get an error, every way we try to enter the parameter. If we use
CASE
WHEN ( DateName(m,[Transaction Date]) = 'June')
THEN [Amount]
ELSE 0
END
the report runs. What is correct statement to include the user input?