Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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.