<?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: Conditionning a where restriction in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditionning-a-where-restriction/m-p/1000437#M650652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can build a variable for the whole where clause&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: 13.3333px; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&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;and use the variable in the load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD ...&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RESIDENT ...&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(variable)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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: 13.3333px; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2015 18:39:30 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-08-26T18:39:30Z</dc:date>
    <item>
      <title>Conditionning a where restriction</title>
      <link>https://community.qlik.com/t5/QlikView/Conditionning-a-where-restriction/m-p/1000435#M650650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a script problem to adapt my "where" to the value of a dynamic variable.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;More explicitly :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the variable "v_Payment_Reserve" that could be equal to "Payment" or to "Reserve".&lt;/P&gt;&lt;P&gt;So with a if condition, I would like to adapt my "where" to this variable.&lt;/P&gt;&lt;P&gt;That means that I would like something like that (in red):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEMP_CRE_ISIE : &lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;REPLACE LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [TPA Number] as [Claim Folder Number],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Month Report] as [Accounting cut-off date],&lt;/P&gt;&lt;P&gt;L_FLEET_NAME_CRE as [Product code],&lt;/P&gt;&lt;P&gt;'l1' as [Line product] ,&amp;nbsp; &lt;/P&gt;&lt;P&gt; [Risk code] ,&lt;/P&gt;&lt;P&gt;'112' as TCA,&lt;/P&gt;&lt;P&gt;'ITL' as Country,&lt;/P&gt;&lt;P&gt;Date([Date of accident] ,'YYMM')&amp;amp;'ITF' as [Occurrence date],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(account_Amount_139) as [Total recoveries reserve]&lt;/P&gt;&lt;P&gt;RESIDENT TEMP_CAL_CRE&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;where &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;if ( '$(v_Payment_Reserve)' = 'Payment' , &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;[Month Report] = '$(v_Month_report)' ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;[Month Report] &amp;lt; '$(v_Month_report)' )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;group by [TPA Number] , [Month Report] ,&amp;nbsp; [Risk code] , [Date of accident] , L_FLEET_NAME_CRE , L_FLEET_START_PERIOD , type_benificiary;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, of course, my red code doesn't work.&lt;/P&gt;&lt;P&gt;Do you have the solution please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 12:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditionning-a-where-restriction/m-p/1000435#M650650</guid>
      <dc:creator />
      <dc:date>2015-08-26T12:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionning a where restriction</title>
      <link>https://community.qlik.com/t5/QlikView/Conditionning-a-where-restriction/m-p/1000436#M650651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vOperator = if('$(v_Payment_Reserve)' = 'Payment' , '=', '&amp;lt;');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ...&lt;/P&gt;&lt;P&gt;RESIDENT ...&lt;/P&gt;&lt;P&gt;WHERE [Month Report] $(vOperator) '$(v_Month_report)'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 17:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditionning-a-where-restriction/m-p/1000436#M650651</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-08-26T17:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionning a where restriction</title>
      <link>https://community.qlik.com/t5/QlikView/Conditionning-a-where-restriction/m-p/1000437#M650652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can build a variable for the whole where clause&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: 13.3333px; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&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;and use the variable in the load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD ...&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RESIDENT ...&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(variable)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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: 13.3333px; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 18:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditionning-a-where-restriction/m-p/1000437#M650652</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-26T18:39:30Z</dc:date>
    </item>
  </channel>
</rss>

