Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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.