<?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: Search and restrict Straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436152#M802304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If its yellow, i will need to show all values lesser than or equal to in priority, so in this case Yellow, Silver, Bronze, White and in the case where the tier is Silver, should only show SIlver Bronze and N/A values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Nov 2017 18:39:14 GMT</pubDate>
    <dc:creator>sgarim41</dc:creator>
    <dc:date>2017-11-21T18:39:14Z</dc:date>
    <item>
      <title>Search and restrict Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436148#M802300</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 have the following data format in a straight table where all fields are either dimensions or calculated dimensions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&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;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Name1&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Name2&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Tier&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Chicago&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;NYC&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;White&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Chicago&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Chicago&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Yellow&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Chicago&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Boston&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Silver&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Chicago&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Seattle&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Brown&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above table ID field and Name1 remain same for an ID selection, in this case being 10. Only the ID is selected and hence the table gets populated based on ID selection. The tier information is based on the corresponding Name2 value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is for a given selection of ID(which has many values) i will need to restrict the tier information as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Will need to find the tier for Name2 which is equal to the Name1 field for the current ID selection- for this ID selection 10 the tier where Name1=Name2(Chicago) is Yellow&lt;/LI&gt;&lt;LI&gt;Based on the tier selected above i will have to restrict the column Tier based on the following priority Yellow&amp;gt;Silver&amp;gt;Brown&amp;gt;White and only show information greater than or equal to the current tier.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am kind of stuck on this solution and would appreciate any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Santosh&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/Search-and-restrict-Straight-table/m-p/1436148#M802300</guid>
      <dc:creator>sgarim41</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Search and restrict Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436149#M802301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain your 2nd requirement not pretty clear sorry?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be use calculated dimension for you first question Name2.&lt;/P&gt;&lt;P&gt;= Aggr(IF(Name1 = Name2, Name2), Name1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or as and Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= IF(Name1 = Name2, Name2) something like this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 18:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436149#M802301</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-11-21T18:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Search and restrict Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436150#M802302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So here you would want to see only Yellow?, but if for instance Tier was Silver, you would have wanted to see Silver and Yellow?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 18:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436150#M802302</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-21T18:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Search and restrict Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436151#M802303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies if that wasn't clear. What i meant was, based on the tier selected from the 1st condition in this example Yellow, i will need to show only those Name2 which have tiers equal to or lesser in terms of priority as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yellow&amp;gt;Silver&amp;gt;Brown&amp;gt;White&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this case i will be showing all the tiers since Yellow has highest priority, but there might be some scenarios where brown might be selected wherein only Brown or white needs to eb shown. So this needs to be dynamic. Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 18:36:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436151#M802303</guid>
      <dc:creator>sgarim41</dc:creator>
      <dc:date>2017-11-21T18:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Search and restrict Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436152#M802304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If its yellow, i will need to show all values lesser than or equal to in priority, so in this case Yellow, Silver, Bronze, White and in the case where the tier is Silver, should only show SIlver Bronze and N/A values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 18:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436152#M802304</guid>
      <dc:creator>sgarim41</dc:creator>
      <dc:date>2017-11-21T18:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Search and restrict Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436153#M802305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And you will ever be looking at&amp;nbsp; one ID at a time? Your users will never want to see more than one ID at any given point of time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 19:15:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436153#M802305</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-21T19:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Search and restrict Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436154#M802306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only one ID is displayed in the table at all times at a time which is based on a user search criteria. The Name1 values are based on the ID and hence get populated accordingly, but the Name2 values will change based on the selected ID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 19:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436154#M802306</guid>
      <dc:creator>sgarim41</dc:creator>
      <dc:date>2017-11-21T19:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Search and restrict Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436155#M802307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vVar&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Name1 = Name2, Tier)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If($(vVar) = 'Yellow', Tier,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If($(vVar) = 'Silver', If(Match(Tier, 'Silver', 'Brown', 'White'), Tier),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;If($(vVar) = '&lt;SPAN style="font-size: 13.3333px;"&gt;Brown&lt;/SPAN&gt;', If(Match(Tier, 'Brown', 'White'), Tier),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;If($(vVar) = '&lt;SPAN style="font-size: 13.3333px;"&gt;White&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;', If(Match(Tier, 'White'), Tier)))))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 19:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436155#M802307</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-21T19:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Search and restrict Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436156#M802308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny for your suggestion. I was able to create the solution with your help. For the first part i created 2 variables 1 for holding the Name1 field value based on selected ID and another vOppName to hold the value of the Tier for the correspoding Name1 field as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vOppName= &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Maxstring&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;Name2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'$(vName)'}&amp;gt;}Tier&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once this was done it was just limiting the values based on priority like you have mentioned. But only difference, i used the following syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(vVar = 'Yellow', Tier,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(vVar = 'Silver', If(Match(Tier, 'Silver', 'Brown', 'White'), Tier),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.33px;"&gt;If(vVar = '&lt;SPAN style="font-size: 13.33px;"&gt;Brown&lt;/SPAN&gt;', If(Match(Tier, 'Brown', 'White'), Tier),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;&lt;STRONG style="font-size: 13.33px;"&gt;If(vVar = '&lt;SPAN style="font-size: 13.33px;"&gt;White&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.33px;"&gt;&lt;STRONG&gt;', If(Match(Tier, 'White'), Tier)))))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;&lt;STRONG&gt;Not sure why the $(vVar) which i usually use for variables did not work. Anyhow thanks for your help appreciate it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 21:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436156#M802308</guid>
      <dc:creator>sgarim41</dc:creator>
      <dc:date>2017-11-21T21:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Search and restrict Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436157#M802309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very nice, I think the $(vVar) would have worked, if the variable was defined without a equal sign. I always get confused with the variables and tend not to use them. But, I am glad you were able to figure it out on your own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 13:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-and-restrict-Straight-table/m-p/1436157#M802309</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-22T13:44:47Z</dc:date>
    </item>
  </channel>
</rss>

