<?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: Variables producing same result in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396255#M32325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can read about dollar sign expansion here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3444"&gt;The Magic of Dollar Expansions&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Oct 2017 19:33:34 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-10-04T19:33:34Z</dc:date>
    <item>
      <title>Variables producing same result</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396249#M32319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a data set that looks something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: left; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Employee&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: right; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Earliest Event Time&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: right; background-color: rgb(102, 144, 188); color: rgb(255, 255, 255); padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Latest Event Time&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: right; background-color: rgb(102, 144, 188); color: rgb(255, 255, 255); padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Time Diff&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Adam&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;08:01&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;16:00&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;07:59&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Beatrice&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: right;"&gt;08:04&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: right;"&gt;16:07&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Caroline&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: right;"&gt;07:58&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: right;"&gt;16:02&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Time Diff is a function that looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Interval( Max( EventTime ) - Min( EventTime ), 'hh:mm' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to put this formula into a variable, but it fails to compute. Similarly, if I put Max( EventTime) or Min( EventTime ) into a variable, it computes, but all values are the same. I expect that this is due to it calculating max and min for the entire data set rather than for each employee. &lt;SPAN style="font-size: 10pt;"&gt;Is there a way to create a variable that computes for each employee?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 16:29:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396249#M32319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-04T16:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Variables producing same result</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396250#M32320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In variable for which row you calculate the date difference why not you use this formula expression in any table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Interval( [Clock Out Time] - &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Clock In Time]&lt;/SPAN&gt;, 'hh:mm' ) as HourDiff&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;From Sorce;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 16:34:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396250#M32320</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-10-04T16:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Variables producing same result</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396251#M32321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That looks like it would work. Is there a way to accomplish this without editing the data loader? I am hesitant to unlock my data loader.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 19:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396251#M32321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-04T19:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Variables producing same result</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396252#M32322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try setting your variable without the equal sign&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Interval( Max( EventTime ) - Min( EventTime ), 'hh:mm' )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, read here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3996"&gt;The Little Equals Sign&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3406"&gt;The Magic of Variables&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 19:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396252#M32322</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-04T19:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Variables producing same result</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396253#M32323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your detailed response. I have started reading the blog posts you linked. Getting rid of the equal sign solved my problem. For some reason, it does not work with my variable for [Earliest Event Time] which looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Min( Date( EventTime, 'MM/DD/YYYY h:mm' ) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without an equals sign, the equation shows up in the table as a string. With an equals sign, it calculates the min for the entire data set. However, after reading and experimentation I'm sure it will be resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 19:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396253#M32323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-04T19:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Variables producing same result</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396254#M32324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might need a dollar sign expansion of your variable here&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$(VariableName)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 19:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396254#M32324</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-04T19:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Variables producing same result</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396255#M32325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can read about dollar sign expansion here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3444"&gt;The Magic of Dollar Expansions&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 19:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396255#M32325</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-04T19:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variables producing same result</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396256#M32326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is excellent continued reading and seems to be the root of my problem. Thank you again for all of your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 19:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396256#M32326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-04T19:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Variables producing same result</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396257#M32327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your variable then write this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interval( Max([Clock Out Time]) - Min([Clock In Time]), 'hh:mm' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also do not put equal sign before expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 19:52:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396257#M32327</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-10-04T19:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variables producing same result</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396258#M32328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works, thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 20:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-producing-same-result/m-p/1396258#M32328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-04T20:19:29Z</dc:date>
    </item>
  </channel>
</rss>

