<?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 If statement, show values without selecting dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement-show-values-without-selecting-dimensions/m-p/191212#M53382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I have a report in which it gives values corresponding to the time of day and month. Month isn't important, it's the time. I'm attempting to show the sum of values of say 9am to 5pm however the value only appears when I select those times. I want to show the sum of values without selecting.&lt;BR /&gt;&lt;BR /&gt;The code that shows the answer when you select the first half-hour of the day is =&lt;B&gt;If&lt;/B&gt;(&lt;B&gt;HHReadTime&lt;/B&gt;='00:00-00:30',&lt;B&gt;sum&lt;/B&gt;(&lt;B&gt;kwh&lt;/B&gt;))&lt;BR /&gt;&lt;BR /&gt;so basically I want to get the sum of ReadTime&amp;gt;='09:00-09:30' and ReadTime&amp;lt;='16:30-17:00' but without having to make the actual selections.&lt;BR /&gt;&lt;BR /&gt;Could you guys maybe point me in the right direction?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;McKay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Nov 2010 17:22:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-17T17:22:14Z</dc:date>
    <item>
      <title>If statement, show values without selecting dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-show-values-without-selecting-dimensions/m-p/191212#M53382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I have a report in which it gives values corresponding to the time of day and month. Month isn't important, it's the time. I'm attempting to show the sum of values of say 9am to 5pm however the value only appears when I select those times. I want to show the sum of values without selecting.&lt;BR /&gt;&lt;BR /&gt;The code that shows the answer when you select the first half-hour of the day is =&lt;B&gt;If&lt;/B&gt;(&lt;B&gt;HHReadTime&lt;/B&gt;='00:00-00:30',&lt;B&gt;sum&lt;/B&gt;(&lt;B&gt;kwh&lt;/B&gt;))&lt;BR /&gt;&lt;BR /&gt;so basically I want to get the sum of ReadTime&amp;gt;='09:00-09:30' and ReadTime&amp;lt;='16:30-17:00' but without having to make the actual selections.&lt;BR /&gt;&lt;BR /&gt;Could you guys maybe point me in the right direction?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;McKay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 17:22:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-show-values-without-selecting-dimensions/m-p/191212#M53382</guid>
      <dc:creator />
      <dc:date>2010-11-17T17:22:14Z</dc:date>
    </item>
    <item>
      <title>If statement, show values without selecting dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-show-values-without-selecting-dimensions/m-p/191213#M53383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi McKay,&lt;/P&gt;&lt;P&gt;I suppose you should do several things: change sum and if, then take care of the correct and fitting format for your comparing HHReadTime: so with this in mind your expression should look like&lt;/P&gt;&lt;P&gt;sum( if(HHReadTime &amp;gt;= '09:30' and HHReadTime &amp;lt;= '16:30', kwh, 0) )&lt;/P&gt;&lt;P&gt;As I said the format of two literals you are comparing the fieldvalue with has to fit to the format of the field.&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 17:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-show-values-without-selecting-dimensions/m-p/191213#M53383</guid>
      <dc:creator />
      <dc:date>2010-11-17T17:43:16Z</dc:date>
    </item>
  </channel>
</rss>

