<?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 Percent for stacked value bar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Percent-for-stacked-value-bar/m-p/197051#M56865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for both of your help I used a solution based on both that is satisfactory for my needs.&lt;/P&gt;&lt;P&gt;For the main value expressions I used DUAL as such:&lt;/P&gt;&lt;P&gt;DUAL(NUM(SUM(IF(Product = 'Beef' OR Product = 'Lamb', Sales)) / SUM(Sales), '#0.0%'), SUM(IF(Product = 'Beef' OR Product = 'Lamb', Sales)))&lt;/P&gt;&lt;P&gt;That allowed me to use "Values on Data Points" to display the percentage over the stacks and keep the stacks and axis based on the normal values.&lt;/P&gt;&lt;P&gt;Then I used a third dimension with the expression:&lt;/P&gt;&lt;P&gt;'Red Meat: ' &amp;amp; NUM(SUM(IF(Product = 'Beef' OR Product = 'Lamb', Sales)), '#0,000') &amp;amp; '&lt;BR /&gt;White Meat: ' &amp;amp; NUM(SUM(IF(Product = 'Fish' OR Product = 'Chicken' OR Product = 'Pork', Sales)), '#0,000')&lt;/P&gt;&lt;P&gt;That allowed me to tick "Text as Pop-up" and still display the actual values when moving the cursor over the stacks. It displays both actual values on both stacks. It would be good to somehow exclude one out but this solution is close enough I think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Feb 2011 09:40:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-08T09:40:56Z</dc:date>
    <item>
      <title>Percent for stacked value bar</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-for-stacked-value-bar/m-p/197048#M56862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having trouble with what I think should be fairly simple so I assume the answer is staring me in the face and I just keep looking past it.&lt;/P&gt;&lt;P&gt;I want to have a graph that represents the SUM of a value with different calculation criteria for each expression, but instead of the actual value being displayed on the data point I want the percentage of that bar. Here is an example of what a table like this looks like:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3450_sourceID:3450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to do this in QV, there is no option that I can find to just display the percentage of the bar that an expression takes up that I can find, so I thought I could just make two invisible expressions to calculate the percentages and lay the data over top. This is what happens when I try this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3451_sourceID:3451" /&gt;&lt;/P&gt;&lt;P&gt;It displays only the first value on both stacks, and when you scroll over each stack it displays both percentages. I thought maybe it assigns each percentage expression to each bar so I tried to us an IF statement to create two different outcomes in one percentage expression but that just resulted in null percentage (since there are two values where there should be one).&lt;/P&gt;&lt;P&gt;I have attached this example QVW to show what I did. Does anyone know how to achieve this and what I am missing here? Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 07:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-for-stacked-value-bar/m-p/197048#M56862</guid>
      <dc:creator />
      <dc:date>2011-02-02T07:53:43Z</dc:date>
    </item>
    <item>
      <title>Percent for stacked value bar</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-for-stacked-value-bar/m-p/197049#M56863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;What is happening is that both values are being displayed, but the white meat % overalys the red meat %. I can suggest two workarounds:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Have the % display using Text on Axis - this keeps them separate&lt;/LI&gt;&lt;LI&gt;Replace the two % expressions with a single expression that produces text, which you can display on the data points or on the axis. Something like:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;= 'Red: ' &amp;amp; Num(SUM(IF(Product = 'Beef' OR Product = 'Lamb', Sales)) / SUM(Sales), '#0%') &amp;amp; '&lt;BR /&gt;White: ' &amp;amp; Num(SUM(IF(Product = 'Fish' OR Product = 'Chicken' OR Product = 'Pork', Sales)) / SUM(Sales), '#0%')&lt;/P&gt;&lt;P&gt;(Note the embedded line break is significant)&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 09:18:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-for-stacked-value-bar/m-p/197049#M56863</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-02-02T09:18:35Z</dc:date>
    </item>
    <item>
      <title>Percent for stacked value bar</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-for-stacked-value-bar/m-p/197050#M56864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of creating a new expression you could put the percent calculation into the first expression using the Dual function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 09:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-for-stacked-value-bar/m-p/197050#M56864</guid>
      <dc:creator>kji</dc:creator>
      <dc:date>2011-02-02T09:29:23Z</dc:date>
    </item>
    <item>
      <title>Percent for stacked value bar</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-for-stacked-value-bar/m-p/197051#M56865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for both of your help I used a solution based on both that is satisfactory for my needs.&lt;/P&gt;&lt;P&gt;For the main value expressions I used DUAL as such:&lt;/P&gt;&lt;P&gt;DUAL(NUM(SUM(IF(Product = 'Beef' OR Product = 'Lamb', Sales)) / SUM(Sales), '#0.0%'), SUM(IF(Product = 'Beef' OR Product = 'Lamb', Sales)))&lt;/P&gt;&lt;P&gt;That allowed me to use "Values on Data Points" to display the percentage over the stacks and keep the stacks and axis based on the normal values.&lt;/P&gt;&lt;P&gt;Then I used a third dimension with the expression:&lt;/P&gt;&lt;P&gt;'Red Meat: ' &amp;amp; NUM(SUM(IF(Product = 'Beef' OR Product = 'Lamb', Sales)), '#0,000') &amp;amp; '&lt;BR /&gt;White Meat: ' &amp;amp; NUM(SUM(IF(Product = 'Fish' OR Product = 'Chicken' OR Product = 'Pork', Sales)), '#0,000')&lt;/P&gt;&lt;P&gt;That allowed me to tick "Text as Pop-up" and still display the actual values when moving the cursor over the stacks. It displays both actual values on both stacks. It would be good to somehow exclude one out but this solution is close enough I think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 09:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-for-stacked-value-bar/m-p/197051#M56865</guid>
      <dc:creator />
      <dc:date>2011-02-08T09:40:56Z</dc:date>
    </item>
  </channel>
</rss>

