Forum Discussion

ffontana's avatar
ffontana
Frequent Visitor
5 years ago

Run report with dynamically filter on sysdate

Hi,

I need to run one report everyday and i need that the day is changed automatically.

I have used a service to access on my database (SAP4/Hana), and I used an URL on ODATA .

 

Source = OData.Feed( xxxxxx

 filter eq '1100' and IdateStart eq datetime'" & DateTimeZone.ToText(Date.AddDays(DateTimeZone.LocalNow(),-1) , "yyyy-MM-dd") & "T00:00:00' and IdateEnd eq datetime'" & DateTimeZone.ToText(DateTimeZone.LocalNow() , "yyyy-MM-dd") & "T23:59:59')", null, [Implementation="2.0"]),
Rename Columns" = Table.RenameColumns(Origine,{{"YieldStnd", "PzBuoniTarget"}, {"Yield", "PzBuoni"}, {"StrNSf", "ColpiPressa"}, {"StrPMin", "StrokeMin"}, {"StrPMinStnd", "StrokeTarget"}, {"MultiShape", "Figure"}, {"StrNYieldConf", "Colpi??"}, {"StrNYieldSub", "ColpiBuoniConf"}, {"StrNScrapSub", "ColpiScartoConf"}})

 

The problem is , if i try to scheduled a refresh of data, the Gateway return an error:

 

This Set of data includes a dynamic origin.

So the dynamic origin can't be updated  in the service of Power BI.

 

 

How could i resolved it?

 

Thank you all for the

 

4 Replies