<?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 Set analysis for a bar chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-for-a-bar-chart/m-p/1863878#M71312</link>
    <description>&lt;P&gt;hi&lt;/P&gt;
&lt;P&gt;i have a formula that i need to include another set analysis expression in it for 2 types of roles.&lt;/P&gt;
&lt;P&gt;this is the current expression:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;sum({&amp;lt;Flag={"1"}&amp;gt;} [Total Hours])&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;sum({&amp;lt;[Type]=,Flag={"1"}&amp;gt;} total &amp;lt;Week,Year&amp;gt; [SumOfSch Hrs])&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;i want to update the expression for both sums so that it only takes in values from a field named "Stream" and a value within that field named "new".&lt;/P&gt;
&lt;P&gt;i will then put in the same expression again but this time look for a value named "old" in the field "Stream" .&lt;/P&gt;
&lt;P&gt;i put it in the expression editor, it says expression ok but no data is coming up.&lt;/P&gt;
&lt;P&gt;i know data is there as when i would select a value in the "stream" field in say a listbox, it changes the chart.&lt;/P&gt;
&lt;P&gt;my expression =&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;sum({&amp;lt;Flag={"1"} ,[Stream]={'Old'}&amp;gt;} [Total Hours])&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;sum({&amp;lt;[Type]=,Flag={"1"}, [Stream]={'Old'}&amp;gt;} total &amp;lt;Week,Year&amp;gt; [SumOfSch Hrs])&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;any idea where im going wrong?&lt;/P&gt;
&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: had to create new post as it would not allow me to reply to my first post on this topic for some reason&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Nov 2021 08:59:40 GMT</pubDate>
    <dc:creator>maarcus_smith</dc:creator>
    <dc:date>2021-11-26T08:59:40Z</dc:date>
    <item>
      <title>Set analysis for a bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-for-a-bar-chart/m-p/1863878#M71312</link>
      <description>&lt;P&gt;hi&lt;/P&gt;
&lt;P&gt;i have a formula that i need to include another set analysis expression in it for 2 types of roles.&lt;/P&gt;
&lt;P&gt;this is the current expression:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;sum({&amp;lt;Flag={"1"}&amp;gt;} [Total Hours])&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;sum({&amp;lt;[Type]=,Flag={"1"}&amp;gt;} total &amp;lt;Week,Year&amp;gt; [SumOfSch Hrs])&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;i want to update the expression for both sums so that it only takes in values from a field named "Stream" and a value within that field named "new".&lt;/P&gt;
&lt;P&gt;i will then put in the same expression again but this time look for a value named "old" in the field "Stream" .&lt;/P&gt;
&lt;P&gt;i put it in the expression editor, it says expression ok but no data is coming up.&lt;/P&gt;
&lt;P&gt;i know data is there as when i would select a value in the "stream" field in say a listbox, it changes the chart.&lt;/P&gt;
&lt;P&gt;my expression =&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;sum({&amp;lt;Flag={"1"} ,[Stream]={'Old'}&amp;gt;} [Total Hours])&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;sum({&amp;lt;[Type]=,Flag={"1"}, [Stream]={'Old'}&amp;gt;} total &amp;lt;Week,Year&amp;gt; [SumOfSch Hrs])&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;any idea where im going wrong?&lt;/P&gt;
&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: had to create new post as it would not allow me to reply to my first post on this topic for some reason&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 08:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-for-a-bar-chart/m-p/1863878#M71312</guid>
      <dc:creator>maarcus_smith</dc:creator>
      <dc:date>2021-11-26T08:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis for a bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-for-a-bar-chart/m-p/1864099#M71326</link>
      <description>&lt;P&gt;Hi, I would reccomend to make some test reproducing the expression step by step:&lt;/P&gt;
&lt;P&gt;- add a table with flag and Stream as dimensions, and sum(Total Hours] as Expression&lt;/P&gt;
&lt;P&gt;- select flag=1 and stream=Old and check if there is any result.&lt;/P&gt;
&lt;P&gt;- add Week and Year as dimesnions&lt;/P&gt;
&lt;P&gt;- add Sum(&lt;SPAN&gt;[SumOfSch Hrs]) as expression.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- check that it aslso returns values and those values have a relation with the first expression&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- add a last expression with the full expression and check what it does for every row&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;With all this you should se enough hints to understand whats happening, some of them should have no relation with Stream and are retuning 0.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2021 08:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-for-a-bar-chart/m-p/1864099#M71326</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-11-27T08:38:40Z</dc:date>
    </item>
  </channel>
</rss>

