I have a report that has two queries. Both queries has Incident ID’s. I dont want to display any Incident Id that is present in first query. So I used “Result from another query” and assigned Incident ID of first query. If I wont use custom sql query then the query runs without any issues but as soon as I change the sql to custom then it gives an error
A filter contains a wrong value. You cannot run this query. (Error: WIS 00007)
I suspect that this is because the @Dpvalue syntax is not actual SQL. Maybe you should look at a subquery to do this instead, or get the necessary universe changes made so you can just use this in the standard fashion.
I pick up the “@dpvalue” line (for me @dpvalue(‘A’, DP1.DO64)) from the original generated SQL then paste it to my handmade SQL to make sure y have the correct synthax and reference
Same result in Webi Rich Client : A filter contains a wrong value. You cannot run this query. (Error: WIS 00007)
It seems like it doesn’t “translate” the @dpvalue when it check if SQL have a correct synthax …
Did someone know how to verify that my @dpvalue params (‘A’, DP1.DO64) point correctly to the right object of my over data source ?
Thanks
------------- EDIT -------------
Seems like I find a solution to that …
In your main data source : define your subquery filter
Let the main data source in mode “generated SQL”
run the “sub data source” (query that gets the values used in the main data source @dpvalue)
apply modifications and close data source editor
refresh all data sources
Edit the main data source and copy the “@dpvalues” refs
paste your handmade SQL with the “@dpvalues” correct refs.
apply modifications and close data source editor
After doing that the “WIS 00007” doesn’t occur anymore
Seems like the datasource generator needs saved informations before we can use @dpvalues in handmade SQL
Hope this could helps (in spite of my awful english)