<?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 How to set a Dimension with a formula in a line Chart / Colors / By dimension ? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-set-a-Dimension-with-a-formula-in-a-line-Chart-Colors-By/m-p/2525102#M106975</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;In Qlik Cloud in a Line Chart in Appearance / Colors and Legend / By Dimension&lt;BR /&gt;there is a button to use a formula to set the Dimension (please note i'm talking about By Dimension and &lt;STRONG&gt;NOT&lt;/STRONG&gt; By Expression).&lt;BR /&gt;Does someone knows what is the syntax to set the Dimension ?&lt;/P&gt;&lt;P&gt;For example, I want to write something like this :&lt;BR /&gt;=if([layout.switch_dim.field]=1,Brand,Site)&lt;/P&gt;&lt;P&gt;where Brand and Site are Dimensions in Master Measures (and not fields).&lt;/P&gt;&lt;P&gt;I don't manage to write it&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jul 2025 15:26:10 GMT</pubDate>
    <dc:creator>herard_bertrand</dc:creator>
    <dc:date>2025-07-23T15:26:10Z</dc:date>
    <item>
      <title>How to set a Dimension with a formula in a line Chart / Colors / By dimension ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-set-a-Dimension-with-a-formula-in-a-line-Chart-Colors-By/m-p/2525102#M106975</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;In Qlik Cloud in a Line Chart in Appearance / Colors and Legend / By Dimension&lt;BR /&gt;there is a button to use a formula to set the Dimension (please note i'm talking about By Dimension and &lt;STRONG&gt;NOT&lt;/STRONG&gt; By Expression).&lt;BR /&gt;Does someone knows what is the syntax to set the Dimension ?&lt;/P&gt;&lt;P&gt;For example, I want to write something like this :&lt;BR /&gt;=if([layout.switch_dim.field]=1,Brand,Site)&lt;/P&gt;&lt;P&gt;where Brand and Site are Dimensions in Master Measures (and not fields).&lt;/P&gt;&lt;P&gt;I don't manage to write it&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 15:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-set-a-Dimension-with-a-formula-in-a-line-Chart-Colors-By/m-p/2525102#M106975</guid>
      <dc:creator>herard_bertrand</dc:creator>
      <dc:date>2025-07-23T15:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a Dimension with a formula in a line Chart / Colors / By dimension ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-set-a-Dimension-with-a-formula-in-a-line-Chart-Colors-By/m-p/2525106#M106976</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;may be try&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AGRR(&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if([layout.switch_dim.field]=1,Brand,Site),&amp;nbsp;Brand,Site)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 16:17:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-set-a-Dimension-with-a-formula-in-a-line-Chart-Colors-By/m-p/2525106#M106976</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2025-07-23T16:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a Dimension with a formula in a line Chart / Colors / By dimension ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-set-a-Dimension-with-a-formula-in-a-line-Chart-Colors-By/m-p/2525110#M106978</link>
      <description>&lt;P&gt;&lt;SPAN&gt;try like below &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(GetFieldSelections([layout.switch_dim.field])=1,Brand,Site)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 17:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-set-a-Dimension-with-a-formula-in-a-line-Chart-Colors-By/m-p/2525110#M106978</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2025-07-23T17:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a Dimension with a formula in a line Chart / Colors / By dimension ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-set-a-Dimension-with-a-formula-in-a-line-Chart-Colors-By/m-p/2525165#M106986</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thanks for your suggestions ;), that's correct but I forgot to precise :&lt;BR /&gt;=&amp;gt; I want to write a formula that will return an existing dimension (not a calculted one).&lt;BR /&gt;&lt;BR /&gt;Details :&amp;nbsp;&lt;BR /&gt;We are in the color / by dimension part, and I'd like to use an existing dimension there, because I set customs colors on it ( in master measure).&lt;BR /&gt;Remark 1 :&amp;nbsp;&lt;BR /&gt;By the way, if I use a field with color result in by dimension such as rgb(244,12,10), it will correctly set the color of the graph BUT will display rgb(244,12,10) in Legend &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; .&lt;BR /&gt;Remark 2: Before you suggest it, If I use Color by expression, first I don't want custom colors on all field values, 2) the legend disapears with expression&lt;BR /&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 08:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-set-a-Dimension-with-a-formula-in-a-line-Chart-Colors-By/m-p/2525165#M106986</guid>
      <dc:creator>herard_bertrand</dc:creator>
      <dc:date>2025-07-24T08:01:28Z</dc:date>
    </item>
  </channel>
</rss>

