Hello I have a report that takes a date as a prompt and brings in the data for the month. I need to bring in the last year same month as prompted by user.
This is the code I have
=Sum() Where(=)
Invoice Part Dollars is a measure
Prompt Inv Date is a dimension which has values like 1/1/04 etc
Prior Year Month is a dimension which has values like 1/1/04 Etc.
When I have this formula I get a syntax error. Can someone please help
You are better off with a solution in the universe than at report level.
What RDBMS are you reporting against?
A CASE statement is the usual solution for Oracle or SQL Server databases, together with your prompt.