最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - Tabular Editor 3: How do I revert from refresh policies with EffectiveDate to using current date? - Stack Overflow

programmeradmin2浏览0评论

For dev/testing purposes, I only have data available early January from a Power BI dataflow. Due to that, I applied the refresh policies with EffectiveDate as shown in this Tabular Editor Documentation.

var effectiveDate = new DateTime(2025, 1, 7);  // Todo: replace with your effective date
Selected.Table.ApplyRefreshPolicy(effectiveDate);

After executing this C# script, now I have partitions that cover up to effectiveDate. This is as expected. However, I'm wondering if this execution would continue to override the current date once I promote these changes from the Dev to Prod workspace. How would I revert back to creating partitions up to the current date?

For dev/testing purposes, I only have data available early January from a Power BI dataflow. Due to that, I applied the refresh policies with EffectiveDate as shown in this Tabular Editor Documentation.

var effectiveDate = new DateTime(2025, 1, 7);  // Todo: replace with your effective date
Selected.Table.ApplyRefreshPolicy(effectiveDate);

After executing this C# script, now I have partitions that cover up to effectiveDate. This is as expected. However, I'm wondering if this execution would continue to override the current date once I promote these changes from the Dev to Prod workspace. How would I revert back to creating partitions up to the current date?

Share Improve this question asked Feb 8 at 2:55 ChristineChristine 474 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Found the solution. We can just reset via this function overload ApplyRefreshPolicy()

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论