<?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 DATE/TIME IN SET ANALYSIS (NEWBIE QUESTION) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/DATE-TIME-IN-SET-ANALYSIS-NEWBIE-QUESTION/m-p/169936#M40540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm such a newbie that I realized that my set analysis is working just fine. I had a list box with another variable on it called period_year. I was using that. I couldn't figure out why my set analysis wasn't working until you had me make a list box with date_added_year. When I clicked on a field in the date_added_year it started working. Duh! It makes sense because how's it gonna know if you don't click on it?&lt;/P&gt;&lt;P&gt;Thanks again! I've spent an hour on this and it was something stupid. LOL! Have a good day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Mar 2011 20:16:15 GMT</pubDate>
    <dc:creator>provie98</dc:creator>
    <dc:date>2011-03-18T20:16:15Z</dc:date>
    <item>
      <title>DATE/TIME IN SET ANALYSIS (NEWBIE QUESTION)</title>
      <link>https://community.qlik.com/t5/QlikView/DATE-TIME-IN-SET-ANALYSIS-NEWBIE-QUESTION/m-p/169934#M40538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all, I'm new to Qlikview. I'm not a programmer and at all. I've take the developer I and developer II courses but I always get stuck on set analysis.&lt;/P&gt;&lt;P&gt;I'm trying to do a year to year comparision. I have a beginning date called PBEGDATE that is actually a date and a time with seconds. I'm trying to compare year over year. I have the following three variables that I got out of the Developer II book.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the Current Year:&lt;/P&gt;&lt;P&gt;Label:&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Only(Date_Added_Year)&lt;/P&gt;&lt;P&gt;Formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({$&amp;lt;Date_Added_Year={&lt;B&gt;&lt;I&gt;$(=Only(Date_Added_Year))&lt;/I&gt;&lt;/B&gt;}&amp;gt;} PROVISION_LOAN_LOSS_EXPENSE)&lt;/P&gt;&lt;P&gt;For the Previous Year:&lt;/P&gt;&lt;P&gt;Label:&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;Only(Date_Added_Year)-1&lt;/P&gt;&lt;P&gt;Formula:&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({$&amp;lt;Date_Added_Year={&lt;B&gt;&lt;I&gt;$(=Only(Date_Added_Year)-1)&lt;/I&gt;&lt;/B&gt;}&amp;gt;} PROVISION_LOAN_LOSS_EXPENSE)&lt;/P&gt;&lt;P&gt;For the Year to Year comparison:&lt;/P&gt;&lt;P&gt;Label&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;Only(Date_Added_Year) &amp;amp; ' vs ' &amp;amp; (Only(Date_Added_Year)-1)&lt;/P&gt;&lt;P&gt;Formula:&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Date_Added_Year={&lt;I&gt;&lt;STRONG&gt;$(=Only(Date_Added_Year))&lt;/STRONG&gt;&lt;/I&gt;}&amp;gt;} PROVISION_LOAN_LOSS_EXPENSE)&lt;STRONG&gt;)&lt;/STRONG&gt; -&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;STRONG&gt;sum&lt;/STRONG&gt;({$&amp;lt;Date_Added_Year={&lt;I&gt;$(=Only(Date_Added_Year)-1)&lt;/I&gt;&lt;STRONG&gt;}&amp;gt;}&lt;/STRONG&gt; PROVISION_LOAN_LOSS_EXPENSE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is based on my formulas, do you have to format or change my original date to show only a date and not include the time? If so, how do I go about doing that?&lt;/P&gt;&lt;P&gt;Thanks for all your help. I'm hoping a year or two, I won't be a newbie at this. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;STRONG&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My question is based on my formulas, do you have to format or change my original date to show only a date and not include the time? If so, how do I go about doing that?&lt;/P&gt;&lt;P&gt;Thanks for all your help. I'm hoping a year or two, I won't be a newbie at this. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 20:05:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DATE-TIME-IN-SET-ANALYSIS-NEWBIE-QUESTION/m-p/169934#M40538</guid>
      <dc:creator>provie98</dc:creator>
      <dc:date>2011-03-18T20:05:24Z</dc:date>
    </item>
    <item>
      <title>DATE/TIME IN SET ANALYSIS (NEWBIE QUESTION)</title>
      <link>https://community.qlik.com/t5/QlikView/DATE-TIME-IN-SET-ANALYSIS-NEWBIE-QUESTION/m-p/169935#M40539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, welcome to QlikView and to QlikCommunity!&lt;/P&gt;&lt;P&gt;If you used the actual Dates in your Set Analsys, then - yes, you'd have to format the dates in a very specific way to make the Set Analysis condition work. However, since you are using Years (if that's truly the case), there shouldn't be any need in any reformatting.&lt;/P&gt;&lt;P&gt;In order to be sure, create a List Box and show the contents of the field "Date_Added_Year" - do you see years or timestamps?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 20:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DATE-TIME-IN-SET-ANALYSIS-NEWBIE-QUESTION/m-p/169935#M40539</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-03-18T20:11:22Z</dc:date>
    </item>
    <item>
      <title>DATE/TIME IN SET ANALYSIS (NEWBIE QUESTION)</title>
      <link>https://community.qlik.com/t5/QlikView/DATE-TIME-IN-SET-ANALYSIS-NEWBIE-QUESTION/m-p/169936#M40540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm such a newbie that I realized that my set analysis is working just fine. I had a list box with another variable on it called period_year. I was using that. I couldn't figure out why my set analysis wasn't working until you had me make a list box with date_added_year. When I clicked on a field in the date_added_year it started working. Duh! It makes sense because how's it gonna know if you don't click on it?&lt;/P&gt;&lt;P&gt;Thanks again! I've spent an hour on this and it was something stupid. LOL! Have a good day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 20:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DATE-TIME-IN-SET-ANALYSIS-NEWBIE-QUESTION/m-p/169936#M40540</guid>
      <dc:creator>provie98</dc:creator>
      <dc:date>2011-03-18T20:16:15Z</dc:date>
    </item>
    <item>
      <title>DATE/TIME IN SET ANALYSIS (NEWBIE QUESTION)</title>
      <link>https://community.qlik.com/t5/QlikView/DATE-TIME-IN-SET-ANALYSIS-NEWBIE-QUESTION/m-p/169937#M40541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, yes, - the problem was in the use of function only() - it will ONLY return a value when ONLY one value is available...&lt;/P&gt;&lt;P&gt;From this perspective, max() could work better &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 20:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DATE-TIME-IN-SET-ANALYSIS-NEWBIE-QUESTION/m-p/169937#M40541</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-03-18T20:19:29Z</dc:date>
    </item>
  </channel>
</rss>

