<?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: Expression problems in chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041742#M926907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand, may be you can explain me the logic behind what selections show expression1 and what selections show expression2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Apr 2016 10:51:57 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-04-03T10:51:57Z</dc:date>
    <item>
      <title>Expression problems in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041736#M926901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two charts, one hidden on a conditional show.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions&amp;nbsp; for both charts are: &lt;/P&gt;&lt;P&gt;Week/Year (This is also the default vie when app is opened)&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;Day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for Chart A:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FlagA&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={'1'},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FlagB&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={'1'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;HoursIn8HourDay&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;/8)&amp;gt;1,1,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FlagA&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={'1'},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FlagB&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={'1'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;HoursIn8HourDay&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;/8)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for Chart B: (Hidden. It has a conditional show if Name is selected)&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FlagA&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ={'1'},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt; FlagB&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ={'1'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;HoursIn8HourDay&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;/8)&amp;gt;1,1,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FlagA&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ={'1'},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt; FlagB&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ={'1'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;HoursIn8HourDay&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;/8)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Listboxes are:&lt;/P&gt;&lt;P&gt;Year, Month, Week, Day and Name&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart works if selections are&amp;nbsp; made in the order&amp;nbsp; - Year, Month, Week, Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Name is chosen first however the chart is incorrect (as it’s using the sum expression )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is a hidden chart even required or will one chart do with multiple if statements in an expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041736#M926901</guid>
      <dc:creator>imallears</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression problems in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041737#M926902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;You can create a single chart with if condition such as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;If(GetSelectedCount(Name) &amp;gt; 0, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;if(sum({$&amp;lt;FlagA ={'1'}, FlagB ={'1'}&amp;gt;} HoursIn8HourDay/8)&amp;gt;1,1,&lt;BR /&gt;sum({$&amp;lt;FlagA ={'1'}, FlagB ={'1'}&amp;gt;} HoursIn8HourDay/8)),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;if(avg({$&amp;lt;FlagA={'1'},FlagB={'1'}&amp;gt;} HoursIn8HourDay/8)&amp;gt;1,1,&lt;BR /&gt;avg({$&amp;lt;FlagA={'1'},FlagB={'1'}&amp;gt;} HoursIn8HourDay&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;STRONG style=": ; color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;/8)))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is beside what the issue is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Apr 2016 14:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041737#M926902</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-02T14:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Expression problems in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041738#M926903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you required two chart. One can do the trick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Apr 2016 14:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041738#M926903</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-04-02T14:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Expression problems in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041739#M926904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately that creates the same issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When Name is selected first, the default chart shows sum rather than average&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Apr 2016 14:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041739#M926904</guid>
      <dc:creator>imallears</dc:creator>
      <dc:date>2016-04-02T14:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Expression problems in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041740#M926905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you only want the Sum expression when all of the 4 fields have at least one selected value? May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; color: #575757;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;If(GetSelectedCount(Name) &amp;gt; 0 and &lt;STRONG style="font-family: inherit; font-style: inherit; font-size: 13.3333px;"&gt;GetSelectedCount(Year) &amp;gt; 0 and &lt;STRONG style="font-family: inherit; font-style: inherit; font-size: 13.3333px;"&gt;GetSelectedCount(Month) &amp;gt; 0 and &lt;STRONG style="font-family: inherit; font-style: inherit; font-size: 13.3333px;"&gt;GetSelectedCount(Week) &amp;gt; 0 and GetSelectedCount(Day) &amp;gt; 0&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; color: #575757;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;if(sum({$&amp;lt;FlagA ={'1'}, FlagB ={'1'}&amp;gt;} HoursIn8HourDay/8)&amp;gt;1,1,&lt;BR /&gt;sum({$&amp;lt;FlagA ={'1'}, FlagB ={'1'}&amp;gt;} HoursIn8HourDay/8)),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; color: #575757;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;if(avg({$&amp;lt;FlagA={'1'},FlagB={'1'}&amp;gt;} HoursIn8HourDay/8)&amp;gt;1,1,&lt;BR /&gt;avg({$&amp;lt;FlagA={'1'},FlagB={'1'}&amp;gt;} HoursIn8HourDay&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; color: #575757;"&gt;/8)))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Apr 2016 18:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041740#M926905</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-02T18:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Expression problems in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041741#M926906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, almost have it now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculation for week is incorrect. It should be sum but is showing as average.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Apr 2016 22:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041741#M926906</guid>
      <dc:creator>imallears</dc:creator>
      <dc:date>2016-04-02T22:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Expression problems in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041742#M926907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand, may be you can explain me the logic behind what selections show expression1 and what selections show expression2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Apr 2016 10:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041742#M926907</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-03T10:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expression problems in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041743#M926908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When &lt;SPAN style="font-size: 13.3333px;"&gt;there is one&lt;/SPAN&gt; Flag A my daily % calculation is correct&lt;/P&gt;&lt;P&gt;When there are two F&lt;SPAN style="font-size: 13.3333px;"&gt;lag A's &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;my daily Log % total is incorrectly divided by 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;When there are three &lt;SPAN style="font-size: 13.3333px;"&gt;F&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;lag A's&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;my daily Log % total is incorrectly divided by 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Apr 2016 21:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041743#M926908</guid>
      <dc:creator>imallears</dc:creator>
      <dc:date>2016-04-03T21:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Expression problems in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041744#M926909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is difficult to understand what you are trying to do. Do you have a sample you can share with your expected output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 09:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-problems-in-chart/m-p/1041744#M926909</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-04T09:58:38Z</dc:date>
    </item>
  </channel>
</rss>

