Forum Discussion
Incremental Refresh With Redshift Views In Power BI
- 1 year ago
Hello Koritala,
Thank you for your feedback. Below is a revised M-code for your Redshift table, using standard SQL with CAST for timestamp compatibility to support incremental refresh and query folding.let Source = Sql.Database("redshift-server", "database", [Query="SELECT * FROM FactSales WHERE LastUpdatedDate >= CAST('" & DateTime.ToText(RangeStart, "yyyy-mm-dd hh:nn:ss") & "' AS TIMESTAMP) AND LastUpdatedDate < CAST('" & DateTime.ToText(RangeEnd, "yyyy-mm-dd hh:nn:ss") & "' AS TIMESTAMP)"]) in SourceCheck RangeStart and RangeEnd are Date/Time parameters, and update "redshift-server", "database", FactSales, and LastUpdatedDate to your setup. Please share the error details, table structure, or specific Redshift functions you’d like to use, so I can refine the solution.
If the response answered your query, kindly “Accept as Solution” and Give “Kudos” to help others in the community benefit from it as well.
Thank you.
Incremental Refresh on Amazon Redshift Views in Power BI is not natively supported
Please mark this post as a solution if it helps you. Appreciate Kudos.
- Koritala1 year agoPost Patron
Hi Andrewsommer,
Thanks for your response and is there any alternate to achive the incremental refresh in my case.
Thanks,
Koritala