{"id":33780,"date":"2021-01-23T12:37:46","date_gmt":"2021-01-23T12:37:46","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=33780"},"modified":"2022-04-05T11:07:46","modified_gmt":"2022-04-05T11:07:46","slug":"time-intelligence-functions-using-dax","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/time-intelligence-functions-using-dax\/","title":{"rendered":"Time Intelligence Functions Using DAX"},"content":{"rendered":"\n<p>Data Analysis Expressions (DAX) includes time-intelligence functions that enable you to manipulate data using time periods, including days, months, quarters, and years, and then build and compare calculations over those periods.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>DA-100 exam is retired. <a href=\"https:\/\/www.testpreptraining.ai\/microsoft-power-bi-data-analyst-pl-300-exam\" target=\"_blank\" rel=\"noreferrer noopener\">Exam PL-300<\/a>: Microsoft Power BI Data Analyst, is available.<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Function<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>CLOSINGBALANCEMONTH<\/td><td>It is used to evaluate the expression at the last date of the month in the current context.<\/td><\/tr><tr><td>CLOSINGBALANCEQUARTER<\/td><td>It is used to evaluate the expression at the last date of the quarter in the current context.<\/td><\/tr><tr><td>CLOSINGBALANCEYEAR<\/td><td>It is used to evaluate the expression at the last date of the year in the current context.<\/td><\/tr><tr><td>DATEADD<\/td><td>It is used to return a table that contains a column of dates, shifted either forward or backward in time by the specified number of intervals from the dates in the current context.<\/td><\/tr><tr><td>DATESBETWEEN<\/td><td>It returns a table that contains a column of dates that begins with a specified start date and continues until specified end date.<\/td><\/tr><tr><td>DATESINPERIOD<\/td><td>It returns a table that contains a column of dates that begins with a specified start date and continues for the specified number and type of date intervals.<\/td><\/tr><tr><td>DATESMTD<\/td><td>It returns a table that contains a column of the dates for the month to date, in the current context.<\/td><\/tr><tr><td>DATESQTD<\/td><td>It returns a table that contains a column of the dates for the quarter to date, in the current context.<\/td><\/tr><tr><td>DATESYTD<\/td><td>It returns a table that contains a column of the dates for the year to date, in the current context.<\/td><\/tr><tr><td>ENDOFMONTH<\/td><td>It returns the last date of the month in the current context for the specified column of dates.<\/td><\/tr><tr><td>ENDOFQUARTER<\/td><td>It returns the last date of the quarter in the current context for the specified column of dates.<\/td><\/tr><tr><td>ENDOFYEAR<\/td><td>It returns the last date of the year in the current context for the specified column of dates.<\/td><\/tr><tr><td>FIRSTDATE<\/td><td>It returns the first date in the current context for the specified column of dates.<\/td><\/tr><tr><td>FIRSTNONBLANK<\/td><td>It returns the first value in the column, column, filtered by the current context, where the expression is not blank<\/td><\/tr><tr><td>LASTDATE<\/td><td>It returns the last date in the current context for the specified column of dates.<\/td><\/tr><tr><td>LASTNONBLANK<\/td><td>It returns the last value in the column, column, filtered by the current context, where the expression is not blank.<\/td><\/tr><tr><td>NEXTDAY<\/td><td>It returns a table that contains a column of all dates from the next day, based on the first date specified in the dates column in the current context.<\/td><\/tr><tr><td>NEXTMONTH<\/td><td>It returns a table that contains a column of all dates from the next month, based on the first date in the dates column in the current context.<\/td><\/tr><tr><td>NEXTQUARTER<\/td><td>It returns a table that contains a column of all dates in the next quarter, based on the first date specified in the dates column, in the current context.<\/td><\/tr><tr><td>NEXTYEAR<\/td><td>It returns a table that contains a column of all dates in the next year, based on the first date in the dates column, in the current context.<\/td><\/tr><tr><td>OPENINGBALANCEMONTH<\/td><td>It is used to evaluate the expression at the first date of the month in the current context.<\/td><\/tr><tr><td>OPENINGBALANCEQUARTER<\/td><td>It is used to evaluate the expression at the first date of the quarter, in the current context.<\/td><\/tr><tr><td>OPENINGBALANCEYEAR<\/td><td>It is used to evaluate the expression at the first date of the year in the current context.<\/td><\/tr><tr><td>PARALLELPERIOD<\/td><td>It returns a table that contains a column of dates that represents a period parallel to the dates in the specified dates column, in the current context, with the dates shifted a number of intervals either forward in time or back in time.<\/td><\/tr><tr><td>PREVIOUSDAY<\/td><td>It returns a table that contains a column of all dates representing the day that is previous to the first date in the dates column, in the current context.<\/td><\/tr><tr><td>PREVIOUSMONTH<\/td><td>It returns a table that contains a column of all dates from the previous month, based on the first date in the dates column, in the current context.<\/td><\/tr><tr><td>PREVIOUSQUARTER<\/td><td>It returns a table that contains a column of all dates from the previous quarter, based on the first date in the dates column, in the current context.<\/td><\/tr><tr><td>PREVIOUSYEAR<\/td><td>It returns a table that contains a column of all dates from the previous year, given the last date in the dates column, in the current context.<\/td><\/tr><tr><td>SAMEPERIODLASTYEAR<\/td><td>It returns a table that contains a column of dates shifted one year back in time from the dates in the specified dates column, in the current context.<\/td><\/tr><tr><td>STARTOFMONTH<\/td><td>It returns the first date of the month in the current context for the specified column of dates.<\/td><\/tr><tr><td>STARTOFQUARTER<\/td><td>It returns the first date of the quarter in the current context for the specified column of dates.<\/td><\/tr><tr><td>STARTOFYEAR<\/td><td>It returns the first date of the year in the current context for the specified column of dates.<\/td><\/tr><tr><td>TOTALMTD<\/td><td>It is used to evaluate the value of the expression for the month to date, in the current context.<\/td><\/tr><tr><td>TOTALQTD<\/td><td>It is used to evaluate the value of the expression for the dates in the quarter to date, in the current context.<\/td><\/tr><tr><td>TOTALYTD<\/td><td>It is used to evaluate the year-to-date value of the expression in the current context.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Learn more about <a href=\"https:\/\/docs.microsoft.com\/en-us\/dax\/time-intelligence-functions-dax\" target=\"_blank\" rel=\"noreferrer noopener\">Time Intelligence Functions<\/a><\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.testpreptraining.ai\/analyzing-data-with-microsoft-power-bi-da-100-free-test\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" 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\"\/><\/a><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Data Analysis Expressions (DAX) includes time-intelligence functions that enable you to manipulate data using time periods, including days, months, quarters, and years, and then build and compare calculations over those periods. DA-100 exam is retired. Exam PL-300: Microsoft Power BI Data Analyst, is available. Function Description CLOSINGBALANCEMONTH It is used to evaluate the expression at&#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,3955,3954],"class_list":["post-33780","page","type-page","status-publish","hentry","category-microsoft-azure","tag-da-100-study-guide","tag-microsoft-exam-da-100-exam-questions","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>Time Intelligence Functions Using DAX - Testprep Training Tutorials<\/title>\n<meta name=\"description\" content=\"Learn about Time Intelligence Functions using the online tutorial. Start preparing for Microsoft Exam DA-100 Exam 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\/time-intelligence-functions-using-dax\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Time Intelligence Functions Using DAX - Testprep Training Tutorials\" \/>\n<meta property=\"og:description\" content=\"Learn about Time Intelligence Functions using the online tutorial. Start preparing for Microsoft Exam DA-100 Exam Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/time-intelligence-functions-using-dax\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-05T11:07:46+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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/time-intelligence-functions-using-dax\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/time-intelligence-functions-using-dax\/\",\"name\":\"Time Intelligence Functions Using DAX - Testprep Training Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2021-01-23T12:37:46+00:00\",\"dateModified\":\"2022-04-05T11:07:46+00:00\",\"description\":\"Learn about Time Intelligence Functions using the online tutorial. Start preparing for Microsoft Exam DA-100 Exam Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/time-intelligence-functions-using-dax\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/time-intelligence-functions-using-dax\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/time-intelligence-functions-using-dax\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Time Intelligence Functions Using DAX\"}]},{\"@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":"Time Intelligence Functions Using DAX - Testprep Training Tutorials","description":"Learn about Time Intelligence Functions using the online tutorial. Start preparing for Microsoft Exam DA-100 Exam 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\/time-intelligence-functions-using-dax\/","og_locale":"en_US","og_type":"article","og_title":"Time Intelligence Functions Using DAX - Testprep Training Tutorials","og_description":"Learn about Time Intelligence Functions using the online tutorial. Start preparing for Microsoft Exam DA-100 Exam Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/time-intelligence-functions-using-dax\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2022-04-05T11:07:46+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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/time-intelligence-functions-using-dax\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/time-intelligence-functions-using-dax\/","name":"Time Intelligence Functions Using DAX - Testprep Training Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2021-01-23T12:37:46+00:00","dateModified":"2022-04-05T11:07:46+00:00","description":"Learn about Time Intelligence Functions using the online tutorial. Start preparing for Microsoft Exam DA-100 Exam Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/time-intelligence-functions-using-dax\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/time-intelligence-functions-using-dax\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/time-intelligence-functions-using-dax\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Time Intelligence Functions Using DAX"}]},{"@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\/33780","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=33780"}],"version-history":[{"count":3,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/33780\/revisions"}],"predecessor-version":[{"id":54156,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/33780\/revisions\/54156"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=33780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=33780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=33780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}