<?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: Unable to use if and median in Line chart expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746869#M1031685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you attach the app or data please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Feb 2015 18:08:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-02-04T18:08:32Z</dc:date>
    <item>
      <title>Unable to use if and median in Line chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746868#M1031684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;!Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Qlik view.This may seem like an amateur question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am building a line chart with year on the X-Axis which can be drilled down to month and median(JobEndTime-JobStartTime) on Y axis. I want the runtime for only one source system and so I am doing this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(source_system='XYZ',median(JobEndTime-JobStartTime),NULL())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart is blank and says No data to display. It looks correct but I at a loss as to why it isnt calculating the median.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sreekar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 18:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746868#M1031684</guid>
      <dc:creator />
      <dc:date>2015-02-04T18:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use if and median in Line chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746869#M1031685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you attach the app or data please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 18:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746869#M1031685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-04T18:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use if and median in Line chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746870#M1031686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've attached the app. The issue is in the 2nd tab named FDM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 18:12:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746870#M1031686</guid>
      <dc:creator />
      <dc:date>2015-02-04T18:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use if and median in Line chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746871#M1031687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The if() belongs inside the median(). But it's better to do it with Set Analysis like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg({&amp;lt;Current_Load={FDM}&amp;gt;}endTime_EST-startTime_EST)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's the expression from the qvw you uploaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com/" rel="nofollow"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 18:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746871#M1031687</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-02-04T18:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use if and median in Line chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746872#M1031688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression, it is working for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=avg({&amp;lt;Source_System={FDM}&amp;gt;}(endTime_EST-startTime_EST)). I have done it in your app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 18:38:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746872#M1031688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-04T18:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use if and median in Line chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746873#M1031689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick question - If I were to just subtract the two columns, then also, If is not working. If I want to do this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Current_Load='FDM', endTime_EST-startTime_EST)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is also not working and I am not sure how I can use set analysis here. Its really confusing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 19:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746873#M1031689</guid>
      <dc:creator />
      <dc:date>2015-02-05T19:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use if and median in Line chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746874#M1031690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;sum&lt;/STRONG&gt;({&amp;lt;Current_Load={FDM}&amp;gt;}endTime_EST-startTime_EST)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;-Rob&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 19:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746874#M1031690</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-02-05T19:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use if and median in Line chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746875#M1031691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you calculate on the dimension of year then for source system FDM and for a given year 2015 you have multiple values of start time and multiple values of end time so either you will have to sum or average those multiple values. If you had just a single value of start time and end time for 2015 then you could subtract and show on the graph. For better understanding I have created a table box and list box on sheet 2. Please review. There is no issue with if function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 19:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746875#M1031691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-05T19:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use if and median in Line chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746876#M1031692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you but I was looking at something without an aggregation function.Just to get the difference so that I can drill down to a daily basis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 19:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746876#M1031692</guid>
      <dc:creator />
      <dc:date>2015-02-05T19:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use if and median in Line chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746877#M1031693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; color: #002060;"&gt;For any year when you have multiple end and start date, there will be multiple subtractions. Then either you will have to sum or average those subtracted values to show as a datapoint for a particular year..2014 or 2015.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 19:53:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746877#M1031693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-05T19:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use if and median in Line chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746878#M1031694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The aggregation function is just a device to be able to use a Set expression. If there is only one qualifying row, It should give the same result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 20:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-use-if-and-median-in-Line-chart-expression/m-p/746878#M1031694</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-02-05T20:35:42Z</dc:date>
    </item>
  </channel>
</rss>

