{"id":33409,"date":"2021-01-21T09:55:37","date_gmt":"2021-01-21T09:55:37","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=33409"},"modified":"2022-03-14T09:33:39","modified_gmt":"2022-03-14T09:33:39","slug":"create-data-tables-in-power-bi-desktop","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/create-data-tables-in-power-bi-desktop\/","title":{"rendered":"Create Data Tables in Power BI Desktop"},"content":{"rendered":"\n<p>We shall describe about &nbsp;good design practices to create date tables in your data models. Therefore, in order to work with Data Analysis Expressions (DAX) time intelligence functions, there&#8217;s a prerequisite model requirement: Further, you should have at least one date table in your model. Now, a date table is a table that meets the given requirements &#8211;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, it must have a column of data type date (or date\/time)\u2014known as the date column.<\/li><li>Secondly, the date column must contain unique values.<\/li><li>Thirdly, the date column must not contain BLANKs.<\/li><li>Also, the date column must not have any missing dates.<\/li><li>Then, the date column must span full years (not necessarily a calendar year) <\/li><li>Next, the date table must be marked as a date table.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Techniques to add a Date table to your model<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>The Auto date\/time option:<\/strong> The&nbsp;Auto date\/time&nbsp;option delivers convenient, fast, and easy-to-use time intelligence. Moreover, reports authors can work with time intelligence when filtering, grouping, and drilling down through calendar time periods. The Auto date\/time option enabled only when you work with calendar time periods, and when you have simplistic model requirements in relation to time.&nbsp;However, it doesn&#8217;t support a single date table design that can propagate filters to multiple tables.&nbsp;<\/li><li><strong>Power Query to connect to a date dimension table:<\/strong> Now, when your data source already has a date table, you are suggested to use it as the source of your model date table. It&#8217;s typically the case when you&#8217;re connecting to a data warehouse, as it will have a date dimension table.&nbsp;You can then use Power Query to connect to the date table. In this manner, your model calculations can leverage the DAX time intelligence capabilities.<\/li><li><strong>Power Query to generate a date table:<\/strong> You can generate a date table using Power Query.&nbsp;Further, if you do not have a data warehouse or other consistent definition for a time in your organization, consider using Power Query to publish a&nbsp;dataflow.&nbsp;<\/li><li><strong>DAX to generate a date table:<\/strong> You can generate a date table in your model by creating a calculated table using either the&nbsp;CALENDAR&nbsp;or&nbsp;CALENDARAUTO&nbsp;DAX functions. Such that, each function returns a single-column table of dates. Also, you can then extend the calculated table with calculated columns to support your date interval filtering and grouping requirements.<\/li><li><strong>DAX to clone an existing date table:<\/strong> In case your model has a date table already and you need an additional date table, then you can easily clone the existing date table. In this case, the date is a&nbsp;role-playing dimension. Now, you can clone a table by creating a calculated table. The calculated table expression is simply the name of the existing date table.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.testpreptraining.ai\/analyzing-data-with-microsoft-power-bi-da-100-free-test\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"961\" height=\"150\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2021\/01\/Microsoft-Exam-DA-100-Free-Practice-Test.png\" alt=\"Microsoft Exam DA-100 Free Practice Test\" class=\"wp-image-31483\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2021\/01\/Microsoft-Exam-DA-100-Free-Practice-Test.png 961w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2021\/01\/Microsoft-Exam-DA-100-Free-Practice-Test-750x117.png 750w\" sizes=\"auto, (max-width: 961px) 100vw, 961px\" \/><\/a><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We shall describe about &nbsp;good design practices to create date tables in your data models. Therefore, in order to work with Data Analysis Expressions (DAX) time intelligence functions, there&#8217;s a prerequisite model requirement: Further, you should have at least one date table in your model. Now, a date table is a table that meets the&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[174],"tags":[1830,3954],"class_list":["post-33409","page","type-page","status-publish","hentry","category-microsoft-azure","tag-da-100-study-guide","tag-microsoft-exam-da-100-free-practice-test"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Create Data Tables in Power BI Desktop - Testprep Training Tutorials<\/title>\n<meta name=\"description\" content=\"Start preparing for Microsoft Exam DA-100 with latest and updated practice test. Learn to Create Data Tables in Power BI Desktop Now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/create-data-tables-in-power-bi-desktop\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create Data Tables in Power BI Desktop - Testprep Training Tutorials\" \/>\n<meta property=\"og:description\" content=\"Start preparing for Microsoft Exam DA-100 with latest and updated practice test. Learn to Create Data Tables in Power BI Desktop Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/create-data-tables-in-power-bi-desktop\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-14T09:33:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2021\/01\/Microsoft-Exam-DA-100-Free-Practice-Test.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/create-data-tables-in-power-bi-desktop\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/create-data-tables-in-power-bi-desktop\/\",\"name\":\"Create Data Tables in Power BI Desktop - Testprep Training Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2021-01-21T09:55:37+00:00\",\"dateModified\":\"2022-03-14T09:33:39+00:00\",\"description\":\"Start preparing for Microsoft Exam DA-100 with latest and updated practice test. Learn to Create Data Tables in Power BI Desktop Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/create-data-tables-in-power-bi-desktop\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/create-data-tables-in-power-bi-desktop\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/create-data-tables-in-power-bi-desktop\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Data Tables in Power BI Desktop\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create Data Tables in Power BI Desktop - Testprep Training Tutorials","description":"Start preparing for Microsoft Exam DA-100 with latest and updated practice test. Learn to Create Data Tables in Power BI Desktop Now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/create-data-tables-in-power-bi-desktop\/","og_locale":"en_US","og_type":"article","og_title":"Create Data Tables in Power BI Desktop - Testprep Training Tutorials","og_description":"Start preparing for Microsoft Exam DA-100 with latest and updated practice test. Learn to Create Data Tables in Power BI Desktop Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/create-data-tables-in-power-bi-desktop\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2022-03-14T09:33:39+00:00","og_image":[{"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2021\/01\/Microsoft-Exam-DA-100-Free-Practice-Test.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/create-data-tables-in-power-bi-desktop\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/create-data-tables-in-power-bi-desktop\/","name":"Create Data Tables in Power BI Desktop - Testprep Training Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2021-01-21T09:55:37+00:00","dateModified":"2022-03-14T09:33:39+00:00","description":"Start preparing for Microsoft Exam DA-100 with latest and updated practice test. Learn to Create Data Tables in Power BI Desktop Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/create-data-tables-in-power-bi-desktop\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/create-data-tables-in-power-bi-desktop\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/create-data-tables-in-power-bi-desktop\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Create Data Tables in Power BI Desktop"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/33409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=33409"}],"version-history":[{"count":5,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/33409\/revisions"}],"predecessor-version":[{"id":52804,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/33409\/revisions\/52804"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=33409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=33409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=33409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}