I have a union query which uses a column which does not exist in the data, for example
Select 'Account1' as account, ID From Database1.Table1
union
Select 'Account2' as account, ID from Database2.Table1
union
Select 'Account3' as account, ID from Database3.Table1
I need to give an option for the person running the report to choose the parameter for account, either Select all, Account1, Account2, Account3
I'm having trouble making these choices go to the dataset with the value of column that does not exist in the data. How do I use Specify Values and have them match these values, or put this parameter into the query itself?