<?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 Help with expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314551#M116070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want this as a dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What countries would you want to show if it does equal A or B?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the expression(s) you are using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Feb 2012 17:06:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-23T17:06:40Z</dc:date>
    <item>
      <title>Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314550#M116069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with expression in Dimension,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Brand&amp;lt;&amp;gt;'A' and Brand&amp;lt;&amp;gt;'B', if(len(trim(Var1))&amp;gt;0, Country,&amp;nbsp; TOTAL country)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where Var1 = O, E, K&lt;/P&gt;&lt;P&gt;Country =Q,W, R, Other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need, if Brand not equal A or B, show all countries, else show TOTAL (Q,W,R, Other) &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 16:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314550#M116069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-23T16:52:42Z</dc:date>
    </item>
    <item>
      <title>Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314551#M116070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want this as a dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What countries would you want to show if it does equal A or B?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the expression(s) you are using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 17:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314551#M116070</guid>
      <dc:creator />
      <dc:date>2012-02-23T17:06:40Z</dc:date>
    </item>
    <item>
      <title>Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314552#M116071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I have this chart and it work well. But a client wants to change a bit.&lt;/P&gt;&lt;P&gt;If A or B, it should be 1 comumn wich is TOTAL of all countries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this expression&lt;/P&gt;&lt;P&gt;1. IF(Country&amp;lt;&amp;gt;'Other',Count({&amp;lt;Profile={'L'},MYear={'$(=MonthName(max(MYear)))'}&amp;gt;}Country))/&lt;/P&gt;&lt;P&gt;Count({&amp;lt;MYear={'$(=MonthName(max(MYear)))'}&amp;gt;} TOTAL &amp;lt;Country,MYear&amp;gt; Country)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. IF(Country&amp;lt;&amp;gt;'Other',Count({&amp;lt;Profile={'B'},MYear={'$(=MonthName(max(MYear)))'}&amp;gt;}Country))/&lt;/P&gt;&lt;P&gt;Count({&amp;lt;MYear={'$(=MonthName(max(MYear)))'}&amp;gt;} TOTAL &amp;lt;Country,MYear&amp;gt; Country)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. IF(Country&amp;lt;&amp;gt;'Other',Count({&amp;lt;Profile={'O'},MYear={'$(=MonthName(max(MYear)))'}&amp;gt;}Country))/&lt;/P&gt;&lt;P&gt;Count({&amp;lt;MYear={'$(=MonthName(max(MYear)))'}&amp;gt;} TOTAL &amp;lt;Country,MYear&amp;gt; Country)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For TOTAL I use Dimension Limits tab&amp;nbsp; , Options=&amp;gt;Show Total.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 18:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314552#M116071</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-23T18:26:26Z</dc:date>
    </item>
    <item>
      <title>Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314553#M116072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK So if the Brand is equal to A or B you want to just see the dimension "Total" and if it is not then see the specific country?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is the case you could try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Brand&amp;lt;&amp;gt;'A' and Brand&amp;lt;&amp;gt;'B' and (len(trim(Var1))&amp;gt;0, Country,&amp;nbsp; 'TOTAL')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 18:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314553#M116072</guid>
      <dc:creator />
      <dc:date>2012-02-23T18:31:02Z</dc:date>
    </item>
    <item>
      <title>Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314554#M116073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, That's exactly that I need.&lt;/P&gt;&lt;P&gt;=IF(qID_2729_Brand&amp;lt;&amp;gt;'A' and(Len(Trim([Profile]))&amp;gt;0),Country,'TOTAL')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me to create an expression which show Country and TOTAL for all Brands except Brand=A?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Country:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([qID_6317_In which of the following countries do you reside?]='Canada','US/Canada',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([qID_6317_In which of the following countries do you reside?]='United States','US/Canada',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([qID_6317_In which of the following countries do you reside?]='United Kingdom','United Kingdom',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([qID_6317_In which of the following countries do you reside?]='Germany','Germany',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(LEN(TRIM([qID_6317_In which of the following countries do you reside?]))&amp;gt;0,'Other')))))as Country,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 18:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314554#M116073</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-23T18:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314555#M116074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the field Brand resides in the same table as [qID_6317_In which of the following countries do you reside?] then it is easy. This will show total if Brand=A and Country if it does not:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(qID_2729_Brand='A','Total',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If([qID_6317_In which of the following countries do you reside?]='Canada','US/Canada',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([qID_6317_In which of the following countries do you reside?]='United States','US/Canada',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([qID_6317_In which of the following countries do you reside?]='United Kingdom','United Kingdom',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([qID_6317_In which of the following countries do you reside?]='Germany','Germany',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(LEN(TRIM([qID_6317_In which of the following countries do you reside?]))&amp;gt;0,'Other'))))))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Country,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 18:55:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314555#M116074</guid>
      <dc:creator />
      <dc:date>2012-02-23T18:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314556#M116075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should I use it, when I load my data?&lt;/P&gt;&lt;P&gt;I need to show only TOTAL just for 3 brands of 10.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 18:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314556#M116075</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-23T18:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314557#M116076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/11616_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;It should look like this for all brands. For Brand =A it should be only TOTAL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 19:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314557#M116076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-23T19:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314558#M116077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are the ending results that you want to see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above formula is for the script if Brand is in the same table as the country field. If it is not then you can change the dimension to the formula and that should also work.&lt;/P&gt;&lt;P&gt;The above formula will return:&lt;/P&gt;&lt;P&gt;First.&lt;/P&gt;&lt;P&gt;If Brand=A,&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Total'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Brand&amp;lt;&amp;gt;A, &lt;/P&gt;&lt;P&gt;US/Canada,&lt;/P&gt;&lt;P&gt;United Kingdom,&lt;/P&gt;&lt;P&gt;Germany,&lt;/P&gt;&lt;P&gt;Other&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This formula only works if Brand is in the same table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a country has more than one brand it could be split into different categories. IE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your data looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;United States A&lt;/P&gt;&lt;P&gt;United States B&lt;/P&gt;&lt;P&gt;United States C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then United States with brand A will be put into the Total group and United States with brand B and C will be put into US/Canada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 19:06:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314558#M116077</guid>
      <dc:creator />
      <dc:date>2012-02-23T19:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314559#M116078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, they are in one table.&lt;/P&gt;&lt;P&gt;When I load my data, I create a new variable Country.(US/Canada, UK, Germany and Other(all others countries)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression works&lt;/P&gt;&lt;P&gt;=IF(qID_2729_Brand&amp;lt;&amp;gt;'A' and qID_2729_Brand&amp;lt;&amp;gt;'B' and qID_2729_Brand&amp;lt;&amp;gt;'C' and(Len(Trim([Profile]))&amp;gt;0),Country,'TOTAL')&lt;/P&gt;&lt;P&gt;It shows only TOTAL for these brands.&lt;/P&gt;&lt;P&gt;Is it possible to show country and TOTAL together for other brands.&lt;/P&gt;&lt;P&gt;I use Dimension Limits for that. I`d like remove it and use your TOTAL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 19:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314559#M116078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-23T19:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314560#M116079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you want to see Country, Total, and Total of Country + Total?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 19:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314560#M116079</guid>
      <dc:creator />
      <dc:date>2012-02-23T19:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314561#M116080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ther`s no way to show Country variable and 'TOTAL' in one chart???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 19:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314561#M116080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-23T19:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314562#M116081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to see Country and TOTAL.&lt;/P&gt;&lt;P&gt;Please see my image below:&lt;/P&gt;&lt;P&gt;Instead of Global use your 'TOTAL'.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/11621_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 19:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/314562#M116081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-23T19:41:04Z</dc:date>
    </item>
  </channel>
</rss>

