

{"id":45790,"date":"2018-12-17T10:58:57","date_gmt":"2018-12-17T05:28:57","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=45790"},"modified":"2018-12-18T14:54:29","modified_gmt":"2018-12-18T09:24:29","slug":"qlik-sense-start-and-end-functions","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/qlik-sense-start-and-end-functions\/","title":{"rendered":"Qlik Sense Start and End Functions with Example"},"content":{"rendered":"<p><span style=\"font-weight: 400\">Earlier we discussed Qlik Sense Functions such as color, conditional, <a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-mapping-function\/\"><strong>mapping functions<\/strong><\/a> etc. Today, we will see Qlik Sense Start and End Functions. These Start and End Functions are a type of <a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-date-and-time-functions\/\"><strong>date and time functions<\/strong><\/a>. We call them start and end functions because they primarily return timestamps or data related to the start or end of a particular period like a year, quarter, month, lunar week, week etc.<\/span><\/p>\n<p>So, let&#8217;s start Qlik Sense Start and End Functions tutorial.<\/p>\n<div id=\"attachment_45791\" style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/Qlik-Sense-Start-and-End-Functions.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-45791\" class=\"size-full wp-image-45791\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/Qlik-Sense-Start-and-End-Functions.jpg\" alt=\"Qlik Sense Start and End Functions with Example\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/Qlik-Sense-Start-and-End-Functions.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/Qlik-Sense-Start-and-End-Functions-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/Qlik-Sense-Start-and-End-Functions-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/Qlik-Sense-Start-and-End-Functions-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/Qlik-Sense-Start-and-End-Functions-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/Qlik-Sense-Start-and-End-Functions-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><p id=\"caption-attachment-45791\" class=\"wp-caption-text\">Qlik Sense Start and End Functions with Example<\/p><\/div>\n<h2>1. What are the Qlik Sense Start and End Functions?<\/h2>\n<p>So, below we will discuss the different Start and End Functions in Qlik Sense, this contains year, week, day, quarter, month start and end functions. Also, we will see the syntax and example of each Qlik Sense Start and End Functions.<\/p>\n<h3><span style=\"font-weight: 400\">i. YearStart<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the timestamp of the first date of the year. <\/span><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">YearStart(date[, period_no[, first_month_of_year]])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is the date you want to evaluate and want the start year for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is the year offset i.e. if the value is 0 then the start of the current year is returned, but, a negative value will consider a preceding year and a positive value will consider the succeeding year to return the date for.<\/span><\/p>\n<p><span style=\"font-weight: 400\">First_month_of_year<\/span><span style=\"font-weight: 400\"> is the number of month from which you wish to get your year started. We use this in case of a fiscal year which does not start from January.<\/span><\/p>\n<p><strong>Recommended Reading &#8211;<\/strong> <strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-null-functions\/\">Qlik Sense Null Functions<\/a><\/strong><\/p>\n<p><span style=\"font-weight: 400\"><strong>For example,<\/strong> <\/span><\/p>\n<p><span style=\"font-weight: 400\">yearstart (&#8217;19\/10\/2018&#8242;)<\/span><span style=\"font-weight: 400\"> returns 01\/01\/2018.<\/span><\/p>\n<p><span style=\"font-weight: 400\">yearstart (&#8217;19\/10\/2018&#8242;, -1)<\/span><span style=\"font-weight: 400\">returns 01\/01\/2017.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">ii. YearEnd<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the timestamp of the last date to the last millisecond of the last of the year. The data type is dual. <\/span><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">YearEnd(date[, period_no[, first_month_of_year]])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is the date you want to evaluate and want the end year for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is the year offset i.e. if the value is 0 then the start of the current year is returned, but, a negative value will consider a preceding year and a positive value will consider the succeeding year to return the date for.<\/span><\/p>\n<p><span style=\"font-weight: 400\">First_month_of_year<\/span><span style=\"font-weight: 400\"> is the number of month from which you wish to get your year started. We use this in case of a fiscal year which does not start from January.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>For example,<\/strong> <\/span><\/p>\n<p><span style=\"font-weight: 400\">yearend(&#8217;19\/10\/2018&#8242;)<\/span><span style=\"font-weight: 400\"> returns 31\/12\/2018 23:59:59.<\/span><\/p>\n<p><span style=\"font-weight: 400\">yearend(&#8217;19\/10\/2018&#8242;, -1)<\/span><span style=\"font-weight: 400\">returns 01\/01\/2017 23:59:59.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">iii. Yearname<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the year corresponding to the first millisecond of the first date of the year as mentioned in the date given in the function. This function returns a four-digit integer and a corresponding textual representation as well. <\/span><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">YearName(date[, period_no[, first_month_of_year]])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is the date you want to evaluate and want the year for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is the year offset i.e. if the value is 0 then the start of the current year is returned, but, a negative value will consider a preceding year and a positive value will consider the succeeding year to return the date for.<\/span><\/p>\n<p><span style=\"font-weight: 400\">First_month_of_year<\/span><span style=\"font-weight: 400\"> is the number of month from which you wish to get your year started. We use this in case of a fiscal year which does not start from January.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>For example,<\/strong> <\/span><\/p>\n<p><span style=\"font-weight: 400\">yearname (&#8217;15\/10\/2018&#8242;) <\/span><span style=\"font-weight: 400\">returns<\/span><span style=\"font-weight: 400\"> 2018.<\/span><\/p>\n<p><span style=\"font-weight: 400\">yearname (&#8217;15\/10\/2018&#8242;, -1) <\/span><span style=\"font-weight: 400\">returns<\/span><span style=\"font-weight: 400\"> 2017.<\/span><\/p>\n<p><span style=\"font-weight: 400\">yearname (&#8217;15\/10\/2018&#8242;, 0, 4) <\/span><span style=\"font-weight: 400\">returns<\/span><span style=\"font-weight: 400\"> 2018-2019.<\/span><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-financial-functions\/\">Have a look at Qlik Sense Financial Functions<\/a><\/strong><\/p>\n<h3><span style=\"font-weight: 400\">iv. Quarterstart<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the start date of the quarter that a given date is falling in. <\/span><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">QuarterStart(date[, period_no[, first_month_of_year]])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is the date you want to evaluate and want the quarter start date for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is the quarter offset i.e. if the value is 0 then the start of the current quarter is returned, but, a negative value will consider a preceding quarter and a positive value will consider the succeeding quarter to return the date for.<\/span><\/p>\n<p><span style=\"font-weight: 400\">First_month_of_year<\/span><span style=\"font-weight: 400\"> is the number of month from which you wish to get your year started. We use this in case of a fiscal year which does not start from January.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>For example,<\/strong> <\/span><\/p>\n<p><span style=\"font-weight: 400\">quarterstart(&#8217;29\/10\/2005&#8242;)<\/span><span style=\"font-weight: 400\"> returns <\/span><span style=\"font-weight: 400\">01\/10\/2005<\/span><span style=\"font-weight: 400\"> as the start date of the quarter in which the given date falls.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">v. Quarterend<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the end date of the quarter that a given date is falling in. We evaluate the data to the last millisecond and then it&#8217;s corresponding quarter returns.<\/span><\/p>\n<p><strong>You must read &#8211;<\/strong> <strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-integer-functions\/\">Qlik Sense Integer Functions<\/a><\/strong><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">QuarterEnd(date[, period_no[, first_month_of_year]])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is the date you want to evaluate and want the quarter end date for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is the quarter offset i.e. if the value is 0 then the start of the current quarter is returned, but, a negative value will consider a preceding quarter and a positive value will consider the succeeding quarter to return the date for.<\/span><\/p>\n<p><span style=\"font-weight: 400\">First_month_of_year<\/span><span style=\"font-weight: 400\"> is the number of month from which you wish to get your year started. We use this in case of a fiscal year which does not start from January.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>For example,<\/strong> <\/span><\/p>\n<p><span style=\"font-weight: 400\">quarterstart(&#8217;29\/10\/2017&#8242;)<\/span><span style=\"font-weight: 400\"> returns <\/span><span style=\"font-weight: 400\">31\/12\/2017 23:59:59<\/span><span style=\"font-weight: 400\"> as the end date of the quarter in which the given date falls.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">vi. Quartername in Qlik Sense<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns a dual value having the names of the months which constitutes a quarter along with the year corresponding to the date being evaluated in the function. <\/span><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">QuarterName(date[, period_no[, first_month_of_year]])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is the date you want to evaluate and want the quarter name for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is the quarter offset i.e. if the value is 0 then the start of the quarter given in the <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is returned, but, a negative value will consider a preceding quarter and a positive value will consider the succeeding quarter to return the date for.<\/span><\/p>\n<p><span style=\"font-weight: 400\">First_month_of_year<\/span><span style=\"font-weight: 400\"> is the number of month from which you wish to get your year started. We use this in case of a fiscal year which does not start from January.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>For example,<\/strong> <\/span><\/p>\n<p><span style=\"font-weight: 400\">quartername(&#8217;20\/10\/2017&#8242;)<\/span> <span style=\"font-weight: 400\">returns Oct-Dec 2017.<\/span><\/p>\n<p><span style=\"font-weight: 400\">quartername(&#8217;20\/10\/2017&#8242;, -1)<\/span><span style=\"font-weight: 400\"> returns Jul-Sep 2017 as the quarter preceding the current.<\/span><\/p>\n<p><span style=\"font-weight: 400\">quartername(&#8217;20\/10\/2017&#8242;, 0, 3)<\/span><span style=\"font-weight: 400\"> returns Sep-Nov 2017.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">vii. Monthstart<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the date of the first day of the month given in the date.<\/span><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-mathematical-functions\/\">Let&#8217;s revise Qlik Sense Mathematical Functions<\/a><\/strong><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">MonthStart(date[, period_no])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is the date you want to evaluate and want the start date of the month for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is the month offset i.e. if the value is 0 then the start of the month in the given date is returned, but, a negative value will consider a preceding month and a positive value will consider the succeeding month to return the date for. <\/span><\/p>\n<p><strong>For example,<\/strong><\/p>\n<p><span style=\"font-weight: 400\">monthstart(&#8217;15\/10\/2018&#8242;)<\/span><span style=\"font-weight: 400\"> returns 01\/10\/2018.<\/span><\/p>\n<p><span style=\"font-weight: 400\">monthstart(&#8217;15\/10\/2018&#8242;, -1)<\/span><span style=\"font-weight: 400\"> returns 01\/09\/2018.<\/span><\/p>\n<p><span style=\"font-weight: 400\">monthstart(\u201815\/10\/2018\u2019, 1)<\/span><span style=\"font-weight: 400\"> returns 01\/11\/2018.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">viii. Monthend<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the date of the last day evaluated to the last millisecond of the month given in the date. <\/span><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">MonthEnd(date[, period_no])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is the date you want to evaluate and want the end date of the month for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is the month offset i.e. if the value is 0 then the end of the month in the given date is returned, but, a negative value will consider a preceding month and a positive value will consider the succeeding month to return the date for. <\/span><\/p>\n<p><strong>For example,<\/strong><\/p>\n<p><span style=\"font-weight: 400\">monthstart(&#8217;15\/11\/2018&#8242;)<\/span><span style=\"font-weight: 400\"> returns 30\/11\/2018 23:59:59.<\/span><\/p>\n<p><span style=\"font-weight: 400\">monthstart(&#8217;15\/11\/2018&#8242;, -1)<\/span><span style=\"font-weight: 400\"> returns 31\/10\/2018 23:59:59.<\/span><\/p>\n<p><span style=\"font-weight: 400\">monthstart(\u201815\/11\/2018\u2019, 1)<\/span><span style=\"font-weight: 400\"> returns 31\/12\/2018 23:59:59.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">ix. Monthname<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the name of the month evaluated from the given date.<\/span><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-field-functions\/\">Have a look at Qlik Sense Field Functions<\/a><\/strong><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">MonthName(date[, period_no])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is the date you want to evaluate and want the name of the month for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is the month offset i.e. if the value is 0 then the name of the month in the given date is returned, but, a negative value will consider a preceding month and a positive value will consider the succeeding month to return the date for. <\/span><\/p>\n<p><strong>For example,<\/strong><\/p>\n<p><span style=\"font-weight: 400\">monthstart(&#8217;15\/11\/2018&#8242;)<\/span><span style=\"font-weight: 400\"> returns Nov 2018.<\/span><\/p>\n<p><span style=\"font-weight: 400\">monthstart(&#8217;15\/11\/2018&#8242;, -1)<\/span><span style=\"font-weight: 400\"> returns Oct 2018.<\/span><\/p>\n<p><span style=\"font-weight: 400\">monthstart(\u201815\/11\/2018\u2019, 1)<\/span><span style=\"font-weight: 400\"> returns Dec 2018.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">x. Monthsstart<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the date of the first day of a month, bi-month, tri-month, quarter or half-year corresponding to the given date.<\/span><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">MonthsStart(n_months,date[,period_no[,first_month_of_year]])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">n_months<\/span><span style=\"font-weight: 400\"> is the integer specifying the period of months. The integers we use are 1 (for a single month), 2(bi-month), 3(tri-month), 4 (tertial), 6(half year) and so on. <\/span><\/p>\n<p><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is the date you want to evaluate and want the months start for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is the period offset i.e. if the value is 0 then the start of the months given in the <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is returned, but, a negative value will consider a preceding period and a positive value will consider the succeeding period to return the date for.<\/span><\/p>\n<p><span style=\"font-weight: 400\">First_month_of_year<\/span><span style=\"font-weight: 400\"> is the number of month from which you wish to get your year started. We use this in case of a fiscal year which does not start from January.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>For example,<\/strong> <\/span><\/p>\n<p><span style=\"font-weight: 400\">monthsstart(2, &#8217;10\/12\/2017&#8242;)<\/span><span style=\"font-weight: 400\"> returns <\/span><span style=\"font-weight: 400\">01\/01\/2018<\/span><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">monthsstart(4, &#8217;15\/10\/2017, -1)<\/span><span style=\"font-weight: 400\"> returns <\/span><span style=\"font-weight: 400\">01\/05\/2017<\/span><span style=\"font-weight: 400\">.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">xi. Monthsend<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the date of the last day evaluated to the last millisecond of a month, bi-month, tri-month, quarter or half-year corresponding to the given date.<\/span><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-formatting-functions\/\">Do you know about Formatting Functions in Qlik Sense<\/a><\/strong><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">MonthsEnd(n_months,date[,period_no[,first_month_of_year]])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">n_months<\/span><span style=\"font-weight: 400\"> is the integer specifying the period of months. The integers used are 1 (for a single month), 2(bi-month), 3(tri-month), 4 (tertial), 6(half year) and so on. <\/span><\/p>\n<p><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is the date you want to evaluate and want the months end for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is the period offset i.e. if the value is 0 then the end of the months given in the <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is returned, but, a negative value will consider a preceding period and a positive value will consider the succeeding period to return the date for.<\/span><\/p>\n<p><span style=\"font-weight: 400\">First_month_of_year<\/span><span style=\"font-weight: 400\"> is the number of month from which you wish to get your year started. We use this in case of a fiscal year which does not start from January.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>For example,<\/strong> <\/span><\/p>\n<p><span style=\"font-weight: 400\">monthsstart(2, &#8217;10\/12\/2017&#8242;)<\/span><span style=\"font-weight: 400\"> returns <\/span><span style=\"font-weight: 400\">28\/02\/2018<\/span><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">monthsstart(4, &#8217;15\/10\/2017, -1)<\/span><span style=\"font-weight: 400\"> returns <\/span><span style=\"font-weight: 400\">31\/08\/2017<\/span><span style=\"font-weight: 400\">.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">xii. Monthsname<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns a <strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-string-functions\/\">string<\/a><\/strong> containing the range of the months along with the year corresponding to the range specified in the function.<\/span><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">MonthsName(n_months,date[,period_no[,first_month_of_year]])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">n_months<\/span><span style=\"font-weight: 400\"> is the integer specifying the period of months. The integers used are 1 (for a single month), 2(bi-month), 3(tri-month), 4 (tertial), 6(half year) and so on. <\/span><\/p>\n<p><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is the date you want to evaluate and want the months range for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is the period offset i.e. if the value is 0 then the end of the months given in the <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is returned, but, a negative value will consider a preceding period and a positive value will consider the succeeding period to return the date for.<\/span><\/p>\n<p><span style=\"font-weight: 400\">First_month_of_year<\/span><span style=\"font-weight: 400\"> is the number of month from which you wish to get your year started. We use this in case of a fiscal year which does not start from January.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>For example,<\/strong> <\/span><\/p>\n<p><span style=\"font-weight: 400\">monthsname(4, &#8217;19\/10\/2017&#8242;)<\/span><span style=\"font-weight: 400\"> returns \u2018<\/span><span style=\"font-weight: 400\">Sep-Dec 2017\u2019<\/span><span style=\"font-weight: 400\">. <\/span><\/p>\n<p><span style=\"font-weight: 400\">monthsname(4, &#8217;19\/10\/2017&#8242;, -1)<\/span><span style=\"font-weight: 400\"> returns \u2018<\/span><span style=\"font-weight: 400\">May-Aug 2017\u2019<\/span><span style=\"font-weight: 400\">.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">xiii. Weekstart<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the date of the first day of the week mentioned in the date given in the function as input. <\/span><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">WeekStart(date [, period_no[, first_week_day]])<\/pre>\n<p><span style=\"font-weight: 400\">Where,<\/span><span style=\"font-weight: 400\"> date<\/span><span style=\"font-weight: 400\"> is the date you want to evaluate and want the week start for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is the period offset i.e. if the value is 0 then the week start of the week given in the <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is returned, but, a negative value will consider a preceding week and a positive value will consider the succeeding week to return the date for.<\/span><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-general-numeric-functions\/\">Let&#8217;s revise general Numeric Functions in Qlik Sense<\/a><\/strong><\/p>\n<p><span style=\"font-weight: 400\">First_week_day <\/span><span style=\"font-weight: 400\">sets the first day of the week. Different integers correspond to different week days like 0 for Monday, 1 for Tuesday, 2 for Wednesday, 3 for Thursday, 4 for Friday, 5 for Saturday and 6 for Sunday. <\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>For example,<\/strong> <\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">weekstart(17\/11\/2018)<\/span><span style=\"font-weight: 400\"> returns 12\/11\/2018 as the start day or Monday of the week given in the date. <\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">weekstart(20\/11\/2018, -1)<\/span><span style=\"font-weight: 400\"> returns 12\/11\/18 as the start day or Monday of the preceding week. <\/span><\/li>\n<\/ul>\n<h3><span style=\"font-weight: 400\">xiv. Weekend<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the date of the last day of the week evaluated to the last millisecond mentioned in the date given in the function as input. <\/span><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">WeekEnd(date [, period_no[, first_week_day]])<\/pre>\n<p><span style=\"font-weight: 400\">Where,<\/span><span style=\"font-weight: 400\"> date<\/span><span style=\"font-weight: 400\"> is the date you want to evaluate and want the week end for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is the period offset i.e. if the value is 0 then the week end of the week given in the <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is returned, but, a negative value will consider a preceding week and a positive value will consider the succeeding week to return the date for.<\/span><\/p>\n<p><span style=\"font-weight: 400\">First_week_day <\/span><span style=\"font-weight: 400\">sets the first day of the week. Different integers correspond to different week days like 0 for Monday, 1 for Tuesday, 2 for Wednesday, 3 for Thursday, 4 for Friday, 5 for Saturday and 6 for Sunday. <\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>For example,<\/strong> <\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">weekstart(14\/11\/2018)<\/span><span style=\"font-weight: 400\"> returns 18\/11\/2018 as the end day i.e. Sunday of the week given in the date. <\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">weekstart(20\/11\/2018, -1)<\/span><span style=\"font-weight: 400\"> returns 18\/11\/18 as the end day i.e. Sunday of the preceding week. <\/span><\/li>\n<\/ul>\n<h3><span style=\"font-weight: 400\">xv. Weekname<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the year and the number of week corresponding to the given date.<\/span><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">WeekName(date[, period_no[,first_week_day]])<\/pre>\n<p><span style=\"font-weight: 400\">Where,<\/span><span style=\"font-weight: 400\"> date<\/span><span style=\"font-weight: 400\"> is the date you want to evaluate and want the week name for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is the period offset i.e. if the value is 0 then the week name of the week given in the <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is returned, but, a negative value will consider a preceding week and a positive value will consider the succeeding week to return the date for.<\/span><\/p>\n<p><strong>Recommended Reading &#8211; <a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-statistical-distribution-functions\/\">Qlik Sense Statistical Functions<\/a><\/strong><\/p>\n<p><span style=\"font-weight: 400\">First_week_day <\/span><span style=\"font-weight: 400\">sets the first day of the week. Different integers correspond to different week days like 0 for Monday, 1 for Tuesday, 2 for Wednesday, 3 for Thursday, 4 for Friday, 5 for Saturday and 6 for Sunday. <\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>For example,<\/strong> <\/span><\/p>\n<p><span style=\"font-weight: 400\">weekname(&#8217;12\/01\/2017&#8242;)<\/span><span style=\"font-weight: 400\"> returns 2017\/02 as the year and the week number.<\/span><\/p>\n<p><span style=\"font-weight: 400\">weekname(&#8217;12\/01\/2013&#8242;, -1)<\/span><span style=\"font-weight: 400\"> returns 2017\/01 as the year and the week number.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">xvi. Lunarweekstart<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the first day of a lunar week evaluated to the first millisecond. In Qlik Sense, lunar weeks are those weeks which start from the 1<\/span><span style=\"font-weight: 400\">st<\/span><span style=\"font-weight: 400\"> of January. <\/span><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">LunarweekStart(date[, period_no[, first_week_day]])<\/pre>\n<p><span style=\"font-weight: 400\">Where,<\/span><span style=\"font-weight: 400\"> date<\/span><span style=\"font-weight: 400\"> is the date you want to evaluate and want the lunar week start for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is the period offset i.e. if the value is 0 then the week start of the week given in the <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is returned, but, a negative value will consider a preceding lunar week and a positive value will consider the succeeding lunar week to return the date for.<\/span><\/p>\n<p><span style=\"font-weight: 400\">First_week_day <\/span><span style=\"font-weight: 400\">sets the first day of the week. Different integers correspond to different week days like 0 for Monday, 1 for Tuesday, 2 for Wednesday, 3 for Thursday, 4 for Friday, 5 for Saturday and 6 for Sunday. <\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>For example,<\/strong> <\/span><\/p>\n<p><span style=\"font-weight: 400\">lunarweekstart(&#8217;12\/01\/2017&#8242;)<\/span><span style=\"font-weight: 400\"> returns 08\/01\/2017 as the start date of the lunar week corresponding to the given date.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">xvii. Lunarweekend<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the last day of a lunar week evaluated to the last millisecond. In <strong><a href=\"https:\/\/www.qlik.com\/us\/products\/qlik-sense\">Qlik Sense<\/a><\/strong>, lunar weeks are those weeks which start from the 1<\/span><span style=\"font-weight: 400\">st<\/span><span style=\"font-weight: 400\"> of January. <\/span><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">LunarweekEnd(date[, period_no[, first_week_day]])<\/pre>\n<p><span style=\"font-weight: 400\">Where,<\/span><span style=\"font-weight: 400\"> date<\/span><span style=\"font-weight: 400\"> is the date you want to evaluate and want the lunar week end for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is the period offset i.e. if the value is 0 then the week end of the week given in the <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is returned, but, a negative value will consider a preceding lunar week and a positive value will consider the succeeding lunar week to return the date for.<\/span><\/p>\n<p><span style=\"font-weight: 400\">First_week_day <\/span><span style=\"font-weight: 400\">sets the first day of the week. Different integers correspond to different week days like 0 for Monday, 1 for Tuesday, 2 for Wednesday, 3 for Thursday, 4 for Friday, 5 for Saturday and 6 for Sunday. <\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>For example,<\/strong> <\/span><\/p>\n<p><span style=\"font-weight: 400\">lunarweekstart(&#8217;12\/01\/2017&#8242;)<\/span><span style=\"font-weight: 400\"> returns 14\/01\/2017 23:59:59 as the end date of the lunar week corresponding to the given date<\/span><\/p>\n<h3><span style=\"font-weight: 400\">xviii. Lunarweekname<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the year and the number of week corresponding to the week given in the date provided as input. <\/span><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">LunarWeekName(date [, period_no[, first_week_day]])<\/pre>\n<p><span style=\"font-weight: 400\">Where,<\/span><span style=\"font-weight: 400\"> date<\/span><span style=\"font-weight: 400\"> is the date you want to evaluate and want the lunar week name for. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is the period offset i.e. if the value is 0 then the week name of the week given in the <\/span><span style=\"font-weight: 400\">date<\/span><span style=\"font-weight: 400\"> is returned, but, a negative value will consider a preceding lunar week and a positive value will consider the succeeding lunar week to return the date for.<\/span><\/p>\n<p><span style=\"font-weight: 400\">First_week_day <\/span><span style=\"font-weight: 400\">sets the first day of the week. Different integers correspond to different week days like 0 for Monday, 1 for Tuesday, 2 for Wednesday, 3 for Thursday, 4 for Friday, 5 for Saturday and 6 for Sunday.<\/span><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-day-numbering-functions\/\">Do you know about Qlik Sense Day Numbering Functions<\/a><\/strong><\/p>\n<p><span style=\"font-weight: 400\"><strong>For example,<\/strong> <\/span><\/p>\n<p><span style=\"font-weight: 400\">lunarweekstart(&#8217;28\/03\/2012&#8242;)<\/span><span style=\"font-weight: 400\"> returns 2012\/14 as the year and number of the lunar week corresponding to the given date.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">xix. Daystart<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the start of the day evaluated to the first millisecond corresponding to the time and date of the timestamp at a specific time.<\/span><\/p>\n<p>You must read &#8211; Qlik Sense Day Numbering F<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">DayStart(time[, [period_no[, day_start]])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">time<\/span><span style=\"font-weight: 400\"> is the timestamp which will be evaluated.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is an integer value which sets the offset period. If the value is 0 then then we will evaluate the time and date provided as input. But, if the value is negative, such as -1, then preceding days are taken and if the value is 1, then succeeding days are taken up for evaluation.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Day_start<\/span><span style=\"font-weight: 400\"> is a fraction value which indicates time at which you want a new day to start. By default, the value sets a 12:00 midnight. <\/span><\/p>\n<p><strong>For example,<\/strong><\/p>\n<p><span style=\"font-weight: 400\">Daystart(28\/03\/2017 16:45:00)<\/span><span style=\"font-weight: 400\"> returns <\/span><span style=\"font-weight: 400\">29\/03\/2017 00:00:00<\/span><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Daystart(10\/12\/2017 22:30:20)<\/span><span style=\"font-weight: 400\"> returns <\/span><span style=\"font-weight: 400\">11\/12\/2017 00:00:00<\/span><span style=\"font-weight: 400\"> as the start of the day. <\/span><\/p>\n<h3><span style=\"font-weight: 400\">xx. Dayend \u00a0<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the end of the day evaluated to the last millisecond corresponding to the time and date of the timestamp at a specific time. <\/span><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">DayEnd(time[, [period_no[, day_start]])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">time<\/span><span style=\"font-weight: 400\"> is the timestamp which will be evaluated.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is an integer value which sets the offset period. If the value is 0 then then the time and date provided as input will be evaluated. But, if the value is negative, such as -1, then preceding days are taken and if the value is 1, then succeeding days are taken up for evaluation.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Day_start<\/span><span style=\"font-weight: 400\"> is a fraction value which indicates time at which you want a new day to start. By default, the value is set a 12:00 midnight. <\/span><\/p>\n<p><strong>For example,<\/strong><\/p>\n<p><span style=\"font-weight: 400\">Dayend(28\/03\/2017 16:45:00)<\/span><span style=\"font-weight: 400\"> returns <\/span><span style=\"font-weight: 400\">29\/03\/2017 23:59:59<\/span><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Dayend(10\/12\/2017 22:30:20)<\/span><span style=\"font-weight: 400\"> returns <\/span><span style=\"font-weight: 400\">11\/12\/2017 23:59:59<\/span><span style=\"font-weight: 400\"> as the end of the day. <\/span><\/p>\n<h3><span style=\"font-weight: 400\">xxi. Dayname<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns the name of the day evaluated to the first millisecond corresponding to the time and date of the timestamp at a specific time.<\/span><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-formatting-functions\/\">Let&#8217;s discuss Qlik Sense Formatting Functions<\/a><\/strong><\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">DayName(time[, [period_no[, day_start]])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">time<\/span><span style=\"font-weight: 400\"> is the timestamp which will be evaluated.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Period_no<\/span><span style=\"font-weight: 400\"> is an integer value which sets the offset period. If the value is 0 then then we will evaluate the time and date provided as input. But, if the value is negative, such as -1, then we take preceding days and if the value is 1, then we take succeeding days for evaluation.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Day_start<\/span><span style=\"font-weight: 400\"> is a fraction value which indicates time at which you want a new day to start. By default, the value is set a 12:00 midnight. <\/span><\/p>\n<p><strong>For example,<\/strong><\/p>\n<p><span style=\"font-weight: 400\">Daystart(28\/03\/2017 16:45:00)<\/span><span style=\"font-weight: 400\"> returns <\/span><span style=\"font-weight: 400\">29\/03\/2017<\/span><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Daystart(10\/12\/2017 22:30:20)<\/span><span style=\"font-weight: 400\"> returns <\/span><span style=\"font-weight: 400\">11\/12\/2017<\/span><span style=\"font-weight: 400\"> as the name of the day.<\/span><\/p>\n<p>So, this was all in Qlik Sense Start and End Functions. Hope you liked our explanation.<\/p>\n<h2><span style=\"font-weight: 400\">2. Summary\u00a0<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Hence, we completed our tutorial of Qlik Sense Start and End Functions. Thus, these were all the important functions which we used in date and time related operations in the script. Learn them here and use them in the data load scripts of your <a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-app\/\"><strong>Qlik Sense apps<\/strong><\/a>. In case of any queries related to Qlik Sense Start and End Functions, drop your comments in the comment box below.<\/span><\/p>\n<p><strong>You must see &#8211;\u00a0<\/strong><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-time-zone-functions\/\">Qlik Sense Time Zone Function<\/a><\/strong><span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1641,&quot;href&quot;:&quot;https:\\\/\\\/www.qlik.com\\\/us\\\/products\\\/qlik-sense&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20250910054814\\\/https:\\\/\\\/www.qlik.com\\\/us\\\/products\\\/qlik-sense&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-09 14:59:04&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-12 19:36:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-16 00:14:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-19 05:16:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-22 07:28:18&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-25 14:15:00&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-29 02:13:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-01 05:49:02&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-04 07:22:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-07 08:15:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-11 13:51:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-14 16:21:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-19 02:44:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-22 03:03:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-25 11:06:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-28 12:37:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-01 00:15:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-04 05:47:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-07 12:47:20&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-10 15:45:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-13 17:01:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-16 17:50:31&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-20 06:42:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-23 09:55:01&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-26 10:25:41&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-01 16:39:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-05 05:06:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-08 11:22:30&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-11 13:38:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-14 19:24:16&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-18 01:36:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-21 23:13:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-25 01:59:39&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-29 13:02:13&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-04-01 13:05:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-04 14:23:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-07 17:56:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-10 21:58:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-14 04:26:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-17 06:08:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-20 07:37:20&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-23 09:28:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-27 07:37:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-30 08:39:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-04 07:49:58&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-07 09:05:20&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-10 12:55:16&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-13 15:31:27&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-17 20:04:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-21 03:24:04&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-25 05:12:13&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-28 09:09:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-01 06:19:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-04 09:38:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-07 13:53:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-10 23:30:00&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-14 12:40:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-17 13:15:26&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-20 15:32:13&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-23 15:36:41&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-27 02:26:45&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-30 05:49:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-03 06:52:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-06 08:01:28&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-09 09:19:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-12 20:23:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-16 04:57:34&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-07-16 04:57:34&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Earlier we discussed Qlik Sense Functions such as color, conditional, mapping functions etc. Today, we will see Qlik Sense Start and End Functions. These Start and End Functions are a type of date and&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":45791,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17408],"tags":[17939,17940,17938],"class_list":["post-45790","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qlik-sense-tutorials","tag-qlik-sense-end-functions","tag-qlik-sense-start-and-end-functions","tag-qlik-sense-start-functions"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Qlik Sense Start and End Functions with Example - DataFlair<\/title>\n<meta name=\"description\" content=\"Qlik Sense Start and End Functions - Quarter start, month start, year start, week start, quarter end, month end, year end, week end\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-start-and-end-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Qlik Sense Start and End Functions with Example - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Qlik Sense Start and End Functions - Quarter start, month start, year start, week start, quarter end, month end, year end, week end\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/qlik-sense-start-and-end-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-17T05:28:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-12-18T09:24:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/Qlik-Sense-Start-and-End-Functions.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"17 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Qlik Sense Start and End Functions with Example - DataFlair","description":"Qlik Sense Start and End Functions - Quarter start, month start, year start, week start, quarter end, month end, year end, week end","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:\/\/data-flair.training\/blogs\/qlik-sense-start-and-end-functions\/","og_locale":"en_US","og_type":"article","og_title":"Qlik Sense Start and End Functions with Example - DataFlair","og_description":"Qlik Sense Start and End Functions - Quarter start, month start, year start, week start, quarter end, month end, year end, week end","og_url":"https:\/\/data-flair.training\/blogs\/qlik-sense-start-and-end-functions\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-12-17T05:28:57+00:00","article_modified_time":"2018-12-18T09:24:29+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/Qlik-Sense-Start-and-End-Functions.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"17 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-start-and-end-functions\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-start-and-end-functions\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"Qlik Sense Start and End Functions with Example","datePublished":"2018-12-17T05:28:57+00:00","dateModified":"2018-12-18T09:24:29+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-start-and-end-functions\/"},"wordCount":3161,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-start-and-end-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/Qlik-Sense-Start-and-End-Functions.jpg","keywords":["Qlik Sense End Functions","Qlik Sense Start and End Functions","Qlik Sense Start Functions"],"articleSection":["Qlik Sense Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/qlik-sense-start-and-end-functions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-start-and-end-functions\/","url":"https:\/\/data-flair.training\/blogs\/qlik-sense-start-and-end-functions\/","name":"Qlik Sense Start and End Functions with Example - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-start-and-end-functions\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-start-and-end-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/Qlik-Sense-Start-and-End-Functions.jpg","datePublished":"2018-12-17T05:28:57+00:00","dateModified":"2018-12-18T09:24:29+00:00","description":"Qlik Sense Start and End Functions - Quarter start, month start, year start, week start, quarter end, month end, year end, week end","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-start-and-end-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/qlik-sense-start-and-end-functions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-start-and-end-functions\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/Qlik-Sense-Start-and-End-Functions.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/Qlik-Sense-Start-and-End-Functions.jpg","width":1200,"height":628,"caption":"Qlik Sense Start and End Functions with Example"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-start-and-end-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Qlik Sense Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/qlik-sense-tutorials\/"},{"@type":"ListItem","position":3,"name":"Qlik Sense Start and End Functions with Example"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/45790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=45790"}],"version-history":[{"count":3,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/45790\/revisions"}],"predecessor-version":[{"id":45891,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/45790\/revisions\/45891"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/45791"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=45790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=45790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=45790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}