dhpraveen
9 years agoNew Member
Status:
New
Power BI Desktop: "-" in query parameter doesn't work when published
We faced an issue with "-" in query parameter. It works fine until you publish the reports. e.g. [Query=[page-id=Text.From(pageid)]] throws an error.
v-haibl-msft
Microsoft Employee
9 years ago
So the issue here is that we cannot use “-” in query parameter, or it will show “Expression.SyntaxError: Invalid identifier.”.
Source = Json.Document(Web.Contents("http://dbbackups.cloudapp.net:8077/api/Project/GetQueryParameterInformation",[Query=[Project-Id=Text.From(5)]]))
If we do not use “-” in query parameter as below, it will not show SyntaxError.
Source = Json.Document(Web.Contents("http://dbbackups.cloudapp.net:8077/api/Project/GetQueryParameterInformation",[Query=[ProjectId=Text.From(5)]]))
Is it right?
Best Regards,
Herbert