Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
I'm using direct query in several reports.
Usually , when I request dynamic query , I put parameters in the select statement (as in the below example) :
------------------------------------------------------------------------------------------------------------------------------
Origine = Oracle.Database("Server_Names", [HierarchicalNavigation=true, Query="select * from Table1 where Table1.Date(YYYYMMDD format) > = "&Number.ToText((Date.Year(DateTime.LocalNow()) *10000) + (Date.Month(DateTime.LocalNow()) *100) + 1)&" ", CreateNavigationProperties=false])
-------------------------------------------------------------------------------------------------------------------------------
With this variable I'm able to get all the rows that have a date >= beginning of the current month.
I face isssue when I publish my report because it seems that the variable is not updated when I move to the next Month.
Anybody have some idea regarding the possible solution?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.