{"id":1300,"date":"2020-06-15T07:06:28","date_gmt":"2020-06-15T07:06:28","guid":{"rendered":"http:\/\/bi.unija.com\/en\/?p=1300"},"modified":"2020-08-17T13:52:47","modified_gmt":"2020-08-17T13:52:47","slug":"time-functions-in-dax-language","status":"publish","type":"post","link":"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/","title":{"rendered":"Time Functions in DAX Language"},"content":{"rendered":"<p><em>For Power BI Desktop version 2.76.5678.782 (January\u00a02020).<\/em><\/p>\n<p>Time functions in DAX language enable us to filter data to a particular date, period between two dates, Year to Date and similar. Time functions only work if we have a set calendar table. More about calendar tables is covered in articles:<\/p>\n<ul>\n<li><a href=\"https:\/\/bi.unija.com\/en\/calendar-in-power-bi\/\">Calendar in Power BI<\/a><\/li>\n<li><a href=\"https:\/\/bi.unija.com\/en\/dynamic-calendar-in-power-query\/\">Dynamic Calendar in Power Query<\/a><\/li>\n<li><a href=\"https:\/\/bi.unija.com\/en\/dynamic-calendar-in-power-query-using-an-m-function\/\">Dynamic Calendar in Power Query Using an M Function<\/a><\/li>\n<li><a href=\"https:\/\/bi.unija.com\/en\/dynamic-calendar-in-power-bi-with-dax-function-calendarauto\/\">Dynamic Calendar in Power BI with DAX function CALENDARAUTO()<\/a><\/li>\n<\/ul>\n<p>After creating a calendar table we must mark it as such. We select <strong>Table Tools &gt; Mark as date table<\/strong>. With marked calendar table we can start using time functions.<\/p>\n<h1>FIRSTDATE<\/h1>\n<p>Returns the first, oldest date in the table.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>FIRSTDATE(Dates)<\/strong><\/p>\n<table style=\"height: 73px\" width=\"309\">\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Dates<\/td>\n<td>Date field of the table.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example<\/h2>\n<p><strong>FIRSTDATE_Example = FIRSTDATE(&#8216;Calendar'[Date])<\/strong><\/p>\n<p>Returns the first date of the <em>Date<\/em> field in <em>Calendar<\/em> table.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"617\" class=\"wp-image-1301\" src=\"https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/word-image-107.png\" srcset=\"https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/word-image-107.png 908w, https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/word-image-107-300x204.png 300w, https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/word-image-107-768x522.png 768w\" sizes=\"(max-width: 908px) 100vw, 908px\" \/><\/p>\n<h1>LASTDATE<\/h1>\n<p>Returns the last, earliest date in the table.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>LASTDATE(Dates)<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Dates<\/td>\n<td>Date field of the table.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example<\/h2>\n<p><strong>LASTDATE_Example = LASTDATE(&#8216;Calendar'[Date])<\/strong><\/p>\n<p>Returns the first date of the <em>Date<\/em> field in <em>Calendar<\/em> table.<\/p>\n<h1>CLOSINGBALANCEMONTH<\/h1>\n<p>Returns value for the last date of the currently selected month.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>CLOSINGBALANCEOFMONTH(Expression, Dates, [Filter])<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Expression<\/td>\n<td>Expression, which will be evaluated for the last date of the currently selected month.<\/td>\n<\/tr>\n<tr>\n<td>Dates<\/td>\n<td>Date field of the <strong>Calendar<\/strong> table.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example<\/h2>\n<p><strong>BM_Example = CLOSINGBALANCEMONTH([AC], &#8216;Calendar'[Date])<\/strong><\/p>\n<p>Returns the value of <em>AC<\/em> or <em>Actual<\/em> measure for the last date of the currently selected month. <em>Calendar[Date]<\/em> is the location of the calendar table.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"572\" class=\"wp-image-1302\" src=\"https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/word-image-110.png\" srcset=\"https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/word-image-110.png 908w, https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/word-image-110-300x189.png 300w, https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/word-image-110-768x484.png 768w\" sizes=\"(max-width: 908px) 100vw, 908px\" \/><\/p>\n<h1>CLOSINGBALANCEQUARTER<\/h1>\n<p>Returns value for the last date of the currently selected quarter.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>CLOSINGBALANCEOFQUARTER(Expression, Dates, [Filter])<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Expression<\/td>\n<td>Expression, which will be evaluated for the last date of the currently selected quarter.<\/td>\n<\/tr>\n<tr>\n<td>Dates<\/td>\n<td>Date field of the <strong>Calendar<\/strong> table.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example<\/h2>\n<p><strong>BM_Example = CLOSINGBALANCEQUARTER([AC], &#8216;Calendar'[Date])<\/strong><\/p>\n<p>Returns the value of <em>AC<\/em> or <em>Actual<\/em> measure for the last date of the currently selected QUARTER. <em>Calendar[Date]<\/em> is the location of the calendar table.<\/p>\n<h1>CLOSINGBALANCEYEAR<\/h1>\n<p>Returns value for the last date of the currently selected year.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>CLOSINGBALANCEOFYEAR(Expression, Dates, [Filter])<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Expression<\/td>\n<td>Expression, which will be evaluated for the last date of the currently selected year.<\/td>\n<\/tr>\n<tr>\n<td>Dates<\/td>\n<td>Date field of the <strong>Calendar<\/strong> table.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example<\/h2>\n<p><strong>BM_Example = CLOSINGBALANCEYEAR([AC], &#8216;Calendar'[Date])<\/strong><\/p>\n<p>Returns the value of <em>AC<\/em> or <em>Actual<\/em> measure for the last date of the currently selected year. <em>Calendar[Date]<\/em> is the location of the calendar table.<\/p>\n<h1>TOTALMTD<\/h1>\n<p>Returns value of an expression, from the beginning of the year to the end of the currently selected month.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>TOTALMTD(Expression, Dates, [Filter], [YearEndDate])<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Expression<\/td>\n<td>Expression, which will be evaluated from the beginning of the year to the end of currently selected month.<\/td>\n<\/tr>\n<tr>\n<td>Dates<\/td>\n<td>Date field of the <strong>Calendar<\/strong> table.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example<\/h2>\n<p><strong>TOTALMTD_Example = TOTALMTD((SUM(fKnjizbe[Value]),&#8217;Calendar'[Date])<\/strong><\/p>\n<p>Returns sum of Value from the beginning of the year to the end of currently selected month. <em>Calendar[Date]<\/em> is the location of the calendar table.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"775\" height=\"514\" class=\"wp-image-1303\" src=\"https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/word-image-112.png\" srcset=\"https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/word-image-112.png 775w, https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/word-image-112-300x199.png 300w, https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/word-image-112-768x509.png 768w\" sizes=\"(max-width: 775px) 100vw, 775px\" \/><\/p>\n<h1>TOTALQTD<\/h1>\n<p>Returns value of an expression, from the beginning of the year to the end of the currently selected quarter.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>TOTALQTD(Expression, Dates, [Filter], [YearEndDate])<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Expression<\/td>\n<td>Expression, which will be evaluated from the beginning of the year to the end of currently selected quarter.<\/td>\n<\/tr>\n<tr>\n<td>Dates<\/td>\n<td>Date field of the <strong>Calendar<\/strong> table.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example<\/h2>\n<p><strong>TOTALQTD_Example = TOTALQTD((SUM(fKnjizbe[Value]),&#8217;Calendar'[Date])<\/strong><\/p>\n<p>Returns sum of Value from the beginning of the year to the end of currently selected quarter. <em>Calendar[Date]<\/em> is the location of the calendar table.<\/p>\n<h1>TOTALYTD<\/h1>\n<p>Returns value of an expression, from the beginning to the end of the year.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>TOTALYTD(Expression, Dates, [Filter], [YearEndDate])<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Expression<\/td>\n<td>Expression, which will be evaluated from the beginning to the end of the year.<\/td>\n<\/tr>\n<tr>\n<td>Dates<\/td>\n<td>Date field of the <strong>Calendar<\/strong> table.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example<\/h2>\n<p>TOTALQTD_Example = TOTALQTD((SUM(fKnjizbe[Value]),&#8217;Calendar'[Date])<\/p>\n<p>Returns sum of Value from the beginning of the year to the end of currently selected quarter. <em>Calendar[Date]<\/em> is the location of the calendar table.<\/p>\n<h1>DATEADD<\/h1>\n<p>Returns a table of dates, shifted forward or backward for a given interval.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>DATEADD(Dates, NumberOfIntervals, Interval)<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Dates<\/td>\n<td>Date field of the <strong>Calendar<\/strong> table.<\/td>\n<\/tr>\n<tr>\n<td>NumberOfIntervals<\/td>\n<td>Number of intervals to shift the data.<\/td>\n<\/tr>\n<tr>\n<td>Interval<\/td>\n<td>Interval unit: DAY, MONTH, QUARTER or YEAR.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example<\/h2>\n<p><strong>DATEADD_Example = DATEADD(&#8216;Calendar'[Date], 5, DAY)<\/strong><\/p>\n<p>Returns a table of currently selected dates, shifted forward for 5 days.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"287\" class=\"wp-image-1304\" src=\"https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/word-image-115.png\" srcset=\"https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/word-image-115.png 735w, https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/word-image-115-300x117.png 300w\" sizes=\"(max-width: 735px) 100vw, 735px\" \/><\/p>\n<h1>DATESBETWEEN<\/h1>\n<p>Returns a table of dates between a given start and end date.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>DATESBETWEEN(Dates, StartDate, EndDate)<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Dates<\/td>\n<td>Date field of the <strong>Calendar<\/strong> table.<\/td>\n<\/tr>\n<tr>\n<td>StartDate<\/td>\n<td>Selected start date.<\/td>\n<\/tr>\n<tr>\n<td>EndDate<\/td>\n<td>Selected end date.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example<\/h2>\n<p><strong>DATESBETWEEN_Example = DATESBETWEEN(&#8216;Calendar'[Date], DATE(2018, 1, 1), DATE(2018, 1, 12))<\/strong><\/p>\n<p>Returns dates between January 1, 2018 and January 12, 2018.<\/p>\n<h1>DATESINPERIOD<\/h1>\n<p>Returns a table of dates that start with selected date and run for a given number of intervals.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>DATESINPERIOD(Dates, StartDate, NumberOfIntervals, Interval)<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Dates<\/td>\n<td>Date field of the <strong>Calendar<\/strong> table.<\/td>\n<\/tr>\n<tr>\n<td>StartDate<\/td>\n<td>Selected start date.<\/td>\n<\/tr>\n<tr>\n<td>NumberOfIntervals<\/td>\n<td>Number of intervals.<\/td>\n<\/tr>\n<tr>\n<td>Interval<\/td>\n<td>Interval unit: DAY, MONTH, QUARTER or YEAR.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example<\/h2>\n<p><strong>DATESINPERIOD_Example = DATESINPERIOD(&#8216;Calendar'[Date], DATE(2018, 1, 1), 10, DAY)<\/strong><\/p>\n<p>Returns a table of 10 days, starting with January 1, 2018.<\/p>\n<h1>PARALELPERIOD<\/h1>\n<p>Returns a table of parallel dates to currently selected dates, shifted for a selected interval forward or backward in time.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>PARALLELPERIOD(Dates, NumberOfIntervals, Interval)<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Dates<\/td>\n<td>Date field of the <strong>Calendar<\/strong> table.<\/td>\n<\/tr>\n<tr>\n<td>NumberOfIntervals<\/td>\n<td>Interval shift.<\/td>\n<\/tr>\n<tr>\n<td>Interval<\/td>\n<td>Interval unit: MONTH, QUARTER or YEAR.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example<\/h2>\n<p><strong>PARALLELPERIOD_Example = PARALLELPERIOD(&#8216;Calendar'[Date], 10, MONTH)<\/strong><\/p>\n<p>Returns a table of dates, parallel to currently selected dates, shifted 10 months forward.<\/p>\n<h1>DATESMTD<\/h1>\n<p>Returns a table of dates from the start of currently selected month to the currently selected date.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>DATESMTD(Dates)<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Dates<\/td>\n<td>Date field of the <strong>Calendar<\/strong> table.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example<\/h2>\n<p><strong>DATESMTD_Example = DATESMTD(&#8216;Calendar'[Date])<\/strong><\/p>\n<p>Returns a table of dates from the start of currently selected month to the currently selected date.<\/p>\n<h1>DATESQTD<\/h1>\n<p>Returns a table of dates from the start of currently selected quarter to the currently selected date.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>DATESQTD(Dates)<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Dates<\/td>\n<td>Date field of the <strong>Calendar<\/strong> table.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example<\/h2>\n<p><strong>DATESQTD_Example = DATESQTD(&#8216;Calendar'[Date])<\/strong><\/p>\n<p>Returns a table of dates from the start of currently selected quarter to the currently selected date.<\/p>\n<h1>DATESYTD<\/h1>\n<p>Returns a table of dates from the start of currently selected year to the currently selected date.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>DATESYTD(Dates)<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Dates<\/td>\n<td>Date field of the <strong>Calendar<\/strong> table.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example<\/h2>\n<p><strong>DATESYTD_Example = DATESYTD(&#8216;Calendar'[Date])<\/strong><\/p>\n<p>Returns a table of dates from the start of currently selected year to the currently selected date.<\/p>\n<h1>ENDOFMONTH<\/h1>\n<p>Returns the last day of the currently selected month.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>ENDOFMONTH(Dates)<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Dates<\/td>\n<td>Date field of the <strong>Calendar<\/strong> table.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example<\/h2>\n<p><strong>ENDOFMONTH_Example = ENDOFMONTH(&#8216;Calendar'[Date])<\/strong><\/p>\n<p>Returns the last day of the currently selected month.<\/p>\n<h1>ENDOFQUARTER<\/h1>\n<p>Returns the last day of the currently selected quarter.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>ENDOFQUARTER(Dates)<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Dates<\/td>\n<td>Date field of the <strong>Calendar<\/strong> table.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example<\/h2>\n<p><strong>ENDOFQUARTER_Example = ENDOFQUARTER(&#8216;Calendar'[Date])<\/strong><\/p>\n<p>Returns the last day of the currently selected quarter.<\/p>\n<h1>ENDOFYEAR<\/h1>\n<p>Returns the last day of the currently selected year.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>ENDOFYEAR(Dates)<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Dates<\/td>\n<td>Date field of the <strong>Calendar<\/strong> table.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Example<\/h2>\n<p><strong>ENDOFYEAR_Example = ENDOFYEAR(&#8216;Calendar'[Date])<\/strong><\/p>\n<p>Returns the last day of the currently selected year.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For Power BI Desktop version 2.76.5678.782 (January\u00a02020). Time functions in DAX language enable us to filter data to a particular date, period between two dates, Year to Date and similar. Time functions only work if we have a set calendar<\/p>\n","protected":false},"author":5,"featured_media":1209,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3],"tags":[5,8],"class_list":["post-1300","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-intermediate","tag-dax","tag-power-bi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Time Functions in DAX Language - Unija Smart<\/title>\n<meta name=\"description\" content=\"Time functions in DAX language enable us to filter data to a particular date, period between two dates, Year to Date and similar.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Time Functions in DAX Language - Unija Smart\" \/>\n<meta property=\"og:description\" content=\"Time functions in DAX language enable us to filter data to a particular date, period between two dates, Year to Date and similar.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/\" \/>\n<meta property=\"og:site_name\" content=\"Bi Unija\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-15T07:06:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-17T13:52:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/ENG11.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"720\" \/>\n\t<meta property=\"og:image:height\" content=\"480\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Branka Trifunovi\u0107\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Branka Trifunovi\u0107\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/\",\"url\":\"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/\",\"name\":\"Time Functions in DAX Language - Unija Smart\",\"isPartOf\":{\"@id\":\"https:\/\/bi.unija.com\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/ENG11.jpg\",\"datePublished\":\"2020-06-15T07:06:28+00:00\",\"dateModified\":\"2020-08-17T13:52:47+00:00\",\"author\":{\"@id\":\"https:\/\/bi.unija.com\/en\/#\/schema\/person\/3bed36623727c7162e421c4366a54e10\"},\"description\":\"Time functions in DAX language enable us to filter data to a particular date, period between two dates, Year to Date and similar.\",\"breadcrumb\":{\"@id\":\"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/#primaryimage\",\"url\":\"https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/ENG11.jpg\",\"contentUrl\":\"https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/ENG11.jpg\",\"width\":720,\"height\":480},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/bi.unija.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Time Functions in DAX Language\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/bi.unija.com\/en\/#website\",\"url\":\"https:\/\/bi.unija.com\/en\/\",\"name\":\"Bi Unija\",\"description\":\"Just another Bi site\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/bi.unija.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/bi.unija.com\/en\/#\/schema\/person\/3bed36623727c7162e421c4366a54e10\",\"name\":\"Branka Trifunovi\u0107\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/bi.unija.com\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ec99f651bcc98a163161515ec254b974?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ec99f651bcc98a163161515ec254b974?s=96&d=mm&r=g\",\"caption\":\"Branka Trifunovi\u0107\"},\"url\":\"https:\/\/bi.unija.com\/en\/author\/branka\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Time Functions in DAX Language - Unija Smart","description":"Time functions in DAX language enable us to filter data to a particular date, period between two dates, Year to Date and similar.","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:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/","og_locale":"en_US","og_type":"article","og_title":"Time Functions in DAX Language - Unija Smart","og_description":"Time functions in DAX language enable us to filter data to a particular date, period between two dates, Year to Date and similar.","og_url":"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/","og_site_name":"Bi Unija","article_published_time":"2020-06-15T07:06:28+00:00","article_modified_time":"2020-08-17T13:52:47+00:00","og_image":[{"width":720,"height":480,"url":"https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/ENG11.jpg","type":"image\/jpeg"}],"author":"Branka Trifunovi\u0107","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Branka Trifunovi\u0107","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/","url":"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/","name":"Time Functions in DAX Language - Unija Smart","isPartOf":{"@id":"https:\/\/bi.unija.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/#primaryimage"},"image":{"@id":"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/#primaryimage"},"thumbnailUrl":"https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/ENG11.jpg","datePublished":"2020-06-15T07:06:28+00:00","dateModified":"2020-08-17T13:52:47+00:00","author":{"@id":"https:\/\/bi.unija.com\/en\/#\/schema\/person\/3bed36623727c7162e421c4366a54e10"},"description":"Time functions in DAX language enable us to filter data to a particular date, period between two dates, Year to Date and similar.","breadcrumb":{"@id":"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/#primaryimage","url":"https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/ENG11.jpg","contentUrl":"https:\/\/bi.unija.com\/en\/wp-content\/uploads\/sites\/2\/2020\/06\/ENG11.jpg","width":720,"height":480},{"@type":"BreadcrumbList","@id":"https:\/\/bi.unija.com\/en\/time-functions-in-dax-language\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bi.unija.com\/en\/"},{"@type":"ListItem","position":2,"name":"Time Functions in DAX Language"}]},{"@type":"WebSite","@id":"https:\/\/bi.unija.com\/en\/#website","url":"https:\/\/bi.unija.com\/en\/","name":"Bi Unija","description":"Just another Bi site","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/bi.unija.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/bi.unija.com\/en\/#\/schema\/person\/3bed36623727c7162e421c4366a54e10","name":"Branka Trifunovi\u0107","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bi.unija.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ec99f651bcc98a163161515ec254b974?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ec99f651bcc98a163161515ec254b974?s=96&d=mm&r=g","caption":"Branka Trifunovi\u0107"},"url":"https:\/\/bi.unija.com\/en\/author\/branka\/"}]}},"_links":{"self":[{"href":"https:\/\/bi.unija.com\/en\/wp-json\/wp\/v2\/posts\/1300"}],"collection":[{"href":"https:\/\/bi.unija.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bi.unija.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bi.unija.com\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/bi.unija.com\/en\/wp-json\/wp\/v2\/comments?post=1300"}],"version-history":[{"count":12,"href":"https:\/\/bi.unija.com\/en\/wp-json\/wp\/v2\/posts\/1300\/revisions"}],"predecessor-version":[{"id":1599,"href":"https:\/\/bi.unija.com\/en\/wp-json\/wp\/v2\/posts\/1300\/revisions\/1599"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bi.unija.com\/en\/wp-json\/wp\/v2\/media\/1209"}],"wp:attachment":[{"href":"https:\/\/bi.unija.com\/en\/wp-json\/wp\/v2\/media?parent=1300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bi.unija.com\/en\/wp-json\/wp\/v2\/categories?post=1300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bi.unija.com\/en\/wp-json\/wp\/v2\/tags?post=1300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}