

{"id":41772,"date":"2018-11-14T17:33:53","date_gmt":"2018-11-14T12:03:53","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=41772"},"modified":"2018-11-14T17:33:53","modified_gmt":"2018-11-14T12:03:53","slug":"qlik-sense-in-function","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/qlik-sense-in-function\/","title":{"rendered":"Qlik Sense In Function With Syntax and Example"},"content":{"rendered":"<h2><span style=\"font-weight: 400\">1. Objective<\/span><\/h2>\n<p><span style=\"font-weight: 400\">In our last Qlik Sense Tutorial, we discussed <a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-financial-functions\/\"><strong>Qlik Sense Financial Functions<\/strong><\/a>. Today, we will see Qlik Sense In Function. Basically, we use the Qlik Sense In Function to look for or evaluate dates falling in a certain year, month or quarter. Usually, we use such functions in financial matters and so instead of considering a normal year, we consider a fiscal year. Fiscal years for different countries are different, some start from the month of April, some in the month of October etc.<\/span><\/p>\n<p>So, let&#8217;s start Qlik Sense In Function Tutorial.<\/p>\n<div id=\"attachment_41820\" style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-In-Function-01.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-41820\" class=\"size-full wp-image-41820\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-In-Function-01.jpg\" alt=\"Qlik Sense In Function\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-In-Function-01.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-In-Function-01-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-In-Function-01-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-In-Function-01-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-In-Function-01-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-In-Function-01-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><p id=\"caption-attachment-41820\" class=\"wp-caption-text\">Qlik Sense In Function With Syntax and Example<\/p><\/div>\n<h2>2. Qlik Sense In Function<\/h2>\n<p>Following are the Qlik\u00a0Sense In Function, let&#8217;s discuss them in detail &#8211;<\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/trigonometric-and-hyperbolic-functions\/\">Have a look at Qlik Sense\u00a0Trigonometric and Hyperbolic Functions<\/a><\/strong><\/p>\n<h3><span style=\"font-weight: 400\">i. inyear() function <\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns True if the timestamp contains the same year as mentioned in base_date. The data type returned by this function is Boolean. <\/span><\/p>\n<p><strong>The syntax of Qlik Sense inyear function:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">InYear(timestamp,base_date,period_no[,first_month_of_year])<\/pre>\n<p><span style=\"font-weight: 400\">Where <\/span><span style=\"font-weight: 400\">timestamp<\/span><span style=\"font-weight: 400\"> is the recorded date by your system.<\/span><\/p>\n<p><span style=\"font-weight: 400\">base_date<\/span><span style=\"font-weight: 400\"> is the date entered based on which the year in timestamp is evaluated. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Using <\/span><span style=\"font-weight: 400\">period_no<\/span><span style=\"font-weight: 400\"> you can set an offset for the year. If its value is 0 then we can evaluate the current year and look for in the timestamp. But if it is positive then a year after that mentioned in the timestamp is taken and if it is a negative value, then a year previous to the that of timestamp is evaluated. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Through the parameter <\/span><span style=\"font-weight: 400\">first_month_of_year<\/span><span style=\"font-weight: 400\"> you can set the month from which the respective year will start. <\/span><\/p>\n<p><span style=\"font-weight: 400\">For example,<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">inyear ('25\/01\/2017', '01\/01\/2017', 0)<\/pre>\n<p><span style=\"font-weight: 400\">will return True because the year in the base date is in the timestamp too. <\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">inyear ('25\/01\/2017', '01\/01\/2018', 0)<\/pre>\n<p><span style=\"font-weight: 400\">returns False because the two dates don\u2019t match.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">inyear ('25\/01\/2017', '01\/01\/2017', -1)<\/pre>\n<p><span style=\"font-weight: 400\">returns False because -1 shows that the year in the base date should a year previous to that of the timestamp.<\/span><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-mathematical-functions\/\">Do you know about Qlik Sense Mathematical Functions<\/a><\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">inyear ('25\/01\/2017', '01\/01\/2016', -1)<\/pre>\n<p>returns True because the year in base date is one year previous to the timestamp\u2019s year.<\/p>\n<h3><span style=\"font-weight: 400\">ii. inyeartodate() function <\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns True if the year in the timestamp falls in the year given in the base date. The data type is Boolean as the results will return as True (-1) and False (0). <\/span><\/p>\n<p><strong>The syntax of Qlik Sense inyeartodate function:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">InYearToDate(timestamp,base_date,period_no[,first_month_of_year])<\/pre>\n<p><span style=\"font-weight: 400\">Where <\/span><span style=\"font-weight: 400\">timestamp<\/span><span style=\"font-weight: 400\"> is the recorded date by your system.<\/span><\/p>\n<p><span style=\"font-weight: 400\">base_date<\/span><span style=\"font-weight: 400\"> is the date entered based on which the year in timestamp is evaluated. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Using <\/span><span style=\"font-weight: 400\">period_no<\/span><span style=\"font-weight: 400\"> you can set an offset for the year. If its value is 0 then we can evaluate the current year and look for in the timestamp. But if it is positive then a year after that mentioned in the timestamp is taken and if it is a negative value, then a year previous to the that of timestamp is evaluated. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Through the parameter <\/span><span style=\"font-weight: 400\">first_month_of_year<\/span><span style=\"font-weight: 400\"> you can set the month from which the respective year will start. If you do not want the year to start from January then, take integer values from 2 to 12 for February to January respectively. <\/span><\/p>\n<p><span style=\"font-weight: 400\">For example, in the code given below, invoice dates have been loaded and using the inyeartodate function, we want to check whether these dates fall within a fiscal year staring from 01\/05\/2017 and ending on 31\/01\/2018. <\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">TempTable:\r\nLOAD RecNo() as InvID, * Inline [\r\nInvoiceDate\r\n28\/03\/2017\r\n10\/12\/2017\r\n5\/2\/2018\r\n31\/3\/2018\r\n19\/5\/2018\r\n15\/9\/2018\r\n11\/12\/2018\r\n2\/3\/2019\r\n14\/5\/2019\r\n13\/6\/2019\r\n];\r\nInvoiceData:\r\nLOAD *,\r\nInYearToDate(InvDate, '31\/01\/2018', 0, 4) AS FiscalYear\r\nResident TempTable;\r\nDrop table TempTable;<\/pre>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-logical-functions\/\">Let&#8217;s revise Qlik Sense Logical Functions<\/a><\/strong><\/p>\n<p><span style=\"font-weight: 400\">In the resultant table you will get True(-1) if the date falls in the given fiscal year and False(0) if it doesn\u2019t. <\/span><\/p>\n<table style=\"height: 634px\" width=\"575\">\n<tbody>\n<tr>\n<td><b>InvoiceDate<\/b><\/td>\n<td><b>FiscalYear<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">28\/03\/2017<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">10\/12\/2018<\/span><\/td>\n<td><span style=\"font-weight: 400\">-1(True)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">5\/02\/2018<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">31\/03\/2018<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">19\/05\/2018<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">15\/09\/2018<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">11\/12\/2018<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">2\/03\/2019<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">14\/05\/2019<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">13\/06\/2019<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span style=\"font-weight: 400\">iii. inquarter() function <\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns True if the year in the timestamp lies in the quarter in which the year of base date falls. <\/span><\/p>\n<p><strong>The syntax of Qlik Sense inquarter function:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">InQuarter(timestamp,base_date,period_no[,first_month_of_year])<\/pre>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">timestamp<\/span><span style=\"font-weight: 400\"> is the recorded date by your system.<\/span><\/p>\n<p><span style=\"font-weight: 400\">base_date<\/span><span style=\"font-weight: 400\"> is the date entered based on which the year in timestamp is evaluated. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Using <\/span><span style=\"font-weight: 400\">period_no<\/span><span style=\"font-weight: 400\"> you can set an offset for the year. If its value is 0 then we can evaluate the current year and look for in the timestamp. But if it is positive then we take a year after that in the timestamp and if it is a negative value, then we evaluate a year previous to the that of timestamp.<br \/>\n<\/span><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-mapping-function\/\">Do you know about Qlik Sense Mapping Functions<\/a><\/strong><\/p>\n<p><span style=\"font-weight: 400\">Through the parameter <\/span><span style=\"font-weight: 400\">first_month_of_year<\/span><span style=\"font-weight: 400\"> you can set the month from which the respective year will start. If you do not want the year to start from January then, take integer values from 2 to 12 for February to January respectively.<\/span><\/p>\n<p><span style=\"font-weight: 400\">For example, in the script shown below, we have loaded some invoice dates and want to check using the inquarter function that which dates falls in the quarter same as the base date 31\/01\/2018 of the fiscal year starting from May 1<\/span><span style=\"font-weight: 400\">st<\/span><span style=\"font-weight: 400\"> 2017. <\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">TempTable:\r\nLOAD RecNo() as InvID, * Inline [\r\nInvoiceDate\r\n28\/03\/2017\r\n10\/12\/2017\r\n5\/2\/2018\r\n31\/3\/2018\r\n19\/5\/2018\r\n15\/9\/2018\r\n11\/12\/2018\r\n2\/3\/2019\r\n14\/5\/2019\r\n13\/6\/2019\r\n];\r\nInvoiceData:\r\nLOAD *,\r\nInYearToDate(InvDate,'31\/01\/2018',0,4)AS FiscalYearQuarter\r\nResident TempTable;\r\nDrop table TempTable;\r\n<\/pre>\n<p>The table given below shows the results of the evaluation.<\/p>\n<table style=\"height: 630px\" width=\"498\">\n<tbody>\n<tr>\n<td><b>InvoiceDate<\/b><\/td>\n<td><b>FiscalYearQuarter<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">28\/03\/2017<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">10\/12\/2018<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">5\/02\/2018<\/span><\/td>\n<td><span style=\"font-weight: 400\">-1(True)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">31\/03\/2018<\/span><\/td>\n<td><span style=\"font-weight: 400\">-1(True)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">19\/05\/2018<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">15\/09\/2018<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">11\/12\/2018<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">2\/03\/2019<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">14\/05\/2019<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">13\/06\/2019<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span style=\"font-weight: 400\">iv. inquartertodate() function <\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns True if the year in the timestamp, falls in the quarter of the date shown in the base date.<\/span><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-line-chart\/\">Let&#8217;s take a tour to Qlik Sense Line Chart<\/a><\/strong><\/p>\n<p><strong>The syntax of inquartertodate function:<\/strong><\/p>\n<p><b>InQuarterToDate(<\/b><span style=\"font-weight: 400\">timestamp, base_date, period_no [, first_month_of_year]<\/span><b>)<\/b><\/p>\n<p><span style=\"font-weight: 400\">Where, <\/span><span style=\"font-weight: 400\">timestamp<\/span><span style=\"font-weight: 400\"> is the recorded date by your system.<\/span><\/p>\n<p><span style=\"font-weight: 400\">base_date<\/span><span style=\"font-weight: 400\"> is the date entered based on which the year in timestamp is evaluated. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Using <\/span><span style=\"font-weight: 400\">period_no<\/span><span style=\"font-weight: 400\"> you can set an offset for the year. If its value is 0 then we can evaluate the current year and look\u00a0for in the timestamp. But if it is positive then we take a year after that in the timestamp and if it is a negative value, then we evaluate a year previous to the that of timestamp.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Through the parameter <\/span><span style=\"font-weight: 400\">first_month_of_year<\/span><span style=\"font-weight: 400\"> you can set the month from which the respective year will start. If you do not want the year to start from January then, take integer values from 2 to 12 for February to January respectively. <\/span><\/p>\n<p><span style=\"font-weight: 400\">For instance, in the piece of code loaded below have the invoice dates which will be checked by the function for they fall into the fourth quarter (here the fiscal year starts from May 1<\/span><span style=\"font-weight: 400\">st<\/span><span style=\"font-weight: 400\"> 2017, which makes May, June, July the first quarter) of the year or not. The base date is set \u00a0on 28\/02\/2018.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">TempTable:\r\nLOAD RecNo() as InvID, * Inline [\r\nInvoiceDate\r\n28\/03\/2017\r\n10\/12\/2017\r\n5\/2\/2018\r\n31\/3\/2018\r\n19\/5\/2018\r\n15\/9\/2018\r\n11\/12\/2018\r\n2\/3\/2019\r\n14\/5\/2019\r\n13\/6\/2019\r\n];\r\nInvoiceData:\r\nLOAD *,\r\nInYearToDate(InvDate,'28\/02\/2018',0,4)AS FiscyearQuarterdate\r\nResident TempTable;\r\nDrop table TempTable;<\/pre>\n<p><span style=\"font-weight: 400\">The resultant table gives only the date 5\/02\/2018 which fulfils the criterion. <\/span><\/p>\n<table style=\"height: 643px\" width=\"436\">\n<tbody>\n<tr>\n<td><b>InvoiceDate<\/b><\/td>\n<td><b>FiscyearQuarterdate<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">28\/03\/2017<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">10\/12\/2018<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">5\/02\/2018<\/span><\/td>\n<td><span style=\"font-weight: 400\">-1(True)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">31\/03\/2018<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">19\/05\/2018<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">15\/09\/2018<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">11\/12\/2018<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">2\/03\/2019<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">14\/05\/2019<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">13\/06\/2019<\/span><\/td>\n<td><span style=\"font-weight: 400\">0(False)<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-mapping-function\/\">Have a look at Qlik Sense Mapping Functions<\/a><\/strong><\/p>\n<h3><span style=\"font-weight: 400\">v. inmonth() function<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns True or -1, if the month in the timestamp is found same as that in the given base date. <\/span><\/p>\n<p><strong>The syntax of inmonth functin in Qlik Sense:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">InMonth(timestamp,base_date,period_no[,first_month_of_year])<\/pre>\n<p><span style=\"font-weight: 400\">Where <\/span><span style=\"font-weight: 400\">timestamp<\/span><span style=\"font-weight: 400\"> is the recorded date by your system.<\/span><\/p>\n<p><span style=\"font-weight: 400\">base_date<\/span><span style=\"font-weight: 400\"> is the date entered based on which the year in timestamp is evaluated. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Using <\/span><span style=\"font-weight: 400\">period_no<\/span><span style=\"font-weight: 400\"> you can set an offset for the year. If its value is 0 then we can evaluate the current year and look for in the timestamp. But if it is positive then we take a year after that in the timestamp and if it is a negative value, then we evaluate a year previous to the that of timestamp.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The parameter <\/span><span style=\"font-weight: 400\">first_month_of_year<\/span><span style=\"font-weight: 400\"> is optional.<\/span><\/p>\n<p><span style=\"font-weight: 400\">For example, <\/span><\/p>\n<p><span style=\"font-weight: 400\">inmonth (&#8217;25\/01\/2018&#8242;, &#8217;01\/01\/2018&#8242;, 0)<\/span><span style=\"font-weight: 400\"> returns True because the months in timestamp and base date are the same. <\/span><\/p>\n<p><span style=\"font-weight: 400\">inmonth(&#8217;25\/01\/2018&#8242;, &#8217;01\/04\/2018&#8242;, 0)<\/span><span style=\"font-weight: 400\"> returns False because the months are different. <\/span><\/p>\n<h3><span style=\"font-weight: 400\">vi. inmonthtodate() function <\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function retrurns True if the date in the timestamp lies in the month same as that of the base date. <\/span><\/p>\n<p><strong>The syntax of Qlik Sense inmonthtodate function:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">InMonthToDate(timestamp, base_date, period_no)<\/pre>\n<p><span style=\"font-weight: 400\">Where <\/span><span style=\"font-weight: 400\">timestamp<\/span><span style=\"font-weight: 400\"> is the recorded date by your system.<\/span><\/p>\n<p><span style=\"font-weight: 400\">base_date<\/span><span style=\"font-weight: 400\"> is the date entered based on which the year in timestamp is evaluated. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Using <\/span><span style=\"font-weight: 400\">period_no<\/span><span style=\"font-weight: 400\"> you can set an offset for the year. If its value is 0 then we can evaluate the current year and look for in the timestamp. But if it is positive then we take a year after that in the timestamp and if it is a negative value, then we evaluate a year previous to the that of timestamp.<\/span><\/p>\n<p><span style=\"font-weight: 400\">For example, <\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">inmonthtodate (&#8217;25\/01\/2013&#8242;, &#8217;25\/01\/2013&#8242;, 0) <\/span><span style=\"font-weight: 400\">returns True because in both timestamp and basedate the months and days are same. <\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">inmonthtodate (&#8217;25\/01\/2013&#8242;, &#8217;24\/01\/2013&#8242;, 0)<\/span><span style=\"font-weight: 400\"> returns False because the dates are not same in both. <\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">inmonthtodate (&#8217;25\/01\/2013&#8242;, &#8217;28\/02\/2013&#8242;, -1)<\/span><span style=\"font-weight: 400\"> returns True because the period_No is set to be -1 which evaluates the month previous to what is given in the base date. Her, 02 is given in the base date but the expression is evaluated for 01 which matches it with the timestamp value.<\/span><\/li>\n<\/ul>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-exponential-and-logarithmic-functions\/\">Do you know about Qlik Sense\u00a0Exponential Functions<\/a><\/strong><\/p>\n<h3><span style=\"font-weight: 400\">vii. inmonths() function <\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns True if the month of the timestamp falls in the same month or within the same bi-month, quarter, tertial or half-year (six-months) as the base date falls in. <\/span><\/p>\n<p><strong>The syntax of inmonths function:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">InMonths(n_months, timestamp, base_date, period_no [, first_month_of_year])<\/pre>\n<p><span style=\"font-weight: 400\">Where <\/span><span style=\"font-weight: 400\">timestamp<\/span><span style=\"font-weight: 400\"> is the recorded date by your system.<\/span><\/p>\n<p><span style=\"font-weight: 400\">N_months <\/span><span style=\"font-weight: 400\">sets the month interval i.e. 1 for one month interval (inmonth()), 2 for bi-month, 3 for three month interval (inquarter()), 4 for tertial (four-month interval) and \u00a06 for half year or six month interval. <\/span><\/p>\n<p><span style=\"font-weight: 400\">base_date<\/span><span style=\"font-weight: 400\"> is the date entered based on which the year in timestamp is evaluated. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Using <\/span><span style=\"font-weight: 400\">period_no<\/span><span style=\"font-weight: 400\"> you can set an offset for the year. If its value is 0 then we can evaluate the current year and look for in the timestamp. But if it is positive then we take a year after that in the timestamp and if it is a negative value, then we evaluate a year previous to the that of timestamp.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Through the parameter <\/span><span style=\"font-weight: 400\">first_month_of_year<\/span><span style=\"font-weight: 400\"> you can set the month from which the respective year will start. If you do not want the year to start from January then, take integer values from 2 to 12 for February to January respectively. <\/span><\/p>\n<p><span style=\"font-weight: 400\">For example,<\/span><\/p>\n<p><span style=\"font-weight: 400\">inmonths(4, &#8217;25\/01\/2018&#8242;, &#8217;25\/04\/2018&#8242;, 0)<\/span><span style=\"font-weight: 400\"> returns True because the month interval is set at 4 and so the base date 25\/04\/2018 must lie between the time interval of four months i.e. 01\/01\/2018 to 30\/04\/2018. <\/span><\/p>\n<h3><span style=\"font-weight: 400\">viii. Inmonthstodate() function<\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns<\/span> <span style=\"font-weight: 400\">True if the month of the timestamp falls in the same month or within the same bi-month, quarter, tertial or half-year (six-months) as the last millisecond of base date falls in. \u00a0<\/span><\/p>\n<p><strong>The syntax of Qlik Sense inmonthtodate function :<\/strong><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-counter-functions\/\">Let&#8217;s revise Qlik Sense Counter Functions<\/a><\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">InMonths(n_months, timestamp, base_date, period_no[, first_month_of_year ])<\/pre>\n<p><span style=\"font-weight: 400\">Where <\/span><span style=\"font-weight: 400\">timestamp<\/span><span style=\"font-weight: 400\"> is the recorded date by your system.<\/span><\/p>\n<p><span style=\"font-weight: 400\">N_months <\/span><span style=\"font-weight: 400\">sets the month interval i.e. 1 for one month interval (inmonth()), 2 for bi-month, 3 for three month interval (inquarter()), 4 for tertial (four month interval) and \u00a06 for half year or six month interval. <\/span><\/p>\n<p><span style=\"font-weight: 400\">base_date<\/span><span style=\"font-weight: 400\"> is the date entered based on which the year in timestamp is evaluated. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Using <\/span><span style=\"font-weight: 400\">period_no<\/span><span style=\"font-weight: 400\"> you can set an offset for the year. If its value is 0 then we can evaluate the current year and look for in the timestamp. But if it is positive then we take a year after that in the timestamp and if it is a negative value, then we evaluate a year previous to the that of timestamp.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Through the parameter <\/span><span style=\"font-weight: 400\">first_month_of_year<\/span><span style=\"font-weight: 400\"> you can set the month from which the respective year will start. If you do not want the year to start from January then, take integer values from 2 to 12 for February to January respectively. <\/span><\/p>\n<p><span style=\"font-weight: 400\">For example,<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">inmonthstodate(4, &#8217;25\/01\/2013&#8242;, &#8217;25\/04\/2013&#8242;, 0)<\/span><span style=\"font-weight: 400\"> returns True because the date on timestamp falls on within the interval of four months. <\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">inmonthstodate(4, &#8217;26\/04\/2013&#8242;, &#8217;25\/04\/2006&#8242;, 0)<\/span><span style=\"font-weight: 400\"> returns False because the years are different and no period offset has been set. <\/span><\/li>\n<\/ul>\n<h3><span style=\"font-weight: 400\">ix. Inweek() function <\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns True if the date recorded in the timestamp falls in the same week as is given in the base date. <\/span><\/p>\n<p><strong>The syntax of Inweek function:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">InWeek(timestamp, base_date, period_no[, first_week_day])<\/pre>\n<p><span style=\"font-weight: 400\">Where <\/span><span style=\"font-weight: 400\">timestamp<\/span><span style=\"font-weight: 400\"> is the recorded date by your system.<\/span><\/p>\n<p><span style=\"font-weight: 400\">base_date<\/span><span style=\"font-weight: 400\"> is the date entered based on which the year in timestamp is evaluated. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Using <\/span><span style=\"font-weight: 400\">period_no<\/span><span style=\"font-weight: 400\"> you can set an offset for the year. If its value is 0 then we can evaluate the current year and look for in the timestamp. But if it is positive then a year after that mentioned in the timestamp is taken and if it is a negative value, then a year previous to the that of timestamp is evaluated. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Through the parameter <\/span><span style=\"font-weight: 400\">first_month_of_year<\/span><span style=\"font-weight: 400\"> you can set the month from which the respective year will start. If you do not want the year to start from January then, take integer values from 2 to 12 for February to January respectively.<\/span><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-conditional-functions\/\">Have a look at Qlik Sense Conditional Functions<\/a><\/strong><\/p>\n<p><span style=\"font-weight: 400\">For example,<\/span><\/p>\n<p><span style=\"font-weight: 400\">inweek (&#8216;5\/11\/2018&#8242;,&#8217;9\/11\/2018&#8217;,0) <\/span><span style=\"font-weight: 400\">returns True because both the dates fall in the same week. <\/span><\/p>\n<p><span style=\"font-weight: 400\">i<\/span><span style=\"font-weight: 400\">nweek (&#8217;12\/11\/2018&#8242;,&#8217;1\/11\/2018&#8242;,0)<\/span><span style=\"font-weight: 400\"> returns False because both the dates do not fall in the same week. <\/span><\/p>\n<h3><span style=\"font-weight: 400\">x. Inweektodate() function <\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns True if the date recorded in the timestamp falls in the same week as is given in the base date to the last millisecond of it. <\/span><\/p>\n<p><strong>The syntax of inweektodate function:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">InWeek(timestamp, base_date, period_no[, first_week_day])<\/pre>\n<p><span style=\"font-weight: 400\">Where <\/span><span style=\"font-weight: 400\">timestamp<\/span><span style=\"font-weight: 400\"> is the recorded date by your system.<\/span><\/p>\n<p><span style=\"font-weight: 400\">base_date<\/span><span style=\"font-weight: 400\"> is the date entered based on which the year in timestamp is evaluated. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Using <\/span><span style=\"font-weight: 400\">period_no<\/span><span style=\"font-weight: 400\"> you can set an offset for the year. If its value is 0 then we can evaluate the current year and look for in the timestamp. But if it is positive then we take a year after that in the timestamp and if it is a negative value, then we evaluate a year previous to the that of timestamp.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Through the parameter <\/span><span style=\"font-weight: 400\">first_month_of_year<\/span><span style=\"font-weight: 400\"> you can set the month from which the respective year will start. If you do not want the year to start from January then, take integer values from 2 to 12 for February to January respectively. <\/span><\/p>\n<p><span style=\"font-weight: 400\">For example,<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">inweek ('12\/01\/2006','12\/01\/2006',0)<\/pre>\n<p><span style=\"font-weight: 400\">returns True because both the dates fall in the same week. <\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">inweek ('12\/01\/2006','11\/11\/2018',0)<\/pre>\n<p><span style=\"font-weight: 400\">returns False because both the dates do not fall in the same week.<\/span><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/box-plot-in-qlik-sense\/\">Do you know about Qlik Sense\u00a0Box Plot<\/a><\/strong><\/p>\n<h3><span style=\"font-weight: 400\">xi. Inlunarweek() function <\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns True if the week in timestamp falls in the lunar week same as the base date. Lunar weeks are the weeks which start from 1<\/span><span style=\"font-weight: 400\">st<\/span><span style=\"font-weight: 400\"> of January as the first day of the week. <\/span><\/p>\n<p><strong>The syntax of inlunarweek function:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">InLunarWeek(timestamp,base_date,period_no[,first_week_day])<\/pre>\n<p><span style=\"font-weight: 400\">Where <\/span><span style=\"font-weight: 400\">timestamp<\/span><span style=\"font-weight: 400\"> is the recorded date by your system.<\/span><\/p>\n<p><span style=\"font-weight: 400\">base_date<\/span><span style=\"font-weight: 400\"> is the date entered based on which the year in timestamp is evaluated. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Using <\/span><span style=\"font-weight: 400\">period_no<\/span><span style=\"font-weight: 400\"> you can set an offset for the year. If its value is 0 then we can evaluate the current year and look for in the timestamp. But if it is positive then we take a year after that in the timestamp and if it is a negative value, then we evaluate a year previous to the that of timestamp.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Through the parameter <\/span><span style=\"font-weight: 400\">first_month_of_year<\/span><span style=\"font-weight: 400\"> you can set the month from which the respective year will start. If you do not want the year to start from January then, take integer values from 2 to 12 for February to January respectively. <\/span><\/p>\n<p><span style=\"font-weight: 400\">inlunarweek(&#8217;12\/01\/2017&#8242;,&#8217;14\/01\/2017&#8242;,0)<\/span><span style=\"font-weight: 400\"> returns True. Because the value of timestamp, 12\/01\/2013 falls in the week 08\/01\/2017 to 14\/01\/2017.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">xii. Inlunarweektodate() function <\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns True if the week in timestamp falls in the lunar week same as and upto the base date and to the last millisecond of it. Lunar weeks are the weeks which start from 1<\/span><span style=\"font-weight: 400\">st<\/span><span style=\"font-weight: 400\"> of January as the first day of the week. <\/span><\/p>\n<p><strong>The syntax of Inlunarweektodate:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">InLunarWeek(timestamp,base_date,period_no[,first_week_day])<\/pre>\n<p><span style=\"font-weight: 400\">Where <\/span><span style=\"font-weight: 400\">timestamp<\/span><span style=\"font-weight: 400\"> is the recorded date by your system.<\/span><\/p>\n<p><span style=\"font-weight: 400\">base_date<\/span><span style=\"font-weight: 400\"> is the date entered based on which the year in timestamp is evaluated. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Using <\/span><span style=\"font-weight: 400\">period_no<\/span><span style=\"font-weight: 400\"> you can set an offset for the year. If its value is 0 then we can evaluate the current year and look for in the timestamp. But if it is positive then we take a year after that in the timestamp and if it is a negative value, then we evaluate a year previous to the that of timestamp. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Through the parameter <\/span><span style=\"font-weight: 400\">first_month_of_year<\/span><span style=\"font-weight: 400\"> you can set the month from which the respective year will start. If you do not want the year to start from January then, take integer values from 2 to 12 for February to January respectively. <\/span><\/p>\n<p><span style=\"font-weight: 400\">inlunarweek(&#8217;12\/01\/2017&#8242;,&#8217;14\/01\/2017&#8242;,0)<\/span><span style=\"font-weight: 400\"> returns True. Because the value of timestamp, 12\/01\/2013 falls in the week 08\/01\/2017 to 14\/01\/2017.<\/span><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-pie-chart\/\">Let&#8217;s discuss Qlik Sense Pie Chart<\/a><\/strong><\/p>\n<h3><span style=\"font-weight: 400\">xiii. Inday() function <\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns True if the day in the timestamp lies in the base_timestamp too. <\/span><\/p>\n<p><strong>The syntax of Qlik sense Inday function:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">InDay(timestamp, base_timestamp, period_no[, day_start])<\/pre>\n<p><span style=\"font-weight: 400\">Where <\/span><span style=\"font-weight: 400\">timestamp<\/span><span style=\"font-weight: 400\"> is the time and date recorded by the system at a specific instant. <\/span><\/p>\n<p><span style=\"font-weight: 400\">base_timestamp<\/span><span style=\"font-weight: 400\"> is the time and date you want to evaluate against the timestamp.<\/span><\/p>\n<p><span style=\"font-weight: 400\">period_no<\/span><span style=\"font-weight: 400\"> helps you set an offset for the day which you need to evaluate. You use 0 if you want to evaluate the day given in the base_timestamp. We use a negative value (such as -1, -2) to consider the days previous to that of base_timestamp and a positive value considers the days after or succeeding those given in the base_timestamp. <\/span><\/p>\n<p><span style=\"font-weight: 400\">From the <\/span><span style=\"font-weight: 400\">day_start<\/span><span style=\"font-weight: 400\"> parameter, you can set the time of when a day would start as a fraction value. Like, 0.125 for 3AM etc. You do this when you don\u2019t want to start a day at 12 midnight. <\/span><\/p>\n<p><span style=\"font-weight: 400\">For example, <\/span><\/p>\n<p><span style=\"font-weight: 400\">inday (&#8217;12\/01\/2017 12:23:00&#8242;, &#8217;12\/01\/2017 00:00:00&#8242;, 0)<\/span><span style=\"font-weight: 400\"> returns True because both the dates denote the same day. <\/span><\/p>\n<h3><span style=\"font-weight: 400\">xiv. Indaytotime() function <\/span><\/h3>\n<p><span style=\"font-weight: 400\">This function returns True if the day in the timestamp lies in the day part of the base_timestamp and that too to the last millisecond of the time until which the day doesn\u2019t change. <\/span><\/p>\n<p><strong>The syntax of indaytotime function:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">InDayToTime(timestamp, base_timestamp, period_no[, day_start])<\/pre>\n<p><span style=\"font-weight: 400\">Where <\/span><span style=\"font-weight: 400\">timestamp<\/span><span style=\"font-weight: 400\"> is the time and date recorded by the system at a specific instant. <\/span><\/p>\n<p><span style=\"font-weight: 400\">base_timestamp<\/span><span style=\"font-weight: 400\"> is the time and date you want to evaluate against the timestamp.<\/span><\/p>\n<p><span style=\"font-weight: 400\">period_no<\/span><span style=\"font-weight: 400\"> helps you set an offset for the day which you need to evaluate. We use 0 if we want to evaluate the day given in the base_timestamp. We use a negative value (such as -1, -2) to consider the days previous to that of base_timestamp and a positive value considers the days after or succeeding those given in the base_timestamp. <\/span><\/p>\n<p><span style=\"font-weight: 400\">From the <\/span><span style=\"font-weight: 400\">day_start<\/span><span style=\"font-weight: 400\"> parameter, you can set the time of when a day would start as a fraction value. Like, 0.125 for 3AM etc.\u00a0 We do this when we don\u2019t want to start a day at 12 midnight.<\/span><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/treemap-visualization\/\">Let&#8217;s revise Qlik Sense Treemap Visualization<\/a><\/strong><\/p>\n<p><span style=\"font-weight: 400\">For example, <\/span><\/p>\n<p><span style=\"font-weight: 400\">indaytotime (&#8217;12\/01\/2017 12:23:00&#8242;, &#8217;12\/01\/2017 23:59:00&#8242;, 0)<\/span><span style=\"font-weight: 400\"> returns True because the time in both the timestamps is for the same day.<\/span><\/p>\n<p>So, this was all in Qlik Sense In Function. Hope you like our explanation.<\/p>\n<h2><span style=\"font-weight: 400\">3. Conclusion <\/span><\/h2>\n<p><span style=\"font-weight: 400\">Hence, we discussed all the important Qlik Sense In Function. We use in function to search for time and date values.<\/span><\/p>\n<p>Still, if you have any query regarding Qlik Sense In Function, ask in the comment tab.<\/p>\n<p><strong>See also &#8211;\u00a0<\/strong><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/qlik-sense-capabilities\/\">Qlik Sense Capabilities<\/a><\/strong><\/p>\n<p><strong><a href=\"https:\/\/www.qlik.com\/us\/products\/qlik-sense\">Reference for Qlik Sense<\/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;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-07-12 20:23:54&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Objective In our last Qlik Sense Tutorial, we discussed Qlik Sense Financial Functions. Today, we will see Qlik Sense In Function. Basically, we use the Qlik Sense In Function to look for or&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":41820,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17408],"tags":[17637,17636],"class_list":["post-41772","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qlik-sense-tutorials","tag-in-function-in-qlik-sense","tag-qlik-sense-in-function"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Qlik Sense In Function With Syntax and Example - DataFlair<\/title>\n<meta name=\"description\" content=\"Qlik Sense In Function,inyear,inyeartodate, Inday, Inlunarweektodate,Inlunarweek, Inweektodate, inmonth, inquartertodate, Inweektodate\" \/>\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-in-function\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Qlik Sense In Function With Syntax and Example - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Qlik Sense In Function,inyear,inyeartodate, Inday, Inlunarweektodate,Inlunarweek, Inweektodate, inmonth, inquartertodate, Inweektodate\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/qlik-sense-in-function\/\" \/>\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-11-14T12:03:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-In-Function-01.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 In Function With Syntax and Example - DataFlair","description":"Qlik Sense In Function,inyear,inyeartodate, Inday, Inlunarweektodate,Inlunarweek, Inweektodate, inmonth, inquartertodate, Inweektodate","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-in-function\/","og_locale":"en_US","og_type":"article","og_title":"Qlik Sense In Function With Syntax and Example - DataFlair","og_description":"Qlik Sense In Function,inyear,inyeartodate, Inday, Inlunarweektodate,Inlunarweek, Inweektodate, inmonth, inquartertodate, Inweektodate","og_url":"https:\/\/data-flair.training\/blogs\/qlik-sense-in-function\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-11-14T12:03:53+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-In-Function-01.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-in-function\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-in-function\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"Qlik Sense In Function With Syntax and Example","datePublished":"2018-11-14T12:03:53+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-in-function\/"},"wordCount":3122,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-in-function\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-In-Function-01.jpg","keywords":["In... Function in Qlik Sense","Qlik Sense In... Function"],"articleSection":["Qlik Sense Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/qlik-sense-in-function\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-in-function\/","url":"https:\/\/data-flair.training\/blogs\/qlik-sense-in-function\/","name":"Qlik Sense In Function With Syntax and Example - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-in-function\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-in-function\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-In-Function-01.jpg","datePublished":"2018-11-14T12:03:53+00:00","description":"Qlik Sense In Function,inyear,inyeartodate, Inday, Inlunarweektodate,Inlunarweek, Inweektodate, inmonth, inquartertodate, Inweektodate","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-in-function\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/qlik-sense-in-function\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-in-function\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-In-Function-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/11\/Qlik-Sense-In-Function-01.jpg","width":1200,"height":628,"caption":"Qlik Sense In Function With Syntax and Example"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/qlik-sense-in-function\/#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 In Function With Syntax and 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\/41772","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=41772"}],"version-history":[{"count":4,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/41772\/revisions"}],"predecessor-version":[{"id":42061,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/41772\/revisions\/42061"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/41820"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=41772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=41772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=41772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}