This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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.