<?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: Proportion via expression using variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Proportion-via-expression-using-variables/m-p/1575989#M741248</link>
    <description>&lt;P&gt;Thanks for the reply. Actually, the inclusion of the [ ] goes back to a much earlier query I had about something unrelated and the solution was to include those and I've just kept them in. But I'll try taking them out to see if it still works.&lt;/P&gt;&lt;P&gt;In regards to my main query, are you able to share how you would approach it if it is possible?&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2019 14:47:03 GMT</pubDate>
    <dc:creator>mattphillip</dc:creator>
    <dc:date>2019-05-02T14:47:03Z</dc:date>
    <item>
      <title>Proportion via expression using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Proportion-via-expression-using-variables/m-p/1575822#M741246</link>
      <description>&lt;P&gt;Hoping someone might be able to advise where I'm going wrong here. I've previously used expressions including variables to calculate proportions (see below). However, I now need to take it one step further by adding the stipulation of particular field values. For example, I have a a field called 'Response' which contains the values, reject, insurance, decline and accept. I'm trying to produce a proportion in using an expression based on the below purely for those who have the value of accept in the 'Response' field. I've tried a few different ideas to add the field value in but none work ultimately. I'm using the user populated vDenominator variable, which captures the field/final field (if multiple) displayed in a custom pivot table.&lt;/P&gt;&lt;P&gt;Existing expression (which is currently used to calculate the conversion to accepts from the total responses. What I'd like to do is modify the denominator to also specify the field value of accept within the 'Response' field thus allowing for a proportion of accepts across the displayed fields, in this case school and gender (where each school's proportion of accepts adds up to 100%.:&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;[Response]={'Accept'}&amp;gt;} DISTINCT [Applicant ID])/count(TOTAL &amp;lt;[$(vDenominator)]&amp;gt; [Applicant ID])&lt;/P&gt;&lt;P&gt;Does anyone have an idea if this is possible?&lt;/P&gt;&lt;P&gt;Any help would be most appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Proportion-via-expression-using-variables/m-p/1575822#M741246</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2024-11-16T20:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proportion via expression using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Proportion-via-expression-using-variables/m-p/1575907#M741247</link>
      <description>It is possible&lt;BR /&gt;quick question why are you using [] in your expression around the variable?&lt;BR /&gt;below works&lt;BR /&gt;Sum(Total&amp;lt;$(vSetTotalVariable)&amp;gt; LineSalesAmount)&lt;BR /&gt;like Sum(Total&amp;lt;Year&amp;gt; LineSalesAmount)</description>
      <pubDate>Thu, 02 May 2019 13:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Proportion-via-expression-using-variables/m-p/1575907#M741247</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-05-02T13:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proportion via expression using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Proportion-via-expression-using-variables/m-p/1575989#M741248</link>
      <description>&lt;P&gt;Thanks for the reply. Actually, the inclusion of the [ ] goes back to a much earlier query I had about something unrelated and the solution was to include those and I've just kept them in. But I'll try taking them out to see if it still works.&lt;/P&gt;&lt;P&gt;In regards to my main query, are you able to share how you would approach it if it is possible?&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 14:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Proportion-via-expression-using-variables/m-p/1575989#M741248</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2019-05-02T14:47:03Z</dc:date>
    </item>
  </channel>
</rss>

