Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

Direct Query (Oracle SQL) with input parameter behaviour

I realized a strange behaviour (both in PBI Desktop and Service) related  input paramaters  in my SQL statement.

Below the example :


DateToday = (DataYYYY *10000) + (Datamm *100) + Datadd,
DateStart = (DataYYYY *10000) + (Datamm *100) + 01,
DataEnd = (DataYYYY *10000) + (Datamm *100) + 31,
DataStartPrevYear = ((DataYYYY -1) *10000) + (Datamm *100) + 01,
DataEndPrevyea= ((DataYYYY -1) *10000) + (Datamm *100) + 31,
Origine = Oracle.Database ........ Query="select ((Item= "Number.ToText(DateStart)" and Item  = "Number.ToText(DateEnd)") .....


Sql get perfectly the period I calculate in the variable parameters but at the end of period (Month) the change of the period happens not in real time (both in pbi desktop and service, it happens if I refresh the data in the Editor).

Is there any buffer managed in the system ?

I'm not able to understand this strange behavoiur.

Someone has already addressed this issue ?


Advocate II
Advocate II

The issue/behaviour I'm referring is not the SQL Query that is performed in real time or when I push refresh button, is the parameter that I set before the SQL statement that are not refreshed /updated (see my example)

Community Support
Community Support

Hi @beppe_62 

The reason for this behavior is


when you interact with a visual, then the visual will update data, or you can also click on refresh button. Besides, here is an article showing how to deal with it,



Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors