Forum Discussion
SSAS + Query folding + change type to datetime
- 4 years ago
The best solution probably is changing the date column in the cube itself to the appropriate data type.
I doubt it's possible to change the type without breaking query folding (though I'd be happy to be proven wrong).
- Anonymous4 years ago
Hi ivostammis ,
According to my test, not all changes in data types will break query folding.
For example:
- Datetime -> Text and Whole Number to Text , both were possible and would not break query-folding:
- But Text type -> DateTime or Date would break query-folding.
For more information, please refer to:
Changing data types that do not break query-folding in Power Query / Power BI
So as you and AlexisOlson mentioned, you need to contact the admin of the SSAS to change the type.
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Replying to my own reply...
The above ended up working very well. My issue was trying to refresh during a busy period and getting Gateway time out errors.
Have now tried this on a much larger data set (5M rows) and it works!
If you are going to attempt this,make sure you follow all the best practise guidance and use use Tabular editor to apply the refresh policy, then SSMS to load the partitions.
Also this youtube video from GIAC is full of great tips:
Avoid the full refresh with Incremental Refresh in Power BI (Premium) - YouTube
Hi raphael ,
Thanks for your explanation and taking the time to provide further info here! I am going to try this out this week, would be great if it works!
- raphael3 years agoMicrosoft Employee
Let me know how you go.
I have been trying to get this to work for the past 3 months!My dataset has been refreshing in under 2 minutes, 4 times a day for a few days now.