mandm Posted June 14, 2011 Share Posted June 14, 2011 Hi All,I am trying to create a report which uses the table name as a lookup in another table to get the resultset needed for the reportmy sql query is something like this select count(*) as denominatorCnt , inspectionCount, (count(*)/inspectionCount) as thermpctfrom $P!{MyTable} t1, report3 t2where quarter(created_date) = $P{R3QTR} and year(created_date) = $P{R3YR} and trim(concat('_data', t2.id, '_', t2.table_name)) = $P{MyTable} so my where clause the from clause has same parameter, but if you noticed i use a ! in the from clause as per the guidelines...The issue with this is the where clause MyTable always tables the default parameter expression and never changes even when the from is changingso please let me know if i am doing something wrong or is there a different way to do this? Link to comment Share on other sites More sharing options...
despec Posted June 15, 2011 Share Posted June 15, 2011 Not sure if this is the problem, but try changing the WHERE clause parameter to $P!{MyTable} if you haven't done so already. David Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now