Forum Discussion
Parameters in Power BI service
- 1 year ago
Hi jakubkral ,
Yes, creating a parameter after it’s used in Power Query steps can corrupt the internal step dependency, and Power BI Service fails to bind it properly, even though Power BI Desktop handles it without visible issues.
1. Always Create Parameters First, before referencing them in any query.2. Make the parameter is basic type Text, Number, or True/False, Used directly in the data source connection.
3. Avoid referencing parameters in calculated columns or measures if they are not part of the actual data load.
4. In Advanced Editor, check unresolved parameter names.
5. When editing existing reports, Delete the parameter reference from the query and save. Recreate the parameter.
Re-add it to the query.6. If Power BI Service still throws errors, try to Delete the dataset from the workspace. And Re-publishing the updated PBIX file.
If my response has resolved your query, please mark it as the "Accepted Solution" to assist others. Additionally, a "Kudos" would be appreciated if you found my response helpful.
Thank you
Hi jakubkral ,
We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet.do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.
Thank you.
Hello,
I make it somehow working. I tried only thing a that was do the data source change over again, but this time I was carefull. First thing was to create parameters and this maybe was the problem, because it is possible, that I firstly used in the code the parameters and in the end I created them, but I do not know if this is real solution or is it just coincidence, that now this works, I did not have much time to test this.
So maybe another question here if somebody is experienced with this enough. It is possible that this could be the problem? When you first use paramater (that was not created before) and then you create them? It is possible when loading report to PowerBI Service that Power Query "remembers" the steps. It is just feeling, that when the report was going on-line it was this problem, but like I said....I am not sure about that.
- v-dineshya1 year ago
Community Support
Hi jakubkral ,
Yes, creating a parameter after it’s used in Power Query steps can corrupt the internal step dependency, and Power BI Service fails to bind it properly, even though Power BI Desktop handles it without visible issues.
1. Always Create Parameters First, before referencing them in any query.2. Make the parameter is basic type Text, Number, or True/False, Used directly in the data source connection.
3. Avoid referencing parameters in calculated columns or measures if they are not part of the actual data load.
4. In Advanced Editor, check unresolved parameter names.
5. When editing existing reports, Delete the parameter reference from the query and save. Recreate the parameter.
Re-add it to the query.6. If Power BI Service still throws errors, try to Delete the dataset from the workspace. And Re-publishing the updated PBIX file.
If my response has resolved your query, please mark it as the "Accepted Solution" to assist others. Additionally, a "Kudos" would be appreciated if you found my response helpful.
Thank you