<?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: Button to filter a table box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Button-to-filter-a-table-box/m-p/937465#M323547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This helps a lot.&amp;nbsp; I read about using variables for tasks like this, but this clarifies things.&amp;nbsp; I think the Straight Table chart will work with the variable combination.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Nov 2015 16:39:33 GMT</pubDate>
    <dc:creator>anothergreg</dc:creator>
    <dc:date>2015-11-04T16:39:33Z</dc:date>
    <item>
      <title>Button to filter a table box</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-filter-a-table-box/m-p/937460#M323542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to create two buttons that will filter a table box using some pre-set and non-changing criteria.&amp;nbsp; Column A needs to filter out blanks.&amp;nbsp; Column B needs to filter out blanks and string criteria ( left(fieldB,4)=http and right(fieldB,3=xml) ).&amp;nbsp; Column C is a rollup that will not be filtered.&amp;nbsp; There is value in being able to mix/match filters, so I cannot just output the table box with all filterable criteria applied, thus&amp;nbsp; I'm attempting buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to get the button to work for Column A.&amp;nbsp; Solution was:&lt;/P&gt;&lt;P&gt;Action 1) Select in Field for fieldA, search string =if(len(trim(fieldA))=0,'').&lt;/P&gt;&lt;P&gt;Action 2) Select Excluded fieldA. &lt;/P&gt;&lt;P&gt;Works without issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I'm having a heck of a time attempting to get the fieldB filter to work.&amp;nbsp; I can't select the field using logic that contains the field, and thus I'm stuck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, I'd like to do something similar to (forgive me if syntax is not correct, but I've tried doing them individually and it doesn't work anyway, so I never focused on getting the syntax to work for both together):&lt;/P&gt;&lt;P&gt;Select in Field for fieldB, search string ='=if(left(trim(fieldB),4)="http",if(right(trim(fieldB),3)="xml",fieldB or =if(len(trim(fieldB))=0,"")'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Focusing on the portion which I know isn't working, =if(left(trim(fieldB),4)='http',if(right(trim(fieldB),3)='xml',fieldB)), is there any way to get a button to simple filter on certain criteria like this?&amp;nbsp; It seems like a simple concept, but I can't imagine how it would be possible.&amp;nbsp; I've googled a bunch of Qlik community posts but haven't found anything similar.&amp;nbsp; I'm very, very new to Qlikview, so hopefully I'm not wasting space on the board by posting something obvious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 15:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-filter-a-table-box/m-p/937460#M323542</guid>
      <dc:creator>anothergreg</dc:creator>
      <dc:date>2015-11-04T15:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Button to filter a table box</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-filter-a-table-box/m-p/937461#M323543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;provide a demo app,please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 15:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-filter-a-table-box/m-p/937461#M323543</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-11-04T15:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Button to filter a table box</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-filter-a-table-box/m-p/937462#M323544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table boxes are never particularly useful things, as you can't have expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may have more joy with a Chart of type Straight Table.&amp;nbsp; You can then write an expression to decide which rows to show.&amp;nbsp; The buttons just need to flip variables that you then use in your expression.&amp;nbsp; The column that decides what should be shown can then be hidden in the properties on the Presentation tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will also find things easier if you create flags in the load script.&amp;nbsp; So, derive a simple flag field (0/1) in the load with field names like IncludeFieldA and IncludeFieldB.&amp;nbsp; The expression needed on the table then becomes very simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that makes sense.&amp;nbsp; Please let me know if you want me to elaborate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 16:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-filter-a-table-box/m-p/937462#M323544</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2015-11-04T16:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Button to filter a table box</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-filter-a-table-box/m-p/937463#M323545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;May be try this in search string for your fieldB&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;('http*'|'*xml')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 16:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-filter-a-table-box/m-p/937463#M323545</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-11-04T16:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Button to filter a table box</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-filter-a-table-box/m-p/937464#M323546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume that you mean NULL if you talked about "blanks". Then you could use an inbuilt feature by tableboxes to hide them - go to the tab presentation and below the dimension-list in the top-left you could enable this hiding for each dimension separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your second criteria should be covered with wildmatch(fieldB, 'http*xml') and I suggest rather not to use buttons for this (in general they should be avoided unless there is really no other (practically) way to select the data) and would use a bookmark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further possible ist to create flag-fields and/or categorizing fields within the script to simplify data-selections and calculations - it makes not much sense if this is your only condition on fieldB but if there are more ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 16:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-filter-a-table-box/m-p/937464#M323546</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-11-04T16:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Button to filter a table box</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-filter-a-table-box/m-p/937465#M323547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This helps a lot.&amp;nbsp; I read about using variables for tasks like this, but this clarifies things.&amp;nbsp; I think the Straight Table chart will work with the variable combination.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 16:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-filter-a-table-box/m-p/937465#M323547</guid>
      <dc:creator>anothergreg</dc:creator>
      <dc:date>2015-11-04T16:39:33Z</dc:date>
    </item>
  </channel>
</rss>

