<?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: Set analysis with variable in bar chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable-in-bar-chart/m-p/57600#M782246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. It hadn't occurred to me to put the set analysis in the variable definition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2018 13:43:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-20T13:43:50Z</dc:date>
    <item>
      <title>Set analysis with variable in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable-in-bar-chart/m-p/57598#M782243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two variables set up:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt;"&gt;vMonthHrs = &lt;SPAN style="color: #0000ff;"&gt;Interval&lt;/SPAN&gt;((&lt;SPAN style="color: #0000ff;"&gt;Max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[SchedDate]&lt;/SPAN&gt;)-&lt;SPAN style="color: #0000ff;"&gt;Min&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[&lt;SPAN style="color: #800000;"&gt;SchedDate&lt;/SPAN&gt;]&lt;/SPAN&gt;)+1) //this gives the number of hours in each month&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;vDownTime = &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Interval&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;QState&lt;/SPAN&gt;&lt;SPAN&gt;={'Off'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;QTime&lt;/SPAN&gt;&lt;SPAN&gt;)) &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I then have a bar chart for the year with a dimension of MonthYear and two expressions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Uptime=&lt;SPAN style="color: #0000ff;"&gt;Interval&lt;/SPAN&gt;(&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(vMonthHrs)&lt;/EM&gt;&lt;/STRONG&gt;-&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(vDownTime)&lt;/EM&gt;&lt;/STRONG&gt;) &lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN&gt;Downtime=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Interval&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vDownTime)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;which appears to work perfectly if I select all the months.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/196861_pastedImage_9.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;What I need is to just select February and have it still show the bars ... so ignore the Month selection. However when I try to add set analysis ({&amp;lt;Month&amp;gt;} which is what works in all the other charts without variables) I get "No data to display".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've clearly not quite gotten the hang of set analysis.&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/Set-analysis-with-variable-in-bar-chart/m-p/57598#M782243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with variable in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable-in-bar-chart/m-p/57599#M782244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to put &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;({&amp;lt;Month&amp;gt;} in all the aggregation functions, can you share your final expression?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;May be like this - &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;vMonthHrs = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Interval&lt;/SPAN&gt;((&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Max&lt;/SPAN&gt;(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;Month&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[SchedDate]&lt;/SPAN&gt;)-&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Min&lt;/SPAN&gt;(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;Month&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;SchedDate&lt;/SPAN&gt;]&lt;/SPAN&gt;)+1) //this gives the number of hours in each month&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;vDownTime = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;Interval&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;QState&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;={'Off'},Month&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;QTime&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;))&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 13:37:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable-in-bar-chart/m-p/57599#M782244</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-03-20T13:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with variable in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable-in-bar-chart/m-p/57600#M782246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. It hadn't occurred to me to put the set analysis in the variable definition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 13:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-variable-in-bar-chart/m-p/57600#M782246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-20T13:43:50Z</dc:date>
    </item>
  </channel>
</rss>

