<?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 color for the line graph in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Custom-color-for-the-line-graph/m-p/1221899#M23767</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve this either with a calculated dimension as you tried to or with making a change to your data model and actually have a real dimension - which I think is a better data model anyway. I have enclosed your QVF updated with my changes and you can have a look at both solutions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;The first alternative based on your data model with two columns for the amounts:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="153662" alt="2017-02-20 00_07_58-Qlik Sense Desktop.png" class="jive-image image-1" src="/legacyfs/online/153662_2017-02-20 00_07_58-Qlik Sense Desktop.png" style="height: 336px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Measures Expression:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="153663" alt="2017-02-20 00_11_40-Qlik Sense Desktop.png" class="jive-image image-2" src="/legacyfs/online/153663_2017-02-20 00_11_40-Qlik Sense Desktop.png" style="height: 67px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Notice that you have to use the full ValueList('Sales','Target') which is the pseudo-name for the calculated dimension.&lt;/P&gt;&lt;P&gt;Furthermore since this ValueList() doubles the number of rows you have to make sure that you only pick every other row and that mandates a Mod()-function to check that we only pick half of the rows. It doesn't really matter is it is 1 or 0 we compare with...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Colors Custom Expression:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="153664" alt="2017-02-20 00_12_57-Qlik Sense Desktop.png" class="jive-image image-3" height="69" src="/legacyfs/online/153664_2017-02-20 00_12_57-Qlik Sense Desktop.png" style="height: 69px; width: 309.082px;" width="309" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;The second alternative where there is a table that has been unpivoted in the load script by using the CrossTable prefix&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="153665" alt="2017-02-20 00_10_20-Qlik Sense Desktop.png" class="image-4 jive-image" src="/legacyfs/online/153665_2017-02-20 00_10_20-Qlik Sense Desktop.png" style="height: 336px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Measures Expression:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="153666" alt="2017-02-20 00_11_19-Qlik Sense Desktop.png" class="image-5 jive-image" height="60" src="/legacyfs/online/153666_2017-02-20 00_11_19-Qlik Sense Desktop.png" style="height: 59.7581px; width: 475px;" width="475" /&gt;&lt;/P&gt;&lt;P&gt;Colors Custom Expression:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="153667" alt="2017-02-20 00_16_16-Qlik Sense Desktop.png" class="jive-image image-6" height="23" src="/legacyfs/online/153667_2017-02-20 00_16_16-Qlik Sense Desktop.png" style="height: 23.1667px; width: 278px;" width="278" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Feb 2017 23:26:55 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2017-02-19T23:26:55Z</dc:date>
    <item>
      <title>Custom color for the line graph</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-color-for-the-line-graph/m-p/1221898#M23766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have developed a line graph where I plot the Running Sales &amp;amp; Target for the month for each day. So as u progress the month; the chart shows an increasing sales vs target lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula for sales is as below:&lt;/P&gt;&lt;P&gt;RangeSum(Above(Sum(Sales)),0, RowNo(TOTAL)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The graph was perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user comes with a requirement that he need to show sales with green color and the target with blue color. So I tried to develop the graph using value list. Value list dont bring the right graph. I observe that the RangeSum function in not working properly in the value list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions? Or there is any other way to color the line graph with two variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2017 12:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-color-for-the-line-graph/m-p/1221898#M23766</guid>
      <dc:creator>madnanansari</dc:creator>
      <dc:date>2017-02-19T12:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom color for the line graph</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-color-for-the-line-graph/m-p/1221899#M23767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve this either with a calculated dimension as you tried to or with making a change to your data model and actually have a real dimension - which I think is a better data model anyway. I have enclosed your QVF updated with my changes and you can have a look at both solutions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;The first alternative based on your data model with two columns for the amounts:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="153662" alt="2017-02-20 00_07_58-Qlik Sense Desktop.png" class="jive-image image-1" src="/legacyfs/online/153662_2017-02-20 00_07_58-Qlik Sense Desktop.png" style="height: 336px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Measures Expression:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="153663" alt="2017-02-20 00_11_40-Qlik Sense Desktop.png" class="jive-image image-2" src="/legacyfs/online/153663_2017-02-20 00_11_40-Qlik Sense Desktop.png" style="height: 67px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Notice that you have to use the full ValueList('Sales','Target') which is the pseudo-name for the calculated dimension.&lt;/P&gt;&lt;P&gt;Furthermore since this ValueList() doubles the number of rows you have to make sure that you only pick every other row and that mandates a Mod()-function to check that we only pick half of the rows. It doesn't really matter is it is 1 or 0 we compare with...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Colors Custom Expression:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="153664" alt="2017-02-20 00_12_57-Qlik Sense Desktop.png" class="jive-image image-3" height="69" src="/legacyfs/online/153664_2017-02-20 00_12_57-Qlik Sense Desktop.png" style="height: 69px; width: 309.082px;" width="309" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;The second alternative where there is a table that has been unpivoted in the load script by using the CrossTable prefix&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="153665" alt="2017-02-20 00_10_20-Qlik Sense Desktop.png" class="image-4 jive-image" src="/legacyfs/online/153665_2017-02-20 00_10_20-Qlik Sense Desktop.png" style="height: 336px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Measures Expression:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="153666" alt="2017-02-20 00_11_19-Qlik Sense Desktop.png" class="image-5 jive-image" height="60" src="/legacyfs/online/153666_2017-02-20 00_11_19-Qlik Sense Desktop.png" style="height: 59.7581px; width: 475px;" width="475" /&gt;&lt;/P&gt;&lt;P&gt;Colors Custom Expression:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="153667" alt="2017-02-20 00_16_16-Qlik Sense Desktop.png" class="jive-image image-6" height="23" src="/legacyfs/online/153667_2017-02-20 00_16_16-Qlik Sense Desktop.png" style="height: 23.1667px; width: 278px;" width="278" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2017 23:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-color-for-the-line-graph/m-p/1221899#M23767</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-02-19T23:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom color for the line graph</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-color-for-the-line-graph/m-p/1221900#M23768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Infact I have four columns to work on :&lt;/P&gt;&lt;P&gt;Sales,&amp;nbsp; Target, Sales Last Year Same Month, Sales vs Target&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case how can I handle the Mod function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 09:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-color-for-the-line-graph/m-p/1221900#M23768</guid>
      <dc:creator>madnanansari</dc:creator>
      <dc:date>2017-02-21T09:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Custom color for the line graph</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-color-for-the-line-graph/m-p/1221901#M23769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what you mean by "Mod function" are you referring to Moduolo-function in expressions? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 12:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-color-for-the-line-graph/m-p/1221901#M23769</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-02-21T12:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Custom color for the line graph</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-color-for-the-line-graph/m-p/1221902#M23770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but thanks for your help. I have reached my target. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 13:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-color-for-the-line-graph/m-p/1221902#M23770</guid>
      <dc:creator>madnanansari</dc:creator>
      <dc:date>2017-02-21T13:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Custom color for the line graph</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-color-for-the-line-graph/m-p/1221903#M23771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome. Could you also please mark the question as answered too? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 23:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-color-for-the-line-graph/m-p/1221903#M23771</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-02-22T23:29:25Z</dc:date>
    </item>
  </channel>
</rss>

