<?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: $1 in Variable and this Variable in Set Analysis. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/1-in-Variable-and-this-Variable-in-Set-Analysis/m-p/1074517#M525792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Super!&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jan 2016 16:48:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-27T16:48:13Z</dc:date>
    <item>
      <title>$1 in Variable and this Variable in Set Analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/1-in-Variable-and-this-Variable-in-Set-Analysis/m-p/1074511#M525786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, &lt;/P&gt;&lt;P&gt;I have a variable, that sets&amp;nbsp; the&amp;nbsp; Number Format, like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(NumFormatName='Decimal' , Num($1, '#.##0,' )&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(NumFormatName='Thousand.', Num($1 / 1000 , '#.##0,'&amp;nbsp; &amp;amp; ' Tsd.' )&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(NumFormatName='Million.', Num($1 / 1000000,'#.##0,'&amp;nbsp; &amp;amp;' Mio.')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(NumFormatName='Billion.', Num($1 / 1000000000,'#.##0,' &amp;amp;' Bio.')&lt;/P&gt;&lt;P&gt;))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my table , I have a Expression, which is defined with Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$(vNumFormVar(Sum(Kilometer)))&lt;/STRONG&gt; this is no problem. But when I write the expression with Set Analyse, Condition in Set Analysis will be ignored.&lt;/P&gt;&lt;P&gt;This means, this expresseion&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= $(vNumFormVar($(=Sum({$+&amp;lt;[StartName]=[EndName],[EndName]=[StartName]&amp;gt;} Kilometer))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;hat same Result as&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;= $(vNumFormVar(Sum(Kilometer)))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;By the way, &lt;STRONG style="font-size: 13.3333px;"&gt;Sum({$+&amp;lt;[StartName]=[EndName],[EndName]=[StartName]&amp;gt;} Kilometer) &lt;/STRONG&gt;is unproblematic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 15:01:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-in-Variable-and-this-Variable-in-Set-Analysis/m-p/1074511#M525786</guid>
      <dc:creator />
      <dc:date>2016-01-26T15:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: $1 in Variable and this Variable in Set Analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/1-in-Variable-and-this-Variable-in-Set-Analysis/m-p/1074512#M525787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= $(vNumFormVar($(=Sum({$+&amp;lt;[StartName]=[EndName],[EndName]=[StartName]&amp;gt;} Kilometer))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;the&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$(=Sum({$+&amp;lt;[StartName]=[EndName],[EndName]=[StartName]&amp;gt;} Kilometer)) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;part will be evaluated once per chart, not per dimension value of your chart.&lt;/P&gt;&lt;P&gt;Would this explain what you are seeing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 23:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-in-Variable-and-this-Variable-in-Set-Analysis/m-p/1074512#M525787</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-26T23:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: $1 in Variable and this Variable in Set Analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/1-in-Variable-and-this-Variable-in-Set-Analysis/m-p/1074513#M525788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand, what you mean "the part will be evaluated once by chart, not per dimension value of you chart." .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I saw, &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= $(vNumFormVar&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(=Sum({$+&amp;lt;[StartName]=[EndName],[EndName]=[StartName]&amp;gt;} Kilometer)))) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;hat same result with &lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= $(vNumFormVar(Sum(Kilometer))).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$+&amp;lt;[StartName]=[EndName],[EndName]=[StartName]&amp;gt;} Kilometer) &lt;/STRONG&gt;shows the result in pair. This means, when the StartName is same as EndName, Endname is same as StartName, then shows the results. For example,&lt;/P&gt;&lt;P&gt;From A to B needs 100000 Kilometter, From B to A need 120000 Kilometer. When we only choose A-B ,the Result is:&lt;/P&gt;&lt;P&gt;A - B 100000&lt;/P&gt;&lt;P&gt;B - A 120000.&lt;/P&gt;&lt;P&gt;In pair .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the same time,&amp;nbsp; &lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Kilometer) &lt;/STRONG&gt;shows the result, only &lt;/P&gt;&lt;P&gt;A- B 100000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$(VNumFormVar)&lt;/STRONG&gt; define the Numberofrmat.&lt;/P&gt;&lt;P&gt;100000.00&lt;/P&gt;&lt;P&gt;100,000.00&lt;/P&gt;&lt;P&gt;100 Tsd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 10:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-in-Variable-and-this-Variable-in-Set-Analysis/m-p/1074513#M525788</guid>
      <dc:creator />
      <dc:date>2016-01-27T10:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: $1 in Variable and this Variable in Set Analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/1-in-Variable-and-this-Variable-in-Set-Analysis/m-p/1074514#M525789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you upload a small sample QVW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 10:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-in-Variable-and-this-Variable-in-Set-Analysis/m-p/1074514#M525789</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-27T10:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: $1 in Variable and this Variable in Set Analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/1-in-Variable-and-this-Variable-in-Set-Analysis/m-p/1074515#M525790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi everyone,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have a variable, that sets&amp;nbsp; the&amp;nbsp; Number Format, 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;IF(NumFormatName='Decimal' , Num($1, '#.##0,' )&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;&amp;nbsp; IF(NumFormatName='Thousand.', Num($1 / 1000 , '#.##0,'&amp;nbsp; &amp;amp; ' Tsd.' )&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(NumFormatName='Million.', Num($1 / 1000000,'#.##0,'&amp;nbsp; &amp;amp;' Mio.')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(NumFormatName='Billion.', Num($1 / 1000000000,'#.##0,' &amp;amp;' Bio.')&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&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In my table , I have a Expression, which is defined with Set Analysis.&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;$(vNumFormVar(Sum(Kilometer)))&lt;/STRONG&gt; this is no problem. But when I write the expression with Set Analyse, Condition in Set Analysis will be ignored.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This means, this expresseion&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;= $(vNumFormVar($(=Sum({$+&amp;lt;[StartName]=[EndName],[EndName]=[StartName]&amp;gt;} Kilometer))))&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;hat same Result as&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;= $(vNumFormVar(Sum(Kilometer)))&lt;/STRONG&gt;&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;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;By the way, &lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Sum({$+&amp;lt;[StartName]=[EndName],[EndName]=[StartName]&amp;gt;} Kilometer) &lt;/STRONG&gt;is unproblematic.&lt;/SPAN&gt;&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;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 14:36:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-in-Variable-and-this-Variable-in-Set-Analysis/m-p/1074515#M525790</guid>
      <dc:creator />
      <dc:date>2016-01-27T14:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: $1 in Variable and this Variable in Set Analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/1-in-Variable-and-this-Variable-in-Set-Analysis/m-p/1074516#M525791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I said, the dollar sign expansion&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;$(=Sum({$+&amp;lt;[StartName]=[EndName],[EndName]=[StartName]&amp;gt;} Kilometer))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is not what you want here. [Or could you explain what you want to do with $(=...) here? ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you remove the dollar sign expansion, you are one step further, as now the Sum(...) will be used as parameter, not the evaluated expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now you are running into troubles, because the outer dollar sign expansion of your formatting variable will interpret the comma within the set modifier as separator for its parameter list. Not what you want here.&lt;/P&gt;&lt;P&gt;See:&lt;/P&gt;&lt;P&gt;&lt;A href="http://bi-review.blogspot.de/2012/05/how-to-write-reusable-and-expandable.html" title="http://bi-review.blogspot.de/2012/05/how-to-write-reusable-and-expandable.html"&gt;BI Review: How to write reusable and expandable expressions in QlikView&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add the replace mechanism to your variable definition, then replace the comma in your set modifier with a semi-colon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also need to handle the NumFormatName value not being read correctly in all lines of your chart, I think you need also to apply some set analysis to get every number on the same page of your story.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 15:20:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-in-Variable-and-this-Variable-in-Set-Analysis/m-p/1074516#M525791</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-27T15:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: $1 in Variable and this Variable in Set Analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/1-in-Variable-and-this-Variable-in-Set-Analysis/m-p/1074517#M525792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Super!&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-in-Variable-and-this-Variable-in-Set-Analysis/m-p/1074517#M525792</guid>
      <dc:creator />
      <dc:date>2016-01-27T16:48:13Z</dc:date>
    </item>
  </channel>
</rss>

