<?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 Part 2 - Presenting chart bars as 100% value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Part-2-Presenting-chart-bars-as-100-value/m-p/423374#M1162074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have the same issue with another chart but this time it has 2 dimensions and an IF statement to calculate the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling to create the same result as my previous question and present the information in a 100% value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the current Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Response_Level_2='Office',(c2_office_perc/1)*sum ({$&amp;lt;Source_Key={3}&amp;gt;}Ans_Percent)/(c2_office_split_perc_sum),sum ({$&amp;lt;Source_Key={2}&amp;gt;}Ans_Percent)/(c2_loc_split_sum_perc))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It take the information from Source Key 3 which is a breakdown of results for Office (calculating the results as a percentage for time spent at the "Desk","Open Space" and "Room") and also the data from Source Key 2 to provide the results for "Home" and "Out of Office".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Chart it produces the following chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="24945" class="jive-image-thumbnail jive-image" onclick="" alt="Div Chart 3.png" src="/legacyfs/online/24945_Div Chart 3.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Based on the previous question that was answered by whiteline - correct answer below for single dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Source_Key={1}&amp;gt;}&amp;nbsp; Ans_Percent)/Sum({$&amp;lt;Source_Key={1}&amp;gt;} TOTAL&amp;lt;Division_Name&amp;gt; Ans_Percent)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I make the expression above work with this suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry about this but I have tried all sorts of options and configurations but I keep getting an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help you can provide again is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Nov 2012 16:40:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-11T16:40:42Z</dc:date>
    <item>
      <title>Part 2 - Presenting chart bars as 100% value</title>
      <link>https://community.qlik.com/t5/QlikView/Part-2-Presenting-chart-bars-as-100-value/m-p/423374#M1162074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have the same issue with another chart but this time it has 2 dimensions and an IF statement to calculate the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling to create the same result as my previous question and present the information in a 100% value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the current Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Response_Level_2='Office',(c2_office_perc/1)*sum ({$&amp;lt;Source_Key={3}&amp;gt;}Ans_Percent)/(c2_office_split_perc_sum),sum ({$&amp;lt;Source_Key={2}&amp;gt;}Ans_Percent)/(c2_loc_split_sum_perc))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It take the information from Source Key 3 which is a breakdown of results for Office (calculating the results as a percentage for time spent at the "Desk","Open Space" and "Room") and also the data from Source Key 2 to provide the results for "Home" and "Out of Office".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Chart it produces the following chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="24945" class="jive-image-thumbnail jive-image" onclick="" alt="Div Chart 3.png" src="/legacyfs/online/24945_Div Chart 3.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Based on the previous question that was answered by whiteline - correct answer below for single dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Source_Key={1}&amp;gt;}&amp;nbsp; Ans_Percent)/Sum({$&amp;lt;Source_Key={1}&amp;gt;} TOTAL&amp;lt;Division_Name&amp;gt; Ans_Percent)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I make the expression above work with this suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry about this but I have tried all sorts of options and configurations but I keep getting an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help you can provide again is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Nov 2012 16:40:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Part-2-Presenting-chart-bars-as-100-value/m-p/423374#M1162074</guid>
      <dc:creator />
      <dc:date>2012-11-11T16:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Part 2 - Presenting chart bars as 100% value</title>
      <link>https://community.qlik.com/t5/QlikView/Part-2-Presenting-chart-bars-as-100-value/m-p/423375#M1162075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the statements marked bold in your expression ?:&lt;/P&gt;&lt;P&gt; =if(Response_Level_2='Office',(&lt;STRONG&gt;c2_office_perc/1&lt;/STRONG&gt;)*sum ({$&amp;lt;Source_Key={3}&amp;gt;}Ans_Percent)/(&lt;STRONG&gt;c2_office_split_perc_sum&lt;/STRONG&gt;),sum ({$&amp;lt;Source_Key={2}&amp;gt;}Ans_Percent)/(&lt;STRONG&gt;c2_loc_split_sum_perc&lt;/STRONG&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what dimension do you have now in addition to Devision_Name?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Nov 2012 19:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Part-2-Presenting-chart-bars-as-100-value/m-p/423375#M1162075</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-11-11T19:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Part 2 - Presenting chart bars as 100% value</title>
      <link>https://community.qlik.com/t5/QlikView/Part-2-Presenting-chart-bars-as-100-value/m-p/423376#M1162077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi the statements are variables below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;c2_office_perc&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=sum ({$&amp;lt;Source_Key={2},Response_Level_2={'Office'}&amp;gt;}Ans_Percent)/c2_loc_split_sum_perc&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;c2_office_split_perc_sum&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;=sum ({$&amp;lt;Source_Key={3}&amp;gt;}Ans_Percent)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;c2_loc_split_sum_perc&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;=sum ({$&amp;lt;Source_Key={2}&amp;gt;}Ans_Percent)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might help if I add the qvw?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Nov 2012 19:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Part-2-Presenting-chart-bars-as-100-value/m-p/423376#M1162077</guid>
      <dc:creator />
      <dc:date>2012-11-11T19:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Part 2 - Presenting chart bars as 100% value</title>
      <link>https://community.qlik.com/t5/QlikView/Part-2-Presenting-chart-bars-as-100-value/m-p/423377#M1162078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Again, why do you use the variables in this way ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, the whole your expression is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Response_Level_2='Office',&lt;/P&gt;&lt;P&gt;sum ({$&amp;lt;Source_Key={2},Response_Level_2={'Office'}&amp;gt;}Ans_Percent)&lt;/P&gt;&lt;P&gt;/sum ({$&amp;lt;Source_Key={2}&amp;gt;}Ans_Percent)&lt;/P&gt;&lt;P&gt;*sum ({$&amp;lt;Source_Key={3}&amp;gt;}Ans_Percent)&lt;/P&gt;&lt;P&gt;/sum ({$&amp;lt;Source_Key={3}&amp;gt;}Ans_Percent)&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum ({$&amp;lt;Source_Key={2}&amp;gt;}Ans_Percent)/sum ({$&amp;lt;Source_Key={2}&amp;gt;}Ans_Percent)&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you could correct the ELSE case (bolded) by your self as it's almost equal to the discussed previously.&lt;/P&gt;&lt;P&gt;As for the first part of IF expresison, choose what sum is the right denominator and use total qualifier correspondingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 06:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Part-2-Presenting-chart-bars-as-100-value/m-p/423377#M1162078</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-11-12T06:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Part 2 - Presenting chart bars as 100% value</title>
      <link>https://community.qlik.com/t5/QlikView/Part-2-Presenting-chart-bars-as-100-value/m-p/423378#M1162080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well that was journey moment!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the final expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Response_Level_2='Office',(sum ({$&amp;lt;Source_Key={2},&lt;/P&gt;&lt;P&gt;Response_Level_2={'Office'}&amp;gt;}TOTAL&amp;lt;Division_Name,Department_Name&amp;gt; Ans_Percent)&lt;/P&gt;&lt;P&gt;/sum ({$&amp;lt;Source_Key={2}&amp;gt;}TOTAL&amp;lt;Division_Name,Department_Name&amp;gt; Ans_Percent)/1)&lt;/P&gt;&lt;P&gt;*sum ({$&amp;lt;Source_Key={3}&amp;gt;}Ans_Percent)&lt;/P&gt;&lt;P&gt;/sum ({$&amp;lt;Source_Key={3}&amp;gt;}TOTAL&amp;lt;Division_Name,Department_Name&amp;gt; Ans_Percent),&lt;/P&gt;&lt;P&gt;if(Source_Key=2,sum ({$&amp;lt;Source_Key={2}&amp;gt;}Ans_Percent)/sum ({$&amp;lt;Source_Key={2}&amp;gt;} TOTAL&amp;lt;Division_Name,Department_Name&amp;gt; Ans_Percent),0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your direction - much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables were to make it easier to work with and they are used in other charts, but it looks like they were getting in the way of things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 18:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Part-2-Presenting-chart-bars-as-100-value/m-p/423378#M1162080</guid>
      <dc:creator />
      <dc:date>2012-11-12T18:13:22Z</dc:date>
    </item>
  </channel>
</rss>

