Forum Discussion
power bi model performance issues with auto date/time intelligence
I have created a power bi model which contains 30 DateTime columns in my dataset while debugging the performance issues I saw power bi has created 30 Datetables which are hidden.
So if my Fact table contains 1 million records and one of the attribute "created date" contains 30 Lakh unique DateTime values, then power bi will create a hidden table with 30 Lakh records? Is this a correct behavior? Or making one calendar table is the best option.
Please suggest. Try opening in DAX studio the table starts with 'LocalDateTable_fe80df66-e32b-455c-9426-804d866a2141'
- Anonymous6 years ago
Hi Anonymous ,
See the link why you should disable Auto Date Time
https://www.youtube.com/watch?v=d4yAzhIQqNk
https://www.youtube.com/watch?v=xu3uDEHtCrg
Create a Date Time Table for better performance of your models
Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/Also disable your auto Date time from Options
Regards,
Harsh Nathani
2 Replies
- AnonymousNot applicable
Hi Anonymous ,
See the link why you should disable Auto Date Time
https://www.youtube.com/watch?v=d4yAzhIQqNk
https://www.youtube.com/watch?v=xu3uDEHtCrg
Create a Date Time Table for better performance of your models
Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/Also disable your auto Date time from Options
Regards,
Harsh Nathani
- amitchandak
Super User
Anonymous , split date time. And join date with date table and time with time table.
Date = [date time]. date
time = [date time].time
There was a video from guyinacube to use a numeric date key. Missing the link as of now.
Edited - Got it
https://www.youtube.com/watch?v=vrgeDfO8RXQ
Time
https://kohera.be/blog/power-bi/how-to-create-a-time-table-in-power-bi-in-a-few-simple-steps/
Date
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
See if my webinar on Time Intelligence can help: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-YTD-LYTD-Week-Over-Week/m-p/1051626#M184
Appreciate your Kudos.