I have a report with 2 dimensions, Quarter and Year that uses the UserResponse function:
= UserResponse("Query 1 with beach" ,"Which quarter?")
= UserResponse("Query 1 with beach" ,"Which year?")
The report also has a measure; Number of guests, but the formula I am using gives me a syntax error:
=<Number of guests(Query 1 with beach)> Where (<Year(Query 1 with beach)>=UserResponse("Query 1 with beach" ,"Which year?") and
<Quarter(Query 1 with beach)>=UserResponse("Query 1 with beach" ,"Which quarter?"))
Can someone please help me with the above problem.
=<Number of guests(Query 1 with beach)> Where (<Year(Query 1 with beach)>=UserResponse("Query 1 with beach" ,"Which year?") and <Quarter(Query 1 with beach)>=UserResponse("Query 1 with beach" ,"Which quarter?"))
The Year function yields a number, so its output must be compared with a number.
Thanks for the response guys. I have managed to resolve this issue by reading up on some other cases and created a temporary variable which I used as a flag. The issue wasn’t with Year and Month as they were both of character data types.It was with the where clause, which only accepts constants.