Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Narukkp
Helper V
Helper V

Unable to do the Incremental refresh with ODBC or denodo connector in Power BI

Hi Team,

My source is Denodo, Now i am trying to set a incremental refresh using denodo and ODBC connector but when iam  trying set the incremental refresh for my table in power bi , it is not taking the parameters values and it is loading all data instead of specified parameters data values. What i observe is my denodo table having data format like YYYY-MM-DD HH-MM-SS but  as per my understand our power query dateparameter will work if data is having MM/DD/YYYY format . 

Please let me know if any one having idea how to convert RangeStart and RangeEnd parameters to YYYY-MM_DD HH:MM:SS using M-query functions.  Below is the my sample code
let
Source = Denodo.Contents("AdvDATAMART_PROD", null),
Adv_Database = Source{[Name="AdworksDW",Kind="Database"]}[Data],
Adv_Schema = Adv_Database{[Name="AdwrorksDW",Kind="Schema"]}[Data],
#"Run Native Query" = Value.NativeQuery( Adv_Database ,"SELECT * from ""Fact_Customer_Survey""",null,[EnableFolding=true]),
#"Filtered Rows" = Table.SelectRows(#"Run Native Query", each [Response_Dt] >= RangeStart and [Response_Dt] < RangeEnd )

in
#"Filtered Rows"

1 ACCEPTED SOLUTION

Hi @lbendlin ,
If i am using Date.From it is not filtering based on RangeStart and RangeEnd filter. I got the solution i have used my query like below 
"SELECT * from ""Fact_Customer_Survey"" WHERE
""Response_Dt"" >= '" & DateTime.ToText(RangeStart, "yyyy-MM-dd hh:mm:ss") & "' and ""Response_Dt"" < '" & DateTime.ToText(RangeEnd, "yyyy-MM-dd hh:mm:ss") & "'"

It is working as expected now and it is allowing me to setup the incremental refresh. 

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

It's the other way round. Use 

 

each DateTime.From([Response_Dt]) >= RangeStart and DateTime.From([Response_Dt]) < RangeEnd

Hi @lbendlin ,
If i am using Date.From it is not filtering based on RangeStart and RangeEnd filter. I got the solution i have used my query like below 
"SELECT * from ""Fact_Customer_Survey"" WHERE
""Response_Dt"" >= '" & DateTime.ToText(RangeStart, "yyyy-MM-dd hh:mm:ss") & "' and ""Response_Dt"" < '" & DateTime.ToText(RangeEnd, "yyyy-MM-dd hh:mm:ss") & "'"

It is working as expected now and it is allowing me to setup the incremental refresh. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.