<?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: Set Analysis in a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-a-variable/m-p/1363562#M417612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the variable is defined in an excel spreadsheet and doesn't have the = sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the express I am using $(vTotalDays_Inpatient_Curr_Day_Billing)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jun 2017 17:58:45 GMT</pubDate>
    <dc:creator>fcecconi</dc:creator>
    <dc:date>2017-06-13T17:58:45Z</dc:date>
    <item>
      <title>Set Analysis in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-a-variable/m-p/1363560#M417610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variable created using the following &lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: blue;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: blue;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt; {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;CD_Flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;={1}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;RecoveryType&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;={'InPatient'}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;Adjustment_Flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;={0}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;RecordType&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;={'Billing'}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;Billing_Type_Flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;={1}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;DistinctPatient&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;It works some time and some time is give the wrong value.&amp;nbsp; If I cut and paste the actual logic into the expression it returns the correct value all the time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;Any thoughts?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;Frank&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 17:24:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-a-variable/m-p/1363560#M417610</guid>
      <dc:creator>fcecconi</dc:creator>
      <dc:date>2017-06-13T17:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-a-variable/m-p/1363561#M417611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using this with or without the equal sign?&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>Tue, 13 Jun 2017 17:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-a-variable/m-p/1363561#M417611</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-13T17:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-a-variable/m-p/1363562#M417612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the variable is defined in an excel spreadsheet and doesn't have the = sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the express I am using $(vTotalDays_Inpatient_Curr_Day_Billing)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 17:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-a-variable/m-p/1363562#M417612</guid>
      <dc:creator>fcecconi</dc:creator>
      <dc:date>2017-06-13T17:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-a-variable/m-p/1363563#M417613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to check would be to remove the label and see if you see the same expression for when you use the expression vs when you use variable. Variable is essentially used to replace the expression, so when used, variable is expanded into the expression which gives the final result. If it shows the same expression... then there is no way it could give different output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 18:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-a-variable/m-p/1363563#M417613</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-13T18:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-a-variable/m-p/1363564#M417614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has something to do with my if statement.&amp;nbsp; I replaced the variables with the logic and got the same result.&amp;nbsp; if i just enter the variable or logic without the if, I get the right result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(WeekDay($(vToday)) &amp;lt;&amp;gt; 'Sun', $(vTotalDays_Inpatient_Curr_Day_Billing), $(vTotalDays_Inpatient_Rolling3_Billing))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 13:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-a-variable/m-p/1363564#M417614</guid>
      <dc:creator>fcecconi</dc:creator>
      <dc:date>2017-06-14T13:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-a-variable/m-p/1363565#M417615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is vToday?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 13:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-a-variable/m-p/1363565#M417615</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-14T13:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-a-variable/m-p/1363566#M417616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We found the issue.&amp;nbsp; It appears that the function &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;WeekDay($(vToday)) is not always evaluating.&amp;nbsp; We have replaced this with a variable the contains the same logic and now we are getting the correct results.&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;&lt;BR /&gt;&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;thanks for leading us in the right directions.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 13:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-a-variable/m-p/1363566#M417616</guid>
      <dc:creator>fcecconi</dc:creator>
      <dc:date>2017-06-14T13:30:54Z</dc:date>
    </item>
  </channel>
</rss>

