<?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: Highlight row where multiple fields have an answer of 'yes' in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Highlight-row-where-multiple-fields-have-an-answer-of-yes/m-p/1730064#M722232</link>
    <description>&lt;P&gt;Would you be able to share a sample?&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jul 2020 21:53:21 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-07-22T21:53:21Z</dc:date>
    <item>
      <title>Highlight row where multiple fields have an answer of 'yes'</title>
      <link>https://community.qlik.com/t5/QlikView/Highlight-row-where-multiple-fields-have-an-answer-of-yes/m-p/1729739#M722229</link>
      <description>&lt;P&gt;We utilize qlik with a client database. I'm trying to highlight rows based on vulnerability or client existing with a greater need (low(green), medium(yellow), high(red)). There are a series of questions like [dental services]={'Yes'}, [financial counseling]={'Yes'}, [rent payment]={'Yes'} etc. I'm trying to show where each unique client ID indicates yes one time (highlight green), where yes appears twice (highlight yellow), where yes appears 3 or more times (highlight red).&lt;/P&gt;&lt;P&gt;Is this possible? If so, can I also turn this into a filter?&lt;/P&gt;&lt;P&gt;Thanks, Brittany&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Highlight-row-where-multiple-fields-have-an-answer-of-yes/m-p/1729739#M722229</guid>
      <dc:creator>bcoronado</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight row where multiple fields have an answer of 'yes'</title>
      <link>https://community.qlik.com/t5/QlikView/Highlight-row-where-multiple-fields-have-an-answer-of-yes/m-p/1729773#M722230</link>
      <description>&lt;P&gt;just to give you an idea.&lt;/P&gt;&lt;P&gt;Expression wise you can write an expression to background color&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bg_color.png" style="width: 662px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37851i9192C196530F8D62/image-size/large?v=v2&amp;amp;px=999" role="button" title="bg_color.png" alt="bg_color.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if( count([dental services]={'Yes'} Client_ID) =1, green(),
	if( count([dental services]={'Yes'} Client_ID) =2, yellow(),
		if( count([dental services]={'Yes'} Client_ID) =2, red()))) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i would really recommend you to calculate that as a new column in script.&lt;/P&gt;&lt;P&gt;That also gives you an easy option to use that column in a filter.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 05:55:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Highlight-row-where-multiple-fields-have-an-answer-of-yes/m-p/1729773#M722230</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2020-07-22T05:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight row where multiple fields have an answer of 'yes'</title>
      <link>https://community.qlik.com/t5/QlikView/Highlight-row-where-multiple-fields-have-an-answer-of-yes/m-p/1729990#M722231</link>
      <description>&lt;P&gt;Thanks for the feedback.&lt;/P&gt;&lt;P&gt;The expression below counts the number of clients with a 'yes' regardless of the occurrence but am not sure how to sum the values of 'yes' regardless of which field it's coming from.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Count where yes occurs.PNG" style="width: 322px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37889i162C24B10E741FC8/image-dimensions/322x458?v=v2" width="322" height="458" role="button" title="Count where yes occurs.PNG" alt="Count where yes occurs.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Below is a visual of what's being&amp;nbsp; captured. Thank you for the color guidance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Highlight.PNG" style="width: 711px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37888iAF5F9A2C4307204D/image-dimensions/711x64?v=v2" width="711" height="64" role="button" title="Highlight.PNG" alt="Highlight.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 16:22:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Highlight-row-where-multiple-fields-have-an-answer-of-yes/m-p/1729990#M722231</guid>
      <dc:creator>bcoronado</dc:creator>
      <dc:date>2020-07-22T16:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight row where multiple fields have an answer of 'yes'</title>
      <link>https://community.qlik.com/t5/QlikView/Highlight-row-where-multiple-fields-have-an-answer-of-yes/m-p/1730064#M722232</link>
      <description>&lt;P&gt;Would you be able to share a sample?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 21:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Highlight-row-where-multiple-fields-have-an-answer-of-yes/m-p/1730064#M722232</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-22T21:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight row where multiple fields have an answer of 'yes'</title>
      <link>https://community.qlik.com/t5/QlikView/Highlight-row-where-multiple-fields-have-an-answer-of-yes/m-p/1730085#M722233</link>
      <description>&lt;P&gt;In your screenshot of the visual of what's being captured... What do you want different about it? Could you explain a little more about what the logic needs to be?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 23:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Highlight-row-where-multiple-fields-have-an-answer-of-yes/m-p/1730085#M722233</guid>
      <dc:creator>benvatvandata</dc:creator>
      <dc:date>2020-07-22T23:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight row where multiple fields have an answer of 'yes'</title>
      <link>https://community.qlik.com/t5/QlikView/Highlight-row-where-multiple-fields-have-an-answer-of-yes/m-p/1730269#M722234</link>
      <description>&lt;P&gt;The example being shown is from excel, not qlik. I want the visual to appear in qlik but I only know how to count the 1 client where a yes occurs, not the sum of yes' per client ID.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 12:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Highlight-row-where-multiple-fields-have-an-answer-of-yes/m-p/1730269#M722234</guid>
      <dc:creator>bcoronado</dc:creator>
      <dc:date>2020-07-23T12:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight row where multiple fields have an answer of 'yes'</title>
      <link>https://community.qlik.com/t5/QlikView/Highlight-row-where-multiple-fields-have-an-answer-of-yes/m-p/1730280#M722235</link>
      <description>&lt;P&gt;better way is to create a flags in script. You can create the flags for each individual column having values yes like below&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;load&lt;BR /&gt;if(Field1='yes',1,0) as Flag_field1&lt;BR /&gt;if(Field2='yes',1,0) as Flag_field2,&lt;BR /&gt;if(Field3='yes',1,0) as Flag_field3,&lt;BR /&gt;......&lt;BR /&gt;From source;&lt;/P&gt;&lt;P&gt;Here, Field1, Field2, Field3 are the fields having values yes or no which you can replace with your actual field names&lt;/P&gt;&lt;P&gt;Now in your Qlikview chart you can write below formula in background color expression&lt;BR /&gt;Note: You need to write this formula in background color of all your dimensions and expressions&lt;/P&gt;&lt;P&gt;= if(rangesum(Flag_field1,Flag_field2,Flag_field3)=1, green(),&lt;BR /&gt;if(rangesum(Flag_field1,Flag_field2,Flag_field3)=2, yellow(),&lt;BR /&gt;if(rangesum(Flag_field1,Flag_field2,Flag_field3)&amp;gt;=3, red())))&lt;/P&gt;&lt;P&gt;Note: In above rangesum formula include all the flags&lt;/P&gt;&lt;P&gt;If you don't want to create flags in script then write below formula in background color expression&lt;/P&gt;&lt;P&gt;if(rangesum(if(Field1='yes',1,0),&lt;BR /&gt;if(Field2='yes',1,0),&lt;BR /&gt;if(Field3='yes',1,0))=1, green(),&lt;BR /&gt;if(rangesum(if(Field1='yes',1,0),&lt;BR /&gt;if(Field2='yes',1,0),&lt;BR /&gt;if(Field3='yes',1,0))=2, yellow(),&lt;BR /&gt;if(rangesum( if(Field1='yes',1,0),&lt;BR /&gt;if(Field2='yes',1,0),&lt;BR /&gt;if(Field3='yes',1,0))&amp;gt;=3, red())))&lt;/P&gt;&lt;P&gt;Again within rangesum include if statements for each Fields.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 12:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Highlight-row-where-multiple-fields-have-an-answer-of-yes/m-p/1730280#M722235</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-23T12:51:59Z</dc:date>
    </item>
  </channel>
</rss>

