Forum Discussion
Adding a Parameter to a Dax Query from Performance Analyzer in Report Builder
Hi Jdokken ,
Please kindly refer to the document: Report parameters in Power BI Report Builder.
This topic describes the common uses for Power BI Report Builder report parameters, the properties you can set, and much more. Report parameters enable you to control report data, connect related reports together, and vary report presentation. You can use report parameters in paginated reports you create in Report Builder.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Jdokken5 years agoHelper III
It states that the Parameter is not Declared when I try adding the parameter into the Query Designer.
- Anonymous5 years agoNot applicable
Hi Jdokken ,
I found related posts and articles, you can refer to
Detect missing parameters in DAX queries
The query contains the XXXXXName parameter, which is not declared. SSRS2008/MDX query
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Jdokken5 years agoHelper III
Thanks, I tried adding the Parameter in the Parameters Toolbar button in the Query Designer window. Once I do that and then try to add it in the Query (which I'm not sure if I'm doing it correctly) gives me a message of "Query Preparation failed". I Tried using,
TREATAS({@YearMonth}, 'Period'[Year Month]) but that gave me the same message.