<?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 Macro to check for &amp;quot;No data available&amp;quot; Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-check-for-quot-No-data-available-quot-Error/m-p/645280#M236454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a macro using which I am exporting some objects to powerpoint.&lt;/P&gt;&lt;P&gt;I dont want the graphs to be exported where there is no data to display. Can anyone help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Sep 2014 10:10:19 GMT</pubDate>
    <dc:creator>nikhilgandhi715</dc:creator>
    <dc:date>2014-09-08T10:10:19Z</dc:date>
    <item>
      <title>Macro to check for "No data available" Error</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-check-for-quot-No-data-available-quot-Error/m-p/645280#M236454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a macro using which I am exporting some objects to powerpoint.&lt;/P&gt;&lt;P&gt;I dont want the graphs to be exported where there is no data to display. Can anyone help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 10:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-check-for-quot-No-data-available-quot-Error/m-p/645280#M236454</guid>
      <dc:creator>nikhilgandhi715</dc:creator>
      <dc:date>2014-09-08T10:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to check for "No data available" Error</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-check-for-quot-No-data-available-quot-Error/m-p/645281#M236455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No data available isn't a error - it meant there isn't any data in your object for your certain selection. Therefore you need another approach. A very simply way is to count/sum the main-calculation from your object in a variable and if the result is greater then 0 then there are data available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var CheckData = if(sum(VALUE) &amp;gt; 0, true(), false())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ActiveDocument.Variables("CheckData").GetContent.String = true Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'your Export&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'nothing&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 11:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-check-for-quot-No-data-available-quot-Error/m-p/645281#M236455</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-09-08T11:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to check for "No data available" Error</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-check-for-quot-No-data-available-quot-Error/m-p/645282#M236456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case I had changed the code a bit. I am using 3 expressions so have created 3 variables and checked if the value is &amp;gt; 0 then export the graph else not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub TestData&lt;/P&gt;&lt;P&gt;Set v = ActiveDocument.Variables("vExp1")&lt;BR /&gt;vMyExp1 = v.GetContent.String&lt;/P&gt;&lt;P&gt;Set v = ActiveDocument.Variables("vExp2")&lt;BR /&gt;vMyExp2 = v.GetContent.String&lt;/P&gt;&lt;P&gt;Set v = ActiveDocument.Variables("vExp3")&lt;BR /&gt;vMyExp3 = v.GetContent.String&lt;/P&gt;&lt;P&gt;if vMyExp1 = "0" and vMyExp2 = "0" and vMyExp3 = "0" Then&lt;BR /&gt; Msgbox "Do Not Export to Powerpoint"&lt;BR /&gt;Else&lt;BR /&gt; Msgbox "Export to Powerpoint"&lt;BR /&gt;End if&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 13:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-check-for-quot-No-data-available-quot-Error/m-p/645282#M236456</guid>
      <dc:creator>nikhilgandhi715</dc:creator>
      <dc:date>2014-09-08T13:41:49Z</dc:date>
    </item>
  </channel>
</rss>

