98.8% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Power BI training and help » Date Tables
Date Tables
Resolved · Low Priority · Version 365
Mark has attended:
Power BI Reporting course
Power BI Modelling, Visualisation and Publishing course
Date Tables
On the course, the importance of data tables was reiterated many times. I am setting up my data relationships and added the date table used in the course, What wasn't covered, does PowerBI understand how to convert date formats?
I have a data source that has a few different date formats (e.g. 01/01/2024, 01/01/24 and Jan 01 2024). Do I need to create adaptions of these different formats in my date table, or is PowerBI smart enough to just deal with it?
Also, what does "Mark As Date Table" actually do? Does it add this intelligence?
RE: Date Tables
Hi Mark,
Thank you for the forum question.
Power BI is quite flexible when it comes to handling different date formats. It can automatically recognize and convert various date formats, so you generally don't need to create separate adaptations for each format. However, it's a good practice to ensure consistency in your date formats to avoid any potential issues.
To handle different date formats, you can use the Power Query Editor in Power BI. Here, you can transform and standardize your date formats before loading them into your model. For example, you can use the "Change Type" option to set the column to a Date type, which helps Power BI understand and convert the dates correctly.
Regarding the "Mark As Date Table" feature, this is an important step in Power BI. When you mark a table as a date table, Power BI validates that the table meets certain criteria, such as having unique, contiguous date values with no nulls. This ensures that time intelligence functions, like year-to-date or month-to-date calculations, work correctly. It doesn't add intelligence to convert date formats, but it does help Power BI understand how to use the dates in your model effectively.
Kind regards
Jens Bonde
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector
RE: Date Tables
Hi Mark,
Thank you for the forum question.
Power BI is quite flexible when it comes to handling different date formats. It can automatically recognize and convert various date formats, so you generally don't need to create separate adaptations for each format. However, it's a good practice to ensure consistency in your date formats to avoid any potential issues.
To handle different date formats, you can use the Power Query Editor in Power BI. Here, you can transform and standardize your date formats before loading them into your model. For example, you can use the "Change Type" option to set the column to a Date type, which helps Power BI understand and convert the dates correctly.
Regarding the "Mark As Date Table" feature, this is an important step in Power BI. When you mark a table as a date table, Power BI validates that the table meets certain criteria, such as having unique, contiguous date values with no nulls. This ensures that time intelligence functions, like year-to-date or month-to-date calculations, work correctly. It doesn't add intelligence to convert date formats, but it does help Power BI understand how to use the dates in your model effectively.
Kind regards
Jens Bonde
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Power BI tip:Utilize Relationships EffectivelyEstablish clear and meaningful relationships between tables in your data model. Proper relationships enable Power BI to navigate and aggregate data accurately. Pay attention to cardinality and cross-filter direction when setting up relationships to ensure the results align with your analytical requirements. |