<?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: Sort opportunities on stacked bar chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362862#M841178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vineeth, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i modify the background expression i have the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the color attribution is working well but not the sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you manage to sort like you did in your picture?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 May 2017 11:48:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-04T11:48:18Z</dc:date>
    <item>
      <title>Sort opportunities on stacked bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362855#M841171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with 1 of my chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart here under represents the revenues of all my opportunities by month of the current year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162144_Capture.JPG" style="height: 263px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I have here 2 types of opportunities: Won (colored here in red) and Negociation (in others colors).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'am trying to regroup all opportunities Won (in red) at the bottom of my chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do so, i have tried the following custom sort in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Stage, Stage order&lt;/P&gt;&lt;P&gt;Award (Closed Won), 1&lt;/P&gt;&lt;P&gt;Closed Lost, 2&lt;/P&gt;&lt;P&gt;Closed No Go, 3&lt;/P&gt;&lt;P&gt;Nego, 4&lt;/P&gt;&lt;P&gt;Proposal, 5&lt;/P&gt;&lt;P&gt;Prospect, 6&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While i'm trying to regroup (sort) my opportunities_id regarding the Stage.order, i still have some opportunities not at the right place (cf picture above where the yellow is not at the right place and this opportunities is in the Negociation stage).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362855#M841171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sort opportunities on stacked bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362856#M841172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to Sort Tab &amp;gt;&amp;gt; Select the Dimensions and &amp;gt;&amp;gt; Select Sort by Expression &amp;gt;&amp;gt; enter [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Stage order&lt;/SPAN&gt;] &amp;gt;&amp;gt; Ascending or Descending&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 09:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362856#M841172</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-05-04T09:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sort opportunities on stacked bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362857#M841173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you can see, it is what i did:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162159_Capture.JPG" style="height: 366px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i still have this big opportunity in yellow that is not correctly grouped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't figure out why this one, is not working as the others :s&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 10:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362857#M841173</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T10:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sort opportunities on stacked bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362858#M841174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please post a sample app&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 11:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362858#M841174</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-05-04T11:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sort opportunities on stacked bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362859#M841175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find in attachment an example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 11:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362859#M841175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T11:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sort opportunities on stacked bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362860#M841176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your Background expression is incomplete!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You added a comma at the end and did not specify &amp;lt;else&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Stage = 'Award (Closed Won)', RGB(155,187,88))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;either remove the comma like above or specify the rgbs for the remaining stages and it will work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 11:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362860#M841176</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-05-04T11:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sort opportunities on stacked bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362861#M841177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="sorting.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162179_sorting.PNG" style="height: 271px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 11:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362861#M841177</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-05-04T11:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sort opportunities on stacked bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362862#M841178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vineeth, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i modify the background expression i have the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the color attribution is working well but not the sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you manage to sort like you did in your picture?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 11:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362862#M841178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T11:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sort opportunities on stacked bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362863#M841179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Month field sorted by Numeric &amp;gt;&amp;gt; Ascending&lt;/P&gt;&lt;P&gt;Opp.ID&amp;nbsp; Sortedby Expression &amp;gt;&amp;gt; Stages. Sort Order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i think you also had sort by Text checked for Opp.Id , un-check that and only keep sort by Expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 11:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362863#M841179</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-05-04T11:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sort opportunities on stacked bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362864#M841180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Vineeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did it as you suggest it but i still have the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you transfer the QV you did to obtain this result? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible that something is wrong in my document settings? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 11:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362864#M841180</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T11:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sort opportunities on stacked bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362865#M841181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, when i tried i had a selection in the Stage field, that is why it worked. but i will tell you why it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are trying to Assign a color based on the Stage&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Opportunity.ID&amp;nbsp; can have more than 1 stage so even if we give sort order to it qlikview can't evaluate if it should sort on sort order for Award or Nego !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the field Opportunity_ID is a one to one relation with the Stage field, so instead of using field Opportunity.ID use Opportunity_ID as a dimension because one ID has only one stage assigned to it and hence only one sort value applies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense&lt;/P&gt;&lt;P&gt;&lt;IMG alt="chagnefield.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162188_chagnefield.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2chagnefield.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/162189_2chagnefield.PNG" style="height: 244px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 12:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-opportunities-on-stacked-bar-chart/m-p/1362865#M841181</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-05-04T12:26:32Z</dc:date>
    </item>
  </channel>
</rss>

