Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

How to pass dynamic parameter to the JSON as a data source

Hi,

 

I'm accessing the REST API URL as a direct query data source through the CData Power BI Connector for REST but the current URL has a hard coded value but how could I pass parameter dynamically in the power bi.

 

I have created 2 columns in the schema (JSON) which can be used as a parameter- pease see the below

<input name="effectiveDate" required="true"/>
<input name="prodId" required="true"/>

 

and change the URL to http://hotsname/sources/DimSales?rs:effectiveDate=[_input.effectiveDate]&rs:prodId=[_input.prodId]&rs:pageSize=10000&rs:pageNumber=1" 

 

And also created Parameters in the Power BI with the same names (effectiveDate, ProdId) but got the below error.

 

Any suggestion would be much appriciated,

 

Thanks

3 Replies