<?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: Dollar-Sign Expansion with Parameters - does not like commas in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308069#M113756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's done the trick but now highlighted another problem.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The sum expression is not being evaludated over the dimensions, each row has the same figure, almost as if I had sum(total... but I don't!&amp;nbsp; Any ideas why that's happening?&amp;nbsp;&amp;nbsp; So close!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just read the following article.&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.qlikfix.com/2011/06/08/not-all-variables-are-created-equal/"&gt;http://www.qlikfix.com/2011/06/08/not-all-variables-are-created-equal/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By putting an equals sign in the variable Qlikview evaluiates it immidatly at the document level, ignoring my dimensions, therefore this is not a solution to my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: msheraton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Nov 2011 14:42:17 GMT</pubDate>
    <dc:creator>RedSky001</dc:creator>
    <dc:date>2011-11-09T14:42:17Z</dc:date>
    <item>
      <title>Dollar-Sign Expansion with Parameters - does not like commas</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308065#M113752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Same problem has identified here &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/118608#118608"&gt;http://community.qlik.com/message/118608#118608&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use Qlikview parameters (See "Dollar-Sign Expansion with Parameters" in the reference manual) &lt;/P&gt;&lt;P&gt;to help me format numbers conditionally using a function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data set has numbers betwen 1 and 10,000,000&lt;/P&gt;&lt;P&gt;Anything above 1,000 I'll divide by 1,000 and suffix with K&lt;/P&gt;&lt;P&gt;Anything above 1,000,000 I'll divide by 1,000,000 and suffix with Mil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; vNumberFormatter:&lt;/P&gt;&lt;P&gt;if($1 &amp;gt; 1000000,num(($1 / 1000000),'#,##0 Mil')&lt;/P&gt;&lt;P&gt;,if($1 &amp;gt; 1000,num(($1 / 1000),'#,##0 K'),num($1,'#,##0')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore: &lt;/P&gt;&lt;P&gt;=$(vNumberFormatter($(vMySetAnylsisVariable))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMySetAnylsisVariable contains a set anylsis statement and because I'm using more than one set modifier, I have to use commas, these are being treated as additional paramters by Qlivkiew.&lt;/P&gt;&lt;P&gt;Therefore with the following statement afterthing after the first comman is evalualted as a second paramter, not what I want!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Date={"&amp;gt;=$(vMinDate)&amp;lt;=$(=max(Total Date))"}, [Ad Local End Date Floor]-={'&amp;lt;$(=min(Total Date))'},[Ad Local Start Date Floor]-={'&amp;gt;$(=max(Total Date))'}&amp;gt;} [Impressions (Booked) Mgmt])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone got a workaround for this, other than having to write the same expression in every variable containing a number...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 13:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308065#M113752</guid>
      <dc:creator>RedSky001</dc:creator>
      <dc:date>2011-11-09T13:26:40Z</dc:date>
    </item>
    <item>
      <title>Dollar-Sign Expansion with Parameters - does not like commas</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308066#M113753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not 100% sure, but I think you shouldn't have a problem if the set expression variable would be evaluated to value just before passing it to the dollar sign expansion as parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got something working like this after playing around with adding equal sign before the variable definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you upload a small example file? I think we could make this work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 13:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308066#M113753</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-09T13:54:36Z</dc:date>
    </item>
    <item>
      <title>Dollar-Sign Expansion with Parameters - does not like commas</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308067#M113754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just attached a sample qvw.&amp;nbsp; See "chart 1", it's currently not displaying anything...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 14:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308067#M113754</guid>
      <dc:creator>RedSky001</dc:creator>
      <dc:date>2011-11-09T14:14:31Z</dc:date>
    </item>
    <item>
      <title>Dollar-Sign Expansion with Parameters - does not like commas</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308068#M113755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just add an equal sign before your set expression variable definition in variable overview, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Date={"&amp;gt;=$(vMinDate)&amp;lt;=$(=max(Date))"},[Ad End Date]-={"&amp;lt;=$(=min(Date))"}&amp;gt;}Imp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now get the chart working, not sure if the formatting is correct, though (but it looks like).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 14:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308068#M113755</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-09T14:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar-Sign Expansion with Parameters - does not like commas</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308069#M113756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's done the trick but now highlighted another problem.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The sum expression is not being evaludated over the dimensions, each row has the same figure, almost as if I had sum(total... but I don't!&amp;nbsp; Any ideas why that's happening?&amp;nbsp;&amp;nbsp; So close!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just read the following article.&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.qlikfix.com/2011/06/08/not-all-variables-are-created-equal/"&gt;http://www.qlikfix.com/2011/06/08/not-all-variables-are-created-equal/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By putting an equals sign in the variable Qlikview evaluiates it immidatly at the document level, ignoring my dimensions, therefore this is not a solution to my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: msheraton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 14:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308069#M113756</guid>
      <dc:creator>RedSky001</dc:creator>
      <dc:date>2011-11-09T14:42:17Z</dc:date>
    </item>
    <item>
      <title>Dollar-Sign Expansion with Parameters - does not like commas</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308070#M113757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Evaluating the set expression before feeding it into the variable function was my intention, but I haven't thought about the implications on evaluating per dimension. So it seems that we are back to the beginning.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 15:52:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308070#M113757</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-09T15:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar-Sign Expansion with Parameters - does not like commas</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308071#M113758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well it thought me something I didn't know so I appreciate that.&amp;nbsp; If you have any futher ideas please let me know! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 15:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308071#M113758</guid>
      <dc:creator>RedSky001</dc:creator>
      <dc:date>2011-11-09T15:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar-Sign Expansion with Parameters - does not like commas</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308072#M113759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A set analysis expression is only evaluated once per chart. After it is evaluated and defines a data set, that data set is then carved up according to the chart dimensions. Therefore, it is not possible to use dimensions in set analysis because the set is evaluated and applied to the data model before the dimensions of the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following document shows one way of 'getting around' this limitation, not sure if it will work for you:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/docs/DOC-1335"&gt;http://community.qlik.com/docs/DOC-1335&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 18:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308072#M113759</guid>
      <dc:creator />
      <dc:date>2012-08-01T18:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar-Sign Expansion with Parameters - does not like commas</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308073#M113760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that the variable with the set analysis is expanded within the parenthesis and before it is passed to the formatter. You can change the values to pass the variable name and expand the variable in the formmater. Try setting vNumberFommatter to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if($($1) &amp;gt; 1000000&lt;/P&gt;&lt;P&gt;or $($1) &amp;lt; -1000000&lt;/P&gt;&lt;P&gt;,num(($($1) / 1000000),'#,##0 Mil')&lt;/P&gt;&lt;P&gt;,if($($1) &amp;gt; 1000&lt;/P&gt;&lt;P&gt;or $($1) &amp;lt; -1000&lt;/P&gt;&lt;P&gt;,num(($($1) / 1000),'#,##0 K')&lt;/P&gt;&lt;P&gt;,num($($1),'#,##0')&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and using =$(vNumberFormatter(vMySetAnylsisVariable)) as your expression. That should do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: I didn't notice that this was an old post but I hope it helps somebody.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 00:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-with-Parameters-does-not-like-commas/m-p/308073#M113760</guid>
      <dc:creator />
      <dc:date>2012-08-02T00:37:22Z</dc:date>
    </item>
  </channel>
</rss>

