<?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: where clause on a specific field? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328189#M829496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ill try it out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jun 2017 21:06:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-06-20T21:06:36Z</dc:date>
    <item>
      <title>where clause on a specific field?</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328181#M829488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to use a where clause on just a certain field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Company, &lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;Name,&lt;/P&gt;&lt;P&gt;Value where Name = 'Bob'&lt;/P&gt;&lt;P&gt;From ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like the above, where the where clause is before the from clause. The script editor is underlining it in red, but is there a way to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328181#M829488</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: where clause on a specific field?</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328182#M829489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No you cant use where clause before from. &lt;/P&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Company,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Name = 'Bob', Value) AS NewValue&lt;/P&gt;&lt;P&gt;FROM yourdatasource;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 20:48:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328182#M829489</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-06-20T20:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: where clause on a specific field?</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328183#M829490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ive currently got&lt;/P&gt;&lt;P&gt;If(detail_type = 'CM', count(so_id)) as CM_count&lt;/P&gt;&lt;P&gt;but it says invalid expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 20:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328183#M829490</guid>
      <dc:creator />
      <dc:date>2017-06-20T20:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: where clause on a specific field?</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328184#M829491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, coz if you use Count() which is an aggr function you should use Group by in your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else you can create a flag and use that flag in your chart expression. Like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Detail_type = 'CM', 1) AS Cm_Count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your expr: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= sum(CM_Count)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 20:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328184#M829491</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-06-20T20:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: where clause on a specific field?</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328185#M829492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the full script, it says invalid. I have sales order table loaded above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggregate_Data:&lt;/P&gt;&lt;P&gt;Load AlphaProdID,&lt;/P&gt;&lt;P&gt;detail_type,&lt;/P&gt;&lt;P&gt;count(so_id)/count(DISTINCT so_id) as LinesPerOrder,&lt;/P&gt;&lt;P&gt;Count(so_id)/count(DISTINCT SO_detail_created_by) as LinesPerUser,&lt;/P&gt;&lt;P&gt;count(distinct so_id)/count(DISTINCT SO_detail_created_by) as OrdersPerUser,&lt;/P&gt;&lt;P&gt;If(detail_type = 'CM', count(so_id)) as CM_count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Sales_Order&lt;/P&gt;&lt;P&gt;Group by AlphaProdID;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 20:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328185#M829492</guid>
      <dc:creator />
      <dc:date>2017-06-20T20:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: where clause on a specific field?</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328186#M829493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use "Exist"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 20:59:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328186#M829493</guid>
      <dc:creator>zebhashmi</dc:creator>
      <dc:date>2017-06-20T20:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: where clause on a specific field?</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328187#M829494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add detail_type in your Group By and run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Sales_Order&lt;/P&gt;&lt;P&gt;Group by AlphaProdID, detail_type;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 20:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328187#M829494</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-06-20T20:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: where clause on a specific field?</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328188#M829495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried this but it messed up my other fields, im assuming because its grouping by 2 fields. Perhaps if i make another table, and just put the single item in and group by it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 21:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328188#M829495</guid>
      <dc:creator />
      <dc:date>2017-06-20T21:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: where clause on a specific field?</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328189#M829496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ill try it out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 21:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328189#M829496</guid>
      <dc:creator />
      <dc:date>2017-06-20T21:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: where clause on a specific field?</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328190#M829497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like a plan. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 21:18:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328190#M829497</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-06-20T21:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: where clause on a specific field?</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328191#M829498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this code&lt;/P&gt;&lt;P&gt;&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;&lt;EM&gt;Aggregate_Data:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Load AlphaProdID,&lt;/EM&gt;&lt;EM&gt;detail_type,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Count(so_id) / Count(DISTINCT so_id) as LinesPerOrder,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Count(so_id) / Count(DISTINCT SO_detail_created_by) as LinesPerUser,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Count(Distinct so_id) / count(DISTINCT SO_detail_created_by) as OrdersPerUser,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="text-decoration: line-through;"&gt;If(detail_type = 'CM', count(so_id)) as CM_count&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;count( &lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If(detail_type = 'CM',&lt;/EM&gt; so_id ) ) &lt;/STRONG&gt;&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;as CM_count&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Resident Sales_Order&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Group by &lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;AlphaProdID,&lt;/EM&gt;&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;detail_type&lt;/EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 21:29:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328191#M829498</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-06-20T21:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: where clause on a specific field?</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328192#M829499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to get the percent of so_id that has CM, so I tried this but it doesn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load AlphaProdID,&lt;/P&gt;&lt;P&gt;detail_type,&lt;/P&gt;&lt;P&gt;count( If(detail_type = 'CM', so_id ) )/count(so_id) as CM_count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Sales_Order&lt;/P&gt;&lt;P&gt;Group by AlphaProdID, detail_type;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 13:56:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328192#M829499</guid>
      <dc:creator />
      <dc:date>2017-06-21T13:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: where clause on a specific field?</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328193#M829500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a sample if possible with some sample data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 14:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-on-a-specific-field/m-p/1328193#M829500</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-06-21T14:07:00Z</dc:date>
    </item>
  </channel>
</rss>

