<?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 Qlikview - Edit Background Color for All Expressions at Once in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-Edit-Background-Color-for-All-Expressions-at-Once/m-p/1404607#M512779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My dashboard has 40 sheets, each with its own pivot table including 10-30 expressions per pivot table. I am trying to do a mass color edit. Is it possible to loop through all of these with a macro do change the color background for each expression? The goal is to get the subtotals in all pivot tables to be a particular color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently using this function in the color background under expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(ColumnNo() = 0,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RGB(141, 180, 226))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Oct 2017 17:57:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-10-05T17:57:34Z</dc:date>
    <item>
      <title>Qlikview - Edit Background Color for All Expressions at Once</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Edit-Background-Color-for-All-Expressions-at-Once/m-p/1404607#M512779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My dashboard has 40 sheets, each with its own pivot table including 10-30 expressions per pivot table. I am trying to do a mass color edit. Is it possible to loop through all of these with a macro do change the color background for each expression? The goal is to get the subtotals in all pivot tables to be a particular color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently using this function in the color background under expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(ColumnNo() = 0,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RGB(141, 180, 226))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 17:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Edit-Background-Color-for-All-Expressions-at-Once/m-p/1404607#M512779</guid>
      <dc:creator />
      <dc:date>2017-10-05T17:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview - Edit Background Color for All Expressions at Once</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Edit-Background-Color-for-All-Expressions-at-Once/m-p/1404608#M512780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This thread contains a macro that colors the backgrounds of all dimensions in a chart. Maybe you can modify it for expressions. You would need to add a loop to get all charts instead of just the one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 19:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Edit-Background-Color-for-All-Expressions-at-Once/m-p/1404608#M512780</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-10-05T19:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview - Edit Background Color for All Expressions at Once</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Edit-Background-Color-for-All-Expressions-at-Once/m-p/1404609#M512781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already solved it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ChangeColors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set allValues = ActiveDocument.Fields("Variable").GetPossibleValues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;msgbox allValues.Count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i=6 to allValues.Count-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set testing = ActiveDocument.GetSheetObject(allValues.Item(i).Text + " Pivot").GetProperties.Expressions '.Item(0).Data.ExpressionDat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox allValues.Item(i).Text + " Pivot"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; expressionCount = testing.count - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For iteration = 0 to expressionCount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; testing.Item(iteration).Item(0).Data.AttributeExpressions.BkgColorExp.Definition.v = "$(Subtotal_Blue)" ' $(Subtotal_Blue)= IF(ColumnNo() = 0, RGB(141, 180, 226)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.GetSheetObject(allValues.Item(i).Text + " Pivot").SetProperties testing&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 19:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Edit-Background-Color-for-All-Expressions-at-Once/m-p/1404609#M512781</guid>
      <dc:creator />
      <dc:date>2017-10-05T19:28:23Z</dc:date>
    </item>
  </channel>
</rss>

