<?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 Show Value on Bar Chart (Conditional data value based on field selection) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-Value-on-Bar-Chart-Conditional-data-value-based-on-field/m-p/303279#M588513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, DV. &lt;/P&gt;&lt;P&gt;going back to your original requirement, you can try to use the total on the expression.&lt;/P&gt;&lt;P&gt;In your case, it can be something like:&lt;/P&gt;&lt;P&gt;sum(value) / sum( total &amp;lt;TimeStamp&amp;gt; Value) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2011 16:27:29 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2011-05-16T16:27:29Z</dc:date>
    <item>
      <title>Show Value on Bar Chart (Conditional data value based on field selection)</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Value-on-Bar-Chart-Conditional-data-value-based-on-field/m-p/303278#M588512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;IMG src="https://community.qlik.com/" /&gt;Dear All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;I am using a stacked bar chart and I wanted to display the "Values on Data Points" - conditionally. If I select a value from a field the data points should show and if I dont select anything the chart should hide them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;I thought I can use the below expression in the (Sub expression - Show Value), however I had realised this works only for the line chart and does not work on bar chart. Here is the expression...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;=IF( GetSelectedCount(MyField) &amp;gt; 0 , 0, 1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Please can someone help me on this? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Original Requirement :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;The original requirement is to show 100% across each hour and not 5.56%. I can't seem to figure how to get this done, so I thought I would hide 5.56% and show the values when there is selection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Hope this is making sense. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Cheers - DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 16:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Value-on-Bar-Chart-Conditional-data-value-based-on-field/m-p/303278#M588512</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-05-16T16:23:18Z</dc:date>
    </item>
    <item>
      <title>Show Value on Bar Chart (Conditional data value based on field selection)</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Value-on-Bar-Chart-Conditional-data-value-based-on-field/m-p/303279#M588513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, DV. &lt;/P&gt;&lt;P&gt;going back to your original requirement, you can try to use the total on the expression.&lt;/P&gt;&lt;P&gt;In your case, it can be something like:&lt;/P&gt;&lt;P&gt;sum(value) / sum( total &amp;lt;TimeStamp&amp;gt; Value) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 16:27:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Value-on-Bar-Chart-Conditional-data-value-based-on-field/m-p/303279#M588513</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-16T16:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Show Value on Bar Chart (Conditional data value based on field selection)</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Value-on-Bar-Chart-Conditional-data-value-based-on-field/m-p/303280#M588514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Erich - Thanks for quick reply. I really need to this to be done ASAP. Here is the actual expression which I am using...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;STRONG&gt;=COUNT({$&amp;lt;Resp_ID = ,&amp;nbsp; Q_No ={'Q1'} &amp;gt;} Resp_ID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;And I am using two dimensions...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;TimeStamp &amp;amp; Behaviour.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;I hope this make sense... Please can you tell me on how to integrate the expression to show 100% for each hour or how to hide the data value % when there is no selection on Behaviour.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Thanks - DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 17:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Value-on-Bar-Chart-Conditional-data-value-based-on-field/m-p/303280#M588514</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-05-16T17:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Show Value on Bar Chart (Conditional data value based on field selection)</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Value-on-Bar-Chart-Conditional-data-value-based-on-field/m-p/303281#M588515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;I had tried to use the below expression and it does not solve the issue...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;STRONG&gt;=COUNT({$&amp;lt;Resp_ID = ,&amp;nbsp; Q_No ={'Q1'} &amp;gt;} TOTAL Resp_ID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;STRONG&gt;Thanks - DV&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 17:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Value-on-Bar-Chart-Conditional-data-value-based-on-field/m-p/303281#M588515</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-05-16T17:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Show Value on Bar Chart (Conditional data value based on field selection)</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Value-on-Bar-Chart-Conditional-data-value-based-on-field/m-p/303282#M588516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you need something faster, I will send this without really trying it before. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= dual ( IF( GetSelectedCount(MyField) &amp;gt; 0 , '' , &lt;/P&gt;&lt;P&gt;COUNT({$&amp;lt;Resp_ID = ,&amp;nbsp; Q_No ={'Q1'} &amp;gt;}&amp;nbsp; Resp_ID)/&lt;/P&gt;&lt;P&gt;COUNT({$&amp;lt;Resp_ID = ,&amp;nbsp; Q_No ={'Q1'} &amp;gt;} total&amp;lt;Timestamp&amp;gt; Resp_ID)), &lt;/P&gt;&lt;P&gt;COUNT({$&amp;lt;Resp_ID = ,&amp;nbsp; Q_No ={'Q1'} &amp;gt;}&amp;nbsp; Resp_ID)/&lt;/P&gt;&lt;P&gt;COUNT({$&amp;lt;Resp_ID = ,&amp;nbsp; Q_No ={'Q1'} &amp;gt;} total&amp;lt;Timestamp&amp;gt; Resp_ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may require adjustments to your fields names, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 17:22:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Value-on-Bar-Chart-Conditional-data-value-based-on-field/m-p/303282#M588516</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-16T17:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Show Value on Bar Chart (Conditional data value based on field selection)</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Value-on-Bar-Chart-Conditional-data-value-based-on-field/m-p/303283#M588517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Hi Erich,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Thank you for your help. Much appreciated. Below expression is what I needed. Can you please explain the use the dual function in the above expression?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;I had stripped of dual and this just works the way I wanted. However I don't want miss out on your logic! so please can you explain in detail (if possible...)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;STRONG&gt;= IF( GetSelectedCount(Label_Text) &amp;gt; 0 , &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;STRONG&gt;COUNT({$&amp;lt;Resp_ID = ,&amp;nbsp; Q_No ={'Q1'} &amp;gt;}&amp;nbsp; Resp_ID) ,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;STRONG&gt;COUNT({$&amp;lt;Resp_ID = ,&amp;nbsp; Q_No ={'Q1'} &amp;gt;}&amp;nbsp; Resp_ID)/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;STRONG&gt;COUNT({$&amp;lt;Resp_ID = ,&amp;nbsp; Q_No ={'Q1'} &amp;gt;} total &amp;lt;TimeStamp&amp;gt; Resp_ID))&lt;/STRONG&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="font-family: trebuchet ms,geneva;"&gt;Cheers - DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 08:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Value-on-Bar-Chart-Conditional-data-value-based-on-field/m-p/303283#M588517</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-05-17T08:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Show Value on Bar Chart (Conditional data value based on field selection)</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Value-on-Bar-Chart-Conditional-data-value-based-on-field/m-p/303284#M588519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great you found a solution! &lt;/P&gt;&lt;P&gt;The dual function deals with the number representation on charts. &lt;/P&gt;&lt;P&gt;Each value can have a numeric real content and one string to represent. &lt;/P&gt;&lt;P&gt;So, in a bar chart, for example, the numeric value wil give you the size of the bar, and the string value as money.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, a date is basically a number. You can show any date as an integer, but I it formated to be represented as MMM/YYYY.&lt;/P&gt;&lt;P&gt;You can play with it and create a bar chart with bars of the size 1,2,3 and 4 and use the dual to show the opposite (4,3,2,1). &lt;/P&gt;&lt;P&gt;The syntax is dual( text, number) &lt;/P&gt;&lt;P&gt;I used dual to control the string representation of the calculation. So when the condition was fulfilled I would suppress the string, if not, I would present the result of the calculation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you prefer, I can send you an example later. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 10:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Value-on-Bar-Chart-Conditional-data-value-based-on-field/m-p/303284#M588519</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-17T10:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Show Value on Bar Chart (Conditional data value based on field selection)</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Value-on-Bar-Chart-Conditional-data-value-based-on-field/m-p/303285#M588521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Erich - Brilliant! I had just read the documentation on Dual Function. Your explanation is much simplier &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;I clearly understood the use of Dual expression. Please don't spend time mocking up an example, rather you use the same time for fellow user... helping them to solve their issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Many thanks for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;Cheers - DV&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 11:48:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Value-on-Bar-Chart-Conditional-data-value-based-on-field/m-p/303285#M588521</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-05-17T11:48:17Z</dc:date>
    </item>
  </channel>
</rss>

