<?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: Using an expression inside another expression. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762137#M1031595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So instead of seeing the number, you want to see % of count?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+ places where the % cannot pe calculated (Salisbury), should they be included in the count also (i.e. below 80% count)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know and we can make a tweak in the application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2015 13:17:15 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-02-10T13:17:15Z</dc:date>
    <item>
      <title>Using an expression inside another expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762129#M1031571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, hoping someone might be able to come up with a solution to what may well be a very simple problem that I'm having...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created an expression for my straight table, which gives me a percentage of respondents within an area giving a particular response. The expression is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Count (DISTINCT{1&amp;lt;Year={'2014'}, Type={1}, Response={1}&amp;gt;} RespondentID) &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;/ Count (DISTINCT{1&amp;lt;[Academic Year]={'2014'}, Type={1}&amp;gt;} RespodentID) &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;In the straight table, this is split by a 'Location' dimension, so that for each location I get my percentage. &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I now want to create a 100% stacked bar chart with two sections - locations where over 80% of respondents gave that response; locations where under 80% of respondents gave that response. &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;So far, I have created a new variable called 'vRES1' with my original expression as the definition. &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I have then tried to use that variable within an expression for my stacked bar chart, to no avail! I have: &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P&gt;Count (DISTINCT{&amp;lt;IF($(vRES1)&amp;gt;=0.80)&amp;gt; Location) /&lt;/P&gt;&lt;P&gt;Count (DISTINCT {&amp;lt;$(vRES1)={'&amp;gt;=0'}&amp;gt;} Location)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview is happy with the expression, but I get no data in my stacked bar chart! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or suggestions gratefully received! &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Many thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 16:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762129#M1031571</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2015-02-06T16:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using an expression inside another expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762130#M1031574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would do something like this in the script itself. But there might be a way to do this in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script, I would use Group by statement and calculate the percentage and use that information to create a new field name (something like If(abc% &amp;gt; 80%, 1, 0). This way I can easily count the instance when its above 80%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 16:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762130#M1031574</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-06T16:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using an expression inside another expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762131#M1031577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jessica,&lt;/P&gt;&lt;P&gt;Depending on how exactly your variable looks like, you may need $(=vRES1).&lt;/P&gt;&lt;P&gt;But more important, you need to aggregate by Location, otherwise you have count within count which is not going to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 16:58:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762131#M1031577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-06T16:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using an expression inside another expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762132#M1031580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help sunindia.&lt;/P&gt;&lt;P&gt;Would you be able to explain how to do this in the script? Do I just use my original expression somewhere? Have had a look on other discussions for an explanation of this, but not found anything so far. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks again, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jessica &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 08:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762132#M1031580</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2015-02-10T08:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using an expression inside another expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762133#M1031583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to provide with some dummy data and I can show you how something like this could be done in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 10:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762133#M1031583</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-10T10:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using an expression inside another expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762134#M1031586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help with this. A dummy qvw should be attached! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 11:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762134#M1031586</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2015-02-10T11:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using an expression inside another expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762135#M1031589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is what you are looking to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 12:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762135#M1031589</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-10T12:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using an expression inside another expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762136#M1031592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you so much - this appears to be on the right track. Have tried putting this into my qv document and the main problem I'm having is that my stacked bar chart should be a 100% stacked chart... &lt;/P&gt;&lt;P&gt;Any further thoughts? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 13:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762136#M1031592</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2015-02-10T13:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using an expression inside another expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762137#M1031595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So instead of seeing the number, you want to see % of count?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+ places where the % cannot pe calculated (Salisbury), should they be included in the count also (i.e. below 80% count)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know and we can make a tweak in the application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 13:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762137#M1031595</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-10T13:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using an expression inside another expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762138#M1031597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So for all locations, a certain % will have above 80% and the rest will have below 80%.&lt;/P&gt;&lt;P&gt;I would like my stacked bar chart to show for all locations (as a group, not individually) what % got 80%+ and what % of locations got 80%- &lt;/P&gt;&lt;P&gt;So it should be just one bar split into two sections which total 100% together.&lt;/P&gt;&lt;P&gt;All locations should be included in this aggregated total regardless - in my data I actually have about 250 locations. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 13:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762138#M1031597</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2015-02-10T13:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using an expression inside another expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762139#M1031598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jessica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The application you shared had Year as dimension for the stacked bar chart. That is why the stacked bar chart I made had several bar, one each for every year. Do you not want to see year as the dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 13:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762139#M1031598</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-10T13:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using an expression inside another expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762140#M1031600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the confusion. I'm having this problem with another stacked bar chart I'm doing and haven't found a solution yet! &lt;/P&gt;&lt;P&gt;I want year as a dimension (so one bar per year), but I want each bar split by +/- 80% as outlined above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 13:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762140#M1031600</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2015-02-10T13:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using an expression inside another expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762141#M1031602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this makes sense. Its showing % of locations that have above 80% response rate and stacked on top of it is the % of locations that have below 80% response rate. The sum of the two bars is 100%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know what you think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 13:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762141#M1031602</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-10T13:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using an expression inside another expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762142#M1031605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Absolutely fantastic! Thank you so much for your help - exactly what I was looking for! &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Very best wishes, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jessica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 13:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762142#M1031605</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2015-02-10T13:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using an expression inside another expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762143#M1031607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am glad that I proved helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 13:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-inside-another-expression/m-p/762143#M1031607</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-10T13:47:45Z</dc:date>
    </item>
  </channel>
</rss>

