<?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 where problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/where-problem/m-p/398838#M698650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i have a problem with where condition, i want to use WHERE only if some filed =1,&lt;/P&gt;&lt;P&gt;but it's don't work...&lt;/P&gt;&lt;P&gt;here the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13575545964314656" jivemacro_uid="_13575545964314656"&gt;&lt;P&gt;inner join (CostPrice2)&lt;/P&gt;&lt;P&gt;load "מספר שורת הזמנה",&lt;/P&gt;&lt;P&gt;"מלון שהייה",&lt;/P&gt;&lt;P&gt;"תאריך שהייה לעלות",&lt;/P&gt;&lt;P&gt;Rez_RoomNights,&lt;/P&gt;&lt;P&gt;Index_RoomType_cost,&lt;/P&gt;&lt;P&gt;Index_RoomSet_cost,&lt;/P&gt;&lt;P&gt;CostPrice_ChackIn, &lt;/P&gt;&lt;P&gt;CostPrice_ChackOut, &lt;/P&gt;&lt;P&gt;CostPrice_Cur, &lt;/P&gt;&lt;P&gt;if([תאריך שהייה לעלות]&amp;gt;=CostPrice_ChackIn and [תאריך שהייה לעלות]&amp;lt;CostPrice_ChackOut,1,0)*CostPrice_cost as CostPrice_cost,&lt;/P&gt;&lt;P&gt;CostPrice_IfRoom, &lt;/P&gt;&lt;P&gt;CostPrice_ifPeople&lt;/P&gt;&lt;P&gt;resident CostPrice2&lt;/P&gt;&lt;P&gt;where ([תאריך שהייה לעלות]&amp;gt;=CostPrice_ChackIn and [תאריך שהייה לעלות]&amp;lt;CostPrice_ChackOut) and&lt;/P&gt;&lt;H5&gt;&lt;SPAN style="color: #ff0000;"&gt; (if(CostPrice_IfRoom=1,Index_RoomType_cost2=Index_RoomType_cost));&lt;/SPAN&gt;&lt;/H5&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jan 2013 10:31:52 GMT</pubDate>
    <dc:creator>hagay</dc:creator>
    <dc:date>2013-01-07T10:31:52Z</dc:date>
    <item>
      <title>where problem</title>
      <link>https://community.qlik.com/t5/QlikView/where-problem/m-p/398838#M698650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i have a problem with where condition, i want to use WHERE only if some filed =1,&lt;/P&gt;&lt;P&gt;but it's don't work...&lt;/P&gt;&lt;P&gt;here the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13575545964314656" jivemacro_uid="_13575545964314656"&gt;&lt;P&gt;inner join (CostPrice2)&lt;/P&gt;&lt;P&gt;load "מספר שורת הזמנה",&lt;/P&gt;&lt;P&gt;"מלון שהייה",&lt;/P&gt;&lt;P&gt;"תאריך שהייה לעלות",&lt;/P&gt;&lt;P&gt;Rez_RoomNights,&lt;/P&gt;&lt;P&gt;Index_RoomType_cost,&lt;/P&gt;&lt;P&gt;Index_RoomSet_cost,&lt;/P&gt;&lt;P&gt;CostPrice_ChackIn, &lt;/P&gt;&lt;P&gt;CostPrice_ChackOut, &lt;/P&gt;&lt;P&gt;CostPrice_Cur, &lt;/P&gt;&lt;P&gt;if([תאריך שהייה לעלות]&amp;gt;=CostPrice_ChackIn and [תאריך שהייה לעלות]&amp;lt;CostPrice_ChackOut,1,0)*CostPrice_cost as CostPrice_cost,&lt;/P&gt;&lt;P&gt;CostPrice_IfRoom, &lt;/P&gt;&lt;P&gt;CostPrice_ifPeople&lt;/P&gt;&lt;P&gt;resident CostPrice2&lt;/P&gt;&lt;P&gt;where ([תאריך שהייה לעלות]&amp;gt;=CostPrice_ChackIn and [תאריך שהייה לעלות]&amp;lt;CostPrice_ChackOut) and&lt;/P&gt;&lt;H5&gt;&lt;SPAN style="color: #ff0000;"&gt; (if(CostPrice_IfRoom=1,Index_RoomType_cost2=Index_RoomType_cost));&lt;/SPAN&gt;&lt;/H5&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 10:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-problem/m-p/398838#M698650</guid>
      <dc:creator>hagay</dc:creator>
      <dc:date>2013-01-07T10:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: where problem</title>
      <link>https://community.qlik.com/t5/QlikView/where-problem/m-p/398839#M698651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(if(CostPrice_IfRoom=1,Index_RoomType_cost2=Index_RoomType_cost));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls check this if condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(condition, true value, false value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but u have writter two conditions. then u have to write multiple if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 10:35:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-problem/m-p/398839#M698651</guid>
      <dc:creator>khadeer</dc:creator>
      <dc:date>2013-01-07T10:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: where problem</title>
      <link>https://community.qlik.com/t5/QlikView/where-problem/m-p/398840#M698652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code jive-sql"&gt;&lt;SPAN class="jive-sql-keyword" style="color: navy; font-weight: bold;"&gt;where&lt;/SPAN&gt; ([תאריך שהייה לעלות]&amp;gt;=CostPrice_ChackIn &lt;SPAN class="jive-sql-keyword" style="color: navy; font-weight: bold;"&gt;and&lt;/SPAN&gt; [תאריך שהייה לעלות]&amp;lt;CostPrice_ChackOut) &lt;SPAN class="jive-sql-keyword" style="color: navy; font-weight: bold;"&gt;and&lt;/SPAN&gt;&lt;BR /&gt;((CostPrice_IfRoom=1 and Index_RoomType_cost2=Index_RoomType_cost) or (CostPrice_IfRoom&amp;lt;&amp;gt;1));&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 10:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-problem/m-p/398840#M698652</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-07T10:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: where problem</title>
      <link>https://community.qlik.com/t5/QlikView/where-problem/m-p/398841#M698653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you very much,&lt;/P&gt;&lt;P&gt;it's was good idea !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 21:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-problem/m-p/398841#M698653</guid>
      <dc:creator>hagay</dc:creator>
      <dc:date>2013-01-07T21:00:03Z</dc:date>
    </item>
  </channel>
</rss>

