<?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: Help With Colourmix1 Expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Help-With-Colourmix1-Expression/m-p/1376921#M31188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume that the formula you use gives a "wrong" result. Colormix expects a value between 0 and 1.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement" style="font-weight: bold; color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 16px;"&gt;Colormix1 (&lt;/SPAN&gt;&lt;SPAN class="bnf_token" style="font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: #0f0f0f;"&gt;Value , ColorZero , ColorOne&lt;/SPAN&gt;&lt;SPAN class="statement" style="font-weight: bold; color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 16px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"Value" needs to be a real number between 0 and 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does your vDenim look like? It could also be that that one is not correct and therefore Qlik doesn't know what colour to use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Aug 2017 10:57:10 GMT</pubDate>
    <dc:creator>Lesny_Eva</dc:creator>
    <dc:date>2017-08-24T10:57:10Z</dc:date>
    <item>
      <title>Help With Colourmix1 Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Help-With-Colourmix1-Expression/m-p/1376920#M31187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a colourmix expression that looks like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colormix1(sum($(vExpenditureAmount))-$(=min(aggr(sum($(vExpenditureAmount)), [Expense Category]))))/$(=(max(aggr(sum($(vExpenditureAmount)), [Expense Category]))-min(aggr(sum($(vExpenditureAmount)), [Expense Category])))),white(), $(vDenim))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable, vExpenditureAmount, looks like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum([Session Transaction Fee]) + &lt;/P&gt;&lt;P&gt;sum([Merchandise Shipping Fee Charged]) +&lt;/P&gt;&lt;P&gt;sum([Institutional Transaction Fee]) + &lt;/P&gt;&lt;P&gt;sum([Institutional Transaction Fee]) +&lt;/P&gt;&lt;P&gt;sum([University Transaction Fee]) + &lt;/P&gt;&lt;P&gt;sum([Marketing Cost]) +&lt;/P&gt;&lt;P&gt;sum([Admin Expense]) + &lt;/P&gt;&lt;P&gt;sum([Operation Cost]) +&lt;/P&gt;&lt;P&gt;sum([Misc. Cost]) + &lt;/P&gt;&lt;P&gt;sum([IT Expenses Cost]) +&lt;/P&gt;&lt;P&gt;sum([IT Investment Total]) +&lt;/P&gt;&lt;P&gt;sum([Salary Total]) + &lt;/P&gt;&lt;P&gt;sum([CP Total])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When writing the colourmix1 expression I am given no error message and when I press apply, my piechart remains grey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is it that I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Alison &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:22:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-With-Colourmix1-Expression/m-p/1376920#M31187</guid>
      <dc:creator />
      <dc:date>2024-11-16T09:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help With Colourmix1 Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Help-With-Colourmix1-Expression/m-p/1376921#M31188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume that the formula you use gives a "wrong" result. Colormix expects a value between 0 and 1.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement" style="font-weight: bold; color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 16px;"&gt;Colormix1 (&lt;/SPAN&gt;&lt;SPAN class="bnf_token" style="font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: #0f0f0f;"&gt;Value , ColorZero , ColorOne&lt;/SPAN&gt;&lt;SPAN class="statement" style="font-weight: bold; color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 16px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"Value" needs to be a real number between 0 and 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does your vDenim look like? It could also be that that one is not correct and therefore Qlik doesn't know what colour to use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 10:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-With-Colourmix1-Expression/m-p/1376921#M31188</guid>
      <dc:creator>Lesny_Eva</dc:creator>
      <dc:date>2017-08-24T10:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help With Colourmix1 Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Help-With-Colourmix1-Expression/m-p/1376922#M31189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response. &lt;/P&gt;&lt;P&gt;Sorry, I am unsure of what you mean by my formula giving a 'wrong' result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vDemin looks like this:&lt;/P&gt;&lt;P&gt;RGB(21, 96, 189)&lt;/P&gt;&lt;P&gt;I'm pretty sure there's no issue with that as I've used it in other visualisations without complaint. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 15:30:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-With-Colourmix1-Expression/m-p/1376922#M31189</guid>
      <dc:creator />
      <dc:date>2017-08-24T15:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help With Colourmix1 Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Help-With-Colourmix1-Expression/m-p/1376923#M31190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The calculation you are using:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;sum($(vExpenditureAmount))-$(=min(aggr(sum($(vExpenditureAmount)), [Expense Category]))))/$(=(max(aggr(sum($(vExpenditureAmount)), [Expense Category]))-min(aggr(sum($(vExpenditureAmount)), [Expense Category]))))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;needs to between 0 and 1. If it is 2 it cannot be coloured.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I made a dummy table:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;IMG alt="2017-08-24 17_43_51-Qlik Sense Desktop.png" class="jive-image image-1" src="/legacyfs/online/174575_2017-08-24 17_43_51-Qlik Sense Desktop.png" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I used this to colour the column&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ColorMix1(if(wildmatch(City, 'Bern'),2, if(wildmatch(City, 'Berlin'),0,1)), blue(), red())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;The number is calculated using the same formula.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If the city is Bern, assign it the value 2, if it's Berlin the value 0 and everything else gets the value 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;As you can see, it correctly colours "1" with red, and "0" with blue. The "2" is not coloured though, and I didn't get an error in my formula (as Qlik doesn't know it can contain numbers bigger than 1)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 15:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-With-Colourmix1-Expression/m-p/1376923#M31190</guid>
      <dc:creator>Lesny_Eva</dc:creator>
      <dc:date>2017-08-24T15:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help With Colourmix1 Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Help-With-Colourmix1-Expression/m-p/1376924#M31191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I understand somewhat. But I am unsure how how best to amend my expression in light of your comment. Do you know how I could do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 15:56:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-With-Colourmix1-Expression/m-p/1376924#M31191</guid>
      <dc:creator />
      <dc:date>2017-08-24T15:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help With Colourmix1 Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Help-With-Colourmix1-Expression/m-p/1376925#M31192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First way is to check whether I am right - best way might be a table where you can check what value it gives you for your selected row dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression is really complicated, so I have no idea what it actually does.&lt;/P&gt;&lt;P&gt;But checking what kind of values you get might push you in the right direction on what you could change in the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 16:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-With-Colourmix1-Expression/m-p/1376925#M31192</guid>
      <dc:creator>Lesny_Eva</dc:creator>
      <dc:date>2017-08-24T16:02:33Z</dc:date>
    </item>
  </channel>
</rss>

