<?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: Assign values based on select criteria in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Assign-values-based-on-select-criteria/m-p/822427#M1027194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the first part something like this ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(&amp;nbsp;&amp;nbsp; if(&amp;nbsp; isnull(OutDate), max( total month(enddate)) , OutDate) - InDate )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i didn't fully understand the '2015-02-28' scenario though ... you can do an additional check for whether a user made a selection using&amp;nbsp; getselectedcount() ... but i would suggest replacing your list box expression with a data model field that you calculate in the load using month(enddate), then you can refernce the new data model field directly in the getselectedcount() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 16:56:54 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2015-03-03T16:56:54Z</dc:date>
    <item>
      <title>Assign values based on select criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-values-based-on-select-criteria/m-p/822426#M1027193</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 have a data set like below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 194pt;" width="258"&gt;&lt;TBODY&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="height: 12.75pt; width: 97pt;" width="129"&gt;InDate&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none; width: 97pt;" width="129"&gt;OutDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: none;"&gt;1/16/2015 0:00&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;31-01-2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: none;"&gt;1/20/2015 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: none;"&gt;2/3/2015 0:00&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;20-02-2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: none;"&gt;1/10/2015 0:00&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;29-01-2015&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i calculate avg(outdate-inDate) and display in bar chart. i use month is dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem i have is OutDate null value. So i need to assign values for this null based on select month. in month select box i use month(enddate)&lt;/P&gt;&lt;P&gt;If user select 2015 jan all null values should contain '2015-01-31'(we can use max(select month) here., if February '2015-02-28' and if no selections (max(outdate))&lt;/P&gt;&lt;P&gt;please help me to solve this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 16:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-values-based-on-select-criteria/m-p/822426#M1027193</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2015-03-03T16:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Assign values based on select criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-values-based-on-select-criteria/m-p/822427#M1027194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the first part something like this ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(&amp;nbsp;&amp;nbsp; if(&amp;nbsp; isnull(OutDate), max( total month(enddate)) , OutDate) - InDate )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i didn't fully understand the '2015-02-28' scenario though ... you can do an additional check for whether a user made a selection using&amp;nbsp; getselectedcount() ... but i would suggest replacing your list box expression with a data model field that you calculate in the load using month(enddate), then you can refernce the new data model field directly in the getselectedcount() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 16:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-values-based-on-select-criteria/m-p/822427#M1027194</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-03T16:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Assign values based on select criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-values-based-on-select-criteria/m-p/822428#M1027195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls see attached. what i need is yellow one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 17:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-values-based-on-select-criteria/m-p/822428#M1027195</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2015-03-03T17:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Assign values based on select criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-values-based-on-select-criteria/m-p/822429#M1027197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can open your document but it didn't clarify the need to me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is this sentence that i cannot interpret with confidence:&lt;/P&gt;&lt;P&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; line-height: 1.5em;"&gt;If user select 2015 jan all null values should contain '2015-01-31'(we can use max(select month) here., if February '2015-02-28' and if no selections (max(outdate))&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;please help me to solve this."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me try to paraphrase:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a user selects '2015-jan' as a month from the list box, the null value should be replaced with the max date from the selected month(s). --&amp;gt; i think i understand &lt;/P&gt;&lt;P&gt; If a user has made NO selections for the month, then the null value should be replaced with the max outdate from all the outdate values in the table.&amp;nbsp; -&amp;gt; &lt;STRONG&gt;is that right ?&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 17:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-values-based-on-select-criteria/m-p/822429#M1027197</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-03T17:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Assign values based on select criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-values-based-on-select-criteria/m-p/822430#M1027199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please have a look at the QVW attached: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes in Dimension and Expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 09:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-values-based-on-select-criteria/m-p/822430#M1027199</guid>
      <dc:creator />
      <dc:date>2015-03-04T09:50:34Z</dc:date>
    </item>
  </channel>
</rss>

