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
I can repro the SyntaxError issue while using “-“ in query parameter as below.
Source = Json.Document(Web.Contents("http://dbbackups.cloudapp.net:8077/api/Project/GetQueryParameterInformation",[Query=[Project-Id=Text.From(5)]]))
I’ve reported it to Power BI team internally: CRI 27507907. I’ll post here if I get any update for it.
But I can publish the report to Service successfully while using “-“ in query parameter as below. I did not make any change to your shared PBIX file before publish.
Source = Json.Document(Web.Contents("http://dbbackups.cloudapp.net:8077/api/Project/GetQueryParameterInformation?Project-Id=5")
Best Regards,
Herbert