Forum Discussion
Paginated Reports "All" parameter
- 7 years ago
Blast. It was a picky little syntax error.
EVALUATE ( ...
The command shown above is no good. Report Builder does not like that white space between the EVALUATE keyword and the open pren. The following variation worked fine.
EVALUATE( ...
Thanks for taking the time to look into the problem.
My entire query is a dynamic expression that generates a valid DAX statement.
During the evaluation of the query text, I check the parameters and build the specific query language to send to the source system.
="EVALUATE(FILTER(... " + iif( Parameters!Plant.Value <> "ALL", "&& 'PLANT PR1'[Plant Number] = """ & Parameters!Plant.Value & """", "") + " ...
so, if the parameter is not set to "all," this line in the query becomes a piece of the filter conditions "&& 'PLANT PR1'[Plant Number] = "99999999". But if the plant number IS set to "all" then this whole bit just gets omitted from the DAX query and no filter on Plant is ever applied.
Hi RBunting,
Thank you for your reply!
Sorry for not replying earlier - I changed the filtering of this dimension within the DAX (not using the RSCustomDaxFilter formula) and it worked as expected.
Best,
- Anonymous6 years agoNot applicable
Can you please share me the format of the filter in DAX? I tried but getting error.
Thanks
- pdacheva6 years ago
Advocate II
Hi Anonymous ,
Make sure you add the filter at the end of the SUMMARIZE or SUMMARIZECOLUMNS. If you share the error message maybe the community could help better. See below how I am filtering my DAX:
- Anonymous6 years agoNot applicable
Hi pdacheva
Thanks. "All" is working. If i set All as default then working good and if i add available values from query then All is not picking up as a default. Any idea? Can you share your email?