<?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 Formula in Bar chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formula-in-Bar-chart/m-p/170696#M41006</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure how Mode() can help - it's returning the most commonly occurring data... I'd stick to your first formula and make changes to it:&lt;/P&gt;&lt;P&gt;You can try using a calculated dimension to exclude those Countries with no data for OT:&lt;/P&gt;&lt;P&gt;if(KPI='OT', Country)&lt;/P&gt;&lt;P&gt;and select "Suppress When Value is Null" to eliminate those countries with no data for OT.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Aug 2009 00:11:38 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2009-08-31T00:11:38Z</dc:date>
    <item>
      <title>Formula in Bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-in-Bar-chart/m-p/170695#M41005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a expression as below in the bar chart.&lt;/P&gt;&lt;P&gt;=((sum(if(KPI='TTL', Act_Data))-sum(if(KPI='OT', Act_Data)))/(sum(if(KPI='TTL', Act_Data)))). If there is no data for kpi='OT', Qlikview assigns a value of 0 and calculates the formula and it displays '100%' which is wrong and misleads the user.The dimension is a cyclic group of month and year.&lt;/P&gt;&lt;P&gt;I had the same problem in the table box, but I changed the formula as below and it worked. It will display '-' when there no value for KPI='OT'&lt;BR /&gt;=((mode(if(KPI='TTL', Act_Data))-mode(if(KPI='OT', Act_Data)))/(mode(if(KPI='TTL', Act_Data)))). Here the dimension is month, Year,region and country, and it displays '-' for a country if there is no value for 'OT' .&lt;/P&gt;&lt;P&gt;When I applied the same formula in the bar chart, it is not displaying for the whole region, eventhough only one country is not having the value for 'OT'. How to modify the formula, so that when there is no data, I don't want it to get dispalyed in the bar chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Aug 2009 23:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-in-Bar-chart/m-p/170695#M41005</guid>
      <dc:creator />
      <dc:date>2009-08-30T23:58:25Z</dc:date>
    </item>
    <item>
      <title>Formula in Bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-in-Bar-chart/m-p/170696#M41006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure how Mode() can help - it's returning the most commonly occurring data... I'd stick to your first formula and make changes to it:&lt;/P&gt;&lt;P&gt;You can try using a calculated dimension to exclude those Countries with no data for OT:&lt;/P&gt;&lt;P&gt;if(KPI='OT', Country)&lt;/P&gt;&lt;P&gt;and select "Suppress When Value is Null" to eliminate those countries with no data for OT.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 00:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-in-Bar-chart/m-p/170696#M41006</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-08-31T00:11:38Z</dc:date>
    </item>
    <item>
      <title>Formula in Bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-in-Bar-chart/m-p/170697#M41007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;I won't be able to write a calculated dimension, because my dimension is a cyclic group of Month, quarter and year. When I apply, 'Suppress when value is Null' to the cyclic group, it does not help. Is there any other way of getting it work.&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 01:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-in-Bar-chart/m-p/170697#M41007</guid>
      <dc:creator />
      <dc:date>2009-08-31T01:11:31Z</dc:date>
    </item>
    <item>
      <title>Formula in Bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-in-Bar-chart/m-p/170698#M41008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought your dimensins were Regions and Countries... Could you post an example, that we could use to review the problem?&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 01:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-in-Bar-chart/m-p/170698#M41008</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-08-31T01:15:48Z</dc:date>
    </item>
    <item>
      <title>Formula in Bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-in-Bar-chart/m-p/170699#M41009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached the model in the main message. If you see country 'Asia', the bar chart should go off blank, but it is displaying 100%. And if you see the straight table, it displays '-' for the %OT for the country 'Asia'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 01:32:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-in-Bar-chart/m-p/170699#M41009</guid>
      <dc:creator />
      <dc:date>2009-08-31T01:32:08Z</dc:date>
    </item>
  </channel>
</rss>

