<?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: Creating a legend via macro or expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359485#M574427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, so here is what you need to do for it to work with the listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keeping the same dimensions/expressions I had in the last post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: Drill Down&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions: &lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Count ({&amp;lt;Survey = {'Bad'}&amp;gt;}[Number of Calls]) &lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Count ({&amp;lt;Survey = {'Good'}&amp;gt;}[Number of Calls]) &lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Count ({&amp;lt;Survey = {'Not Rated'}&amp;gt;}[Number of Calls]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a background color to each of the dimensions so that the colors stay consistent when something is chosen from the list box:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Bad:&amp;nbsp; rgb(255, 83, 83)&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Good:&amp;nbsp; rgb(106, 154, 71)&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Not Rated:&amp;nbsp; rgb(75, 138, 243)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then add a Conditional to each expression:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Bad:&amp;nbsp; substringCount(GetFieldSelections(Survey, ',', 1000000000), 'Bad') &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Good:&amp;nbsp; substringCount(GetFieldSelections(Survey, ',', 1000000000), 'Good') &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Not Rated:&amp;nbsp; substringCount(GetFieldSelections(Survey, ',', 1000000000), 'Not Rated') &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/18849_Capture.PNG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2012 12:50:57 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2012-07-25T12:50:57Z</dc:date>
    <item>
      <title>Creating a legend via macro or expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359475#M574416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if it was possible to create a legend instead of using "Show Legend". Reason being, I have label in my legend that it appear as Null or "-" and I would like to get rid of that. I tried checking "Suppress When Value is Null" but it screws my bar chart. In order to create a legend, would I use expression or build a macro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just looking some guidance and direction &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cliff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 18:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359475#M574416</guid>
      <dc:creator />
      <dc:date>2012-07-19T18:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a legend via macro or expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359476#M574418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; If you want my advice,you must use macros only when necessary .&lt;/P&gt;&lt;P&gt;Can you post your file ,so i saw its?&lt;/P&gt;&lt;P&gt;Perhaps we can solve the problem of nul in the legend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marchetto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 18:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359476#M574418</guid>
      <dc:creator />
      <dc:date>2012-07-19T18:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a legend via macro or expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359477#M574419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it keeps code simpler and without macro security issues&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 18:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359477#M574419</guid>
      <dc:creator />
      <dc:date>2012-07-19T18:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a legend via macro or expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359478#M574420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have uploaded my Qlikview file, NOTE: I used Qlikview Personal Edition to create this file so I hope you able to access it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cliff &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 20:23:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359478#M574420</guid>
      <dc:creator />
      <dc:date>2012-07-19T20:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a legend via macro or expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359479#M574421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe this is what you want...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Checking "Suppress Value When Null" works for me...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 16:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359479#M574421</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2012-07-20T16:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a legend via macro or expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359480#M574422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Nicole,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats what I originally thought too, when I checked "Suppress Value When Null" it makes the Null disappear however it screws up the columns in my chart. They start to overlap when I make a selection...:S I have must checked something to cause the overlapping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" height="356" src="https://community.qlik.com/message/240226/" style="max-width: 1200px; max-height: 900px;" width="703" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made an attachment of what it does when i check "Suppress Value when NULL"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 17:19:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359480#M574422</guid>
      <dc:creator />
      <dc:date>2012-07-20T17:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a legend via macro or expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359481#M574423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's really strange.&amp;nbsp; When I check "Suppress Value When Null" on the Survey dimension (not the Drill Down one), it looks like this (which I believe is what you want?):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="18765" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.PNG" src="https://community.qlik.com/legacyfs/online/18765_Capture.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What version of QlikView are you using?&amp;nbsp; It works for me in both QV 11 SR1 and QV 9 SR 4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 12:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359481#M574423</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2012-07-23T12:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a legend via macro or expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359482#M574424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that is how I want the legend to look like. Have you played around with couple of selections in the listbox? I can get the survey to look like that when there no current selections. I am using Qlikview 11 Personal Edition. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 14:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359482#M574424</guid>
      <dc:creator />
      <dc:date>2012-07-23T14:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a legend via macro or expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359483#M574425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: "Drill Down" (get rid of the Survey dimension)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="18788" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.PNG" src="https://community.qlik.com/legacyfs/online/18788_Capture.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions: &lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Count ({&amp;lt;Survey = {'Bad'}&amp;gt;}[Number of Calls]) &lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Count ({&amp;lt;Survey = {'Good'}&amp;gt;}[Number of Calls]) &lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Count ({&amp;lt;Survey = {'Not Rated'}&amp;gt;}[Number of Calls]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="18789" class="jive-image-thumbnail jive-image" onclick="" alt="Capture2.PNG" src="https://community.qlik.com/legacyfs/online/18789_Capture2.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selections work for me when I make the chart that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After looking at your data structure, you have a synthetic table and a lot of synthetic keys.&amp;nbsp; This may be causing the original problem.&amp;nbsp; I would suggest you try to rewrite your load script to get rid of any synthetic tables/keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this solves your problem!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 18:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359483#M574425</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2012-07-23T18:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a legend via macro or expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359484#M574426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nicole it does kinda help. I am still trying to link the expressions to the my Survey listbox. The chart doesnt dynamically update when I make selections in the survey listbox (for examply only want to look like bad results). I am trying to use if statements in the expression to link the expressions with my survey listbox&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 21:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359484#M574426</guid>
      <dc:creator />
      <dc:date>2012-07-24T21:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a legend via macro or expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359485#M574427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, so here is what you need to do for it to work with the listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keeping the same dimensions/expressions I had in the last post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: Drill Down&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions: &lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Count ({&amp;lt;Survey = {'Bad'}&amp;gt;}[Number of Calls]) &lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Count ({&amp;lt;Survey = {'Good'}&amp;gt;}[Number of Calls]) &lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Count ({&amp;lt;Survey = {'Not Rated'}&amp;gt;}[Number of Calls]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a background color to each of the dimensions so that the colors stay consistent when something is chosen from the list box:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Bad:&amp;nbsp; rgb(255, 83, 83)&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Good:&amp;nbsp; rgb(106, 154, 71)&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Not Rated:&amp;nbsp; rgb(75, 138, 243)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then add a Conditional to each expression:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Bad:&amp;nbsp; substringCount(GetFieldSelections(Survey, ',', 1000000000), 'Bad') &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Good:&amp;nbsp; substringCount(GetFieldSelections(Survey, ',', 1000000000), 'Good') &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Not Rated:&amp;nbsp; substringCount(GetFieldSelections(Survey, ',', 1000000000), 'Not Rated') &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/18849_Capture.PNG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 12:50:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359485#M574427</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2012-07-25T12:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a legend via macro or expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359486#M574428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ahhhh thanks soo much nicole, clearly I was way off with the if statements &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for your help, much appreciated &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 21:30:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-legend-via-macro-or-expression/m-p/359486#M574428</guid>
      <dc:creator />
      <dc:date>2012-07-25T21:30:59Z</dc:date>
    </item>
  </channel>
</rss>

