Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. 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.