<?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: IF and set analysis and time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis-and-time/m-p/1459861#M796345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Devarasu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jan 2018 18:30:24 GMT</pubDate>
    <dc:creator>alwayslearning</dc:creator>
    <dc:date>2018-01-05T18:30:24Z</dc:date>
    <item>
      <title>IF and set analysis and time</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis-and-time/m-p/1459857#M796341</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;I have a IF statement, which has an expression which sums and converts various time fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(if((Sum(Log_In_duration)/60)=0,' ' ( (SUM(Time)+SUM(Time2)+ ((sum(Time3)/3600)+sum(Time4)))/60)&lt;/P&gt;&lt;P&gt;/Sum([&lt;SPAN style="font-size: 13.3333px;"&gt;Log_In_duration&lt;/SPAN&gt;]/60)), '##0 %')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to the above formula which works as is, I need the formula to only return date specific data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a variable titled vcurrentweek from a field "DATE" and was looking to do a SET Analysis for current week and perform the above.&amp;nbsp; However I am getting various errors and hoped someone could help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis-and-time/m-p/1459857#M796341</guid>
      <dc:creator>alwayslearning</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: IF and set analysis and time</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis-and-time/m-p/1459858#M796342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be 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;&lt;STRONG&gt;=num(if((Sum(Log_In_duration)/60)=0,' ' ( (SUM({&amp;lt;DATE = {$(vcurrentweek)}&amp;gt;} Time)+SUM(&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;DATE = {$(vcurrentweek)}&amp;gt;} &lt;/STRONG&gt;Time2)+ ((sum(&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;DATE = {$(vcurrentweek)}&amp;gt;} &lt;/STRONG&gt;Time3)/3600)+sum(&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;DATE = {$(vcurrentweek)}&amp;gt;} &lt;/STRONG&gt;Time4)))/60)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;/Sum(&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;DATE = {$(vcurrentweek)}&amp;gt;} &lt;/STRONG&gt;[&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Log_In_duration&lt;/SPAN&gt;]/60)), '##0 %')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 17:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis-and-time/m-p/1459858#M796342</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-01-05T17:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: IF and set analysis and time</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis-and-time/m-p/1459859#M796343</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;Another simplified way u can try like below using set analysis&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Num(sum( {$&amp;lt;Log_In_duration={"=Sum(Log_In_duration)/60)=0"},Year={"$(=Max(Year))"},Week={$(vcurrentweek)}&amp;gt;} (Time2+(Time3/3600)+(Time4/60))/ (Log_In_duration/60) ),'#,##0%')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 18:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis-and-time/m-p/1459859#M796343</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2018-01-05T18:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: IF and set analysis and time</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis-and-time/m-p/1459860#M796344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfectly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Note:If anyone uses the code above in the future, there is a , missing before the false statement begins.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 18:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis-and-time/m-p/1459860#M796344</guid>
      <dc:creator>alwayslearning</dc:creator>
      <dc:date>2018-01-05T18:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: IF and set analysis and time</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis-and-time/m-p/1459861#M796345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Devarasu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 18:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis-and-time/m-p/1459861#M796345</guid>
      <dc:creator>alwayslearning</dc:creator>
      <dc:date>2018-01-05T18:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: IF and set analysis and time</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis-and-time/m-p/1459862#M796346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am correcting myself&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=num(if((Sum(Log_In_duration)/60)=0,' '&lt;SPAN style="color: #ff0000; font-size: 18pt;"&gt;,&lt;/SPAN&gt; ( (SUM({&amp;lt;DATE = {$(vcurrentweek)}&amp;gt;} Time)+SUM(&lt;STRONG style="font-style: inherit;"&gt;{&amp;lt;DATE = {$(vcurrentweek)}&amp;gt;} &lt;/STRONG&gt;Time2)+ ((sum(&lt;STRONG style="font-style: inherit;"&gt;{&amp;lt;DATE = {$(vcurrentweek)}&amp;gt;} &lt;/STRONG&gt;Time3)/3600)+sum(&lt;STRONG style="font-style: inherit;"&gt;{&amp;lt;DATE = {$(vcurrentweek)}&amp;gt;} &lt;/STRONG&gt;Time4)))/60)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;/Sum(&lt;STRONG style="font-style: inherit;"&gt;{&amp;lt;DATE = {$(vcurrentweek)}&amp;gt;} &lt;/STRONG&gt;[&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Log_In_duration&lt;/SPAN&gt;]/60)), '##0 %')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jan 2018 01:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis-and-time/m-p/1459862#M796346</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-01-06T01:47:36Z</dc:date>
    </item>
  </channel>
</rss>

