<?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: Incorrect Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incorrect-Expression/m-p/1208889#M388086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Got the result by writing the below expression;&lt;/P&gt;&lt;P&gt;=count(distinct(if(match(Bill_Type_Details,'Need Info To Be Eligible For Billing(MI)','Waiting for Billing Entry'),Reported_Out_case_id)))&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2016 20:57:47 GMT</pubDate>
    <dc:creator>dandaanilreddy</dc:creator>
    <dc:date>2016-10-20T20:57:47Z</dc:date>
    <item>
      <title>Incorrect Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Expression/m-p/1208886#M388083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlik Developers&lt;/P&gt;&lt;P&gt;I have below expression in text box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum(if(Reported_Out_actual.count_idTBD_actual&amp;lt;&amp;gt;0 and Reported_Out_actual.BillType='Awaiting Order Entry',Reported_Out_actual.count_idTBD_actual)),'###,###')&amp;nbsp; the result should be 283+2 = 285 but here i am getting wrong result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(&lt;/P&gt;&lt;P&gt;sum(if(Reported_Out_actual.count_idTBD_actual&amp;lt;&amp;gt;0 and Reported_Out_actual.BillType='Missing Ins.', Reported_Out_actual.count_idTBD_actual))&lt;/P&gt;&lt;P&gt;,'###,###')&amp;nbsp; the result should be 203+4 = 207&amp;nbsp; this result is matching with the last 2 TBD types in the below table box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table box in which i have calculated dimension like =if(count_id=' ',Bill_Type_Details) and expression as&lt;/P&gt;&lt;P&gt;count(distinct Reported_Out_case_id) and the result is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 348px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="250"&gt;TBD Type&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Total Cases&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Need Info To Be Eligible For Billing(MI)&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;283&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Waiting for Billing Entry&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Insurance Info Not Availaible or Invalid&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;203&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Waiting for Insurance Code&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Total&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none;"&gt;492&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the below expression but i am not getting the correct values;\&lt;/P&gt;&lt;P&gt;=count(DISTINCT if(Reported_Out_actual.count_idTBD_actual&amp;lt;&amp;gt;0,count_id='' and Bill_Type_Details='Need Info To Be Eligible For Billing(MI)'and Bill_Type_Details='Waiting for Billing Entry',Reported_Out_case_id))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me please in getting the correct result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 19:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Expression/m-p/1208886#M388083</guid>
      <dc:creator>dandaanilreddy</dc:creator>
      <dc:date>2016-10-20T19:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Expression/m-p/1208887#M388084</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 think the problem is hiding here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your IF() function, after the first condition is validated and after the comma, count_id looks like the true_value. but then you continue the condition with AND... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=count(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DISTINCT if(Reported_Out_actual.count_idTBD_actual&amp;lt;&amp;gt;0&lt;STRONG style="color: #ff0000;"&gt;, count_id=''&amp;nbsp;&amp;nbsp;&amp;nbsp; and&lt;/STRONG&gt; Bill_Type_Details='Need Info To Be Eligible For Billing(MI)'and Bill_Type_Details='Waiting for Billing Entry',Reported_Out_case_id))&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;Did you mean that as another condition, like this:&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;=count(DISTINCT if(Reported_Out_actual.count_idTBD_actual&amp;lt;&amp;gt;0&lt;SPAN style="color: #008000;"&gt;&lt;STRONG&gt; and count_id=&lt;/STRONG&gt;&lt;/SPAN&gt;'' and Bill_Type_Details='Need Info To Be Eligible For Billing(MI)'and Bill_Type_Details='Waiting for Billing Entry',Reported_Out_case_id))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;cheers,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Oleg Troyansky&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Learn advanced Qlik techniqes in my book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=CVZRHMG6CVR2FGTA"&gt;QlikView Your Business&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 20:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Expression/m-p/1208887#M388084</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-10-20T20:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Expression/m-p/1208888#M388085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg&lt;/P&gt;&lt;P&gt;Thanks for the reply. I have used your expression but its displaying zero. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 20:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Expression/m-p/1208888#M388085</guid>
      <dc:creator>dandaanilreddy</dc:creator>
      <dc:date>2016-10-20T20:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Expression/m-p/1208889#M388086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Got the result by writing the below expression;&lt;/P&gt;&lt;P&gt;=count(distinct(if(match(Bill_Type_Details,'Need Info To Be Eligible For Billing(MI)','Waiting for Billing Entry'),Reported_Out_case_id)))&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 20:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Expression/m-p/1208889#M388086</guid>
      <dc:creator>dandaanilreddy</dc:creator>
      <dc:date>2016-10-20T20:57:47Z</dc:date>
    </item>
  </channel>
</rss>

