<?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: Custom Format Cell when a cell contains certain text in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Custom-Format-Cell-when-a-cell-contains-certain-text/m-p/1290879#M518318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you tried&lt;/P&gt;&lt;P&gt;=if(&lt;STRONG&gt;FindOneOf&lt;/STRONG&gt;(Fieldname,'&amp;gt;')&amp;gt;0,red(),green()) ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to do this for all expressions/dimensions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Nov 2016 13:08:26 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2016-11-23T13:08:26Z</dc:date>
    <item>
      <title>Custom Format Cell when a cell contains certain text</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Format-Cell-when-a-cell-contains-certain-text/m-p/1290876#M518315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem which could be solved with a function that doesn't exist, but am hoping somebody can work out a work-a-round to help me out with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table with many dimensions but am trying to format the background colour of some of the cells in those columns.&amp;nbsp; I want to highlight cells that contain a specific symbol in the text ('&amp;gt;'), but cant find a way of doing it in a formula that i can just apply to all dimensions as i need to reference the name of the dimension that corresponds to the cells in that column in any formula I can find.&amp;nbsp; And, after a while of searching, there is no function that calls the name of the dimension to apply to a formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd love to be able to do a =if(SubStringCount(ThisDimension(), '&amp;gt;'), vGreen, vWhite) or something...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So other than going into the background colour section of the collapsed menu of each dimension in the chart properties, and writing 70-odd individual formulae asking it to highlight anything containing a '&amp;gt;', is there a way, maybe using the custom format cell option (that has an 'apply to all dimensions' tick box), that I can just highlight any cell containing a '&amp;gt;'?&amp;nbsp; Or some sort of formula work-a-round that bypasses the need to reference the dimension name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all that makes sense!&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Lewis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 16:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Format-Cell-when-a-cell-contains-certain-text/m-p/1290876#M518315</guid>
      <dc:creator />
      <dc:date>2016-11-22T16:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Format Cell when a cell contains certain text</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Format-Cell-when-a-cell-contains-certain-text/m-p/1290877#M518316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately such functionalities aren't available and you will need to do it manually.&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, 23 Nov 2016 12:46:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Format-Cell-when-a-cell-contains-certain-text/m-p/1290877#M518316</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-11-23T12:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Format Cell when a cell contains certain text</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Format-Cell-when-a-cell-contains-certain-text/m-p/1290878#M518317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do vote this up though!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/ideas/2830" style="font-size: 10pt;" title="https://community.qlik.com/ideas/2830"&gt;https://community.qlik.com/ideas/2830&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 13:01:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Format-Cell-when-a-cell-contains-certain-text/m-p/1290878#M518317</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-11-23T13:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Format Cell when a cell contains certain text</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Format-Cell-when-a-cell-contains-certain-text/m-p/1290879#M518318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you tried&lt;/P&gt;&lt;P&gt;=if(&lt;STRONG&gt;FindOneOf&lt;/STRONG&gt;(Fieldname,'&amp;gt;')&amp;gt;0,red(),green()) ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to do this for all expressions/dimensions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 13:08:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Format-Cell-when-a-cell-contains-certain-text/m-p/1290879#M518318</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-11-23T13:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Format Cell when a cell contains certain text</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Format-Cell-when-a-cell-contains-certain-text/m-p/1290880#M518319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This still requires the user to do this for every dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 13:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Format-Cell-when-a-cell-contains-certain-text/m-p/1290880#M518319</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-11-23T13:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Format Cell when a cell contains certain text</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Format-Cell-when-a-cell-contains-certain-text/m-p/1290881#M518320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The below macro will allow you to add background expression for all dimensions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB coloralldimension()&lt;/P&gt;&lt;P&gt;set chart = ActiveDocument.GetSheetObject("CH01")&amp;nbsp;&amp;nbsp;&amp;nbsp; ' &amp;lt;&amp;lt;Use Your chart object ID here&lt;/P&gt;&lt;P&gt;set cp = chart.GetProperties&lt;/P&gt;&lt;P&gt;n = cp.Expressions.Count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i =&amp;nbsp; 0 to (n-1)&lt;/P&gt;&lt;P&gt;set fld = chart.getfield(i)&lt;/P&gt;&lt;P&gt;set bce = cp.Dimensions(i).AttributeExpressions.BkgColorExp&lt;/P&gt;&lt;P&gt;bce.Definition.v = "=if(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FindOneOf&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(&lt;/SPAN&gt;" &amp;amp; fld.Name &amp;amp;"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,'&amp;gt;')&amp;gt;0,red(),green())&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;chart.SetProperties cp&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 14:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Format-Cell-when-a-cell-contains-certain-text/m-p/1290881#M518320</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-11-23T14:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Format Cell when a cell contains certain text</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Format-Cell-when-a-cell-contains-certain-text/m-p/1290882#M518321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/228367"&gt;lewis.vaughan&lt;/A&gt; does this work for you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 17:51:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Format-Cell-when-a-cell-contains-certain-text/m-p/1290882#M518321</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-11-23T17:51:04Z</dc:date>
    </item>
  </channel>
</rss>

