<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Need expression for 1 year data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-expression-for-1-year-data/m-p/997395#M650833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load Login_Date,User_ID,User_name&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From (./Login.qvd)(qvd)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where&amp;nbsp; Login_Date &amp;lt;= Today() and Login_Date &amp;gt;= Addyears(Today(), -1);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This will load only those records which are in the last year from current date. i.e, 26-Aug-2104 to 26-Aug-2015.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If you have master table for users then you can load those users detials.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;InActiveUser:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;User_ID AS InActiveUserID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;User_Name AS &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;InActiveUser&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from (Users.qvd) (qvd)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE NOT Exists(User_ID);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Now if you use below expression you will get the inactive count&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count(Distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;InActiveUserID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps you.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2015 07:46:27 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-08-26T07:46:27Z</dc:date>
    <item>
      <title>Need expression for 1 year data</title>
      <link>https://community.qlik.com/t5/QlikView/Need-expression-for-1-year-data/m-p/997393#M650831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is given below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to show list of user , who have not logged in in the portal from 1 year from there last login . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fields are Login_Date, User_ID,User_name &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Login_Date,User_ID,User_name&lt;/P&gt;&lt;P&gt;From (./Login.qvd)(qvd)&lt;/P&gt;&lt;P&gt;where&amp;nbsp; Login_Date &amp;lt;= Today() and Login_Date &amp;gt;= Addyears(Today()-1) &lt;/P&gt;&lt;P&gt;NotExist(User_ID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KIndly suggest how to do this equation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 07:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-expression-for-1-year-data/m-p/997393#M650831</guid>
      <dc:creator>qliklearnervir</dc:creator>
      <dc:date>2015-08-26T07:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need expression for 1 year data</title>
      <link>https://community.qlik.com/t5/QlikView/Need-expression-for-1-year-data/m-p/997394#M650832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest the following order&lt;/P&gt;&lt;P&gt;1) load your login data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LogTable:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt; Login_Date,User_ID&lt;/P&gt;&lt;P&gt;From (./Login.qvd)(qvd)&lt;/P&gt;&lt;P&gt;where&amp;nbsp; Login_Date &amp;lt;= Today() and Login_Date &amp;gt;= Addyears(Today()-1) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;InActiveUser:&lt;/P&gt;&lt;P&gt;noconcatenate Load&lt;/P&gt;&lt;P&gt;User_ID,&lt;/P&gt;&lt;P&gt;User_Name&lt;/P&gt;&lt;P&gt;from (userdata.qvd)&lt;/P&gt;&lt;P&gt;where not exists(User_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you load your user earlier, than you need to rename&amp;nbsp; the User_ID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 07:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-expression-for-1-year-data/m-p/997394#M650832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-26T07:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need expression for 1 year data</title>
      <link>https://community.qlik.com/t5/QlikView/Need-expression-for-1-year-data/m-p/997395#M650833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load Login_Date,User_ID,User_name&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From (./Login.qvd)(qvd)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where&amp;nbsp; Login_Date &amp;lt;= Today() and Login_Date &amp;gt;= Addyears(Today(), -1);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This will load only those records which are in the last year from current date. i.e, 26-Aug-2104 to 26-Aug-2015.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If you have master table for users then you can load those users detials.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;InActiveUser:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;User_ID AS InActiveUserID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;User_Name AS &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;InActiveUser&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from (Users.qvd) (qvd)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE NOT Exists(User_ID);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Now if you use below expression you will get the inactive count&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count(Distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;InActiveUserID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps you.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 07:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-expression-for-1-year-data/m-p/997395#M650833</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-08-26T07:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need expression for 1 year data</title>
      <link>https://community.qlik.com/t5/QlikView/Need-expression-for-1-year-data/m-p/997396#M650834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there 1 more trick is there that i have to generate username and ids:&lt;/P&gt;&lt;P&gt;(1) track the calculation from user's last login date&lt;/P&gt;&lt;P&gt;(2) from last login date&amp;nbsp; to till 1 year user don't have any login activity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;means in between our range like &amp;lt;= TOday() and &amp;gt;=TOday()-1 , we have to find out those user list who have not login from there last login in this time period.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 07:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-expression-for-1-year-data/m-p/997396#M650834</guid>
      <dc:creator>qliklearnervir</dc:creator>
      <dc:date>2015-08-26T07:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need expression for 1 year data</title>
      <link>https://community.qlik.com/t5/QlikView/Need-expression-for-1-year-data/m-p/997397#M650835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you attach sample file then it would be easier to understand the data and give the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-7538"&gt;Qlik Community Tip: Posting Successful Discussion Threads&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check above link, it helps you in getting the answers faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 08:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-expression-for-1-year-data/m-p/997397#M650835</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-08-26T08:01:13Z</dc:date>
    </item>
  </channel>
</rss>

