<?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: Render Report only if records in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1307282#M326232</link>
    <description>&lt;P&gt;Now in your case you will need to set a condition True false based on the Count tool and then with a IF formula you can set the Detour variable to be True or False&lt;/P&gt;</description>
    <pubDate>Fri, 16 Aug 2024 08:00:50 GMT</pubDate>
    <dc:creator>OTrieger</dc:creator>
    <dc:date>2024-08-16T08:00:50Z</dc:date>
    <item>
      <title>Render Report only if records</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1306654#M326102</link>
      <description>&lt;P&gt;Hello, I've seen a few questions about how to only generate an output file if there are records.&amp;nbsp; I have a similar problem but those answers aren't applying to my issue.&amp;nbsp; I only want to render a report or generate a table if I have records present.&amp;nbsp; Eventually I'll be sending an email out, so I don't want the email to go out with a blank report.&amp;nbsp; Only if there are records in it... any help would be much appreciated.&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 20:20:01 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1306654#M326102</guid>
      <dc:creator>JGHOLLAND</dc:creator>
      <dc:date>2024-08-14T20:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Render Report only if records</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1306773#M326130</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/447580"&gt;@JGHOLLAND&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can use the Detour tool to get that done.&lt;BR /&gt;&lt;BR /&gt;Put a Count Tool and then a condition if&amp;nbsp; count equal zero then 1 else 0 or something similar.&lt;BR /&gt;&lt;BR /&gt;Then what you will need to do in a formula tool, update the XML attribute of the XML code and then connect it to a Batch Macro. Your Control Tool will be connected to a Detour Tool, one end will be connected to the email and then other end can be connected to a message tool getting a message that no data available. In that manager based on the data will flow to the email tool or to the message tool.&lt;BR /&gt;&lt;BR /&gt;Another way, with the same concept will be to do the same but with a Radio Button Tool XML attribute. In the batch macro the control tool will be connected to the Radio Button Tool which will be connected to Condition tool and 2 Action tools to a Container that will be enable or disable based on the data. Obviously the email tool will be in that container.&lt;BR /&gt;&lt;BR /&gt;Any of the above should work.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 06:25:29 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1306773#M326130</guid>
      <dc:creator>OTrieger</dc:creator>
      <dc:date>2024-08-15T06:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Render Report only if records</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1307037#M326191</link>
      <description>&lt;P&gt;Thank you so much for the help- is there any way you could please post an example of this solution?&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 16:22:01 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1307037#M326191</guid>
      <dc:creator>JGHOLLAND</dc:creator>
      <dc:date>2024-08-15T16:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Render Report only if records</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1307052#M326199</link>
      <description>&lt;P&gt;This is how I was attempting to do this.... I also click "Cancel Running Workflow on Error" - having 0 records should make this give an error.&amp;nbsp; It still seems to render the PDF (albeit blank) though...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 16:42:33 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1307052#M326199</guid>
      <dc:creator>JGHOLLAND</dc:creator>
      <dc:date>2024-08-15T16:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Render Report only if records</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1307103#M326217</link>
      <description>&lt;P&gt;Could you please post an example of what you describe?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 18:50:59 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1307103#M326217</guid>
      <dc:creator>JGHOLLAND</dc:creator>
      <dc:date>2024-08-15T18:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Render Report only if records</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1307281#M326231</link>
      <description>&lt;P&gt;Ok, this is an example, very similar.&lt;BR /&gt;The first thing is to see the XML code for the tool:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Detour.PNG" style="width: 489px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/369143i17BDDA0D9BE15A4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Detour.PNG" alt="Detour.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 07:58:58 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1307281#M326231</guid>
      <dc:creator>OTrieger</dc:creator>
      <dc:date>2024-08-16T07:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Render Report only if records</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1307282#M326232</link>
      <description>&lt;P&gt;Now in your case you will need to set a condition True false based on the Count tool and then with a IF formula you can set the Detour variable to be True or False&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 08:00:50 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1307282#M326232</guid>
      <dc:creator>OTrieger</dc:creator>
      <dc:date>2024-08-16T08:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Render Report only if records</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1308429#M326454</link>
      <description>&lt;P&gt;I'll be honest, I'm not tracking this exactly..&amp;nbsp; I understand if you can't b/c you're busy, but if you could edit the .yxmd file I put above, I'd appreciate it.&amp;nbsp; I'm not following the screen shots and how everything is connected in your solution.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 22:00:24 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1308429#M326454</guid>
      <dc:creator>JGHOLLAND</dc:creator>
      <dc:date>2024-08-19T22:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Render Report only if records</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1308541#M326477</link>
      <description>&lt;P&gt;Here is a snippet with the sequence, before the batch macro and in the batch macro. If you still find it hard go and do the training on macros and batch macros to fully understand the concept of it and how it works. I can guide you however you need to do it and that's requires understanding, something that I cannot do for you. I hope that the attached snippet will give you more mass on how it should be.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Macro.PNG" style="width: 686px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/369792i75C29C4B9427EB94/image-size/large?v=v2&amp;amp;px=999" role="button" title="Macro.PNG" alt="Macro.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 06:40:04 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1308541#M326477</guid>
      <dc:creator>OTrieger</dc:creator>
      <dc:date>2024-08-20T06:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Render Report only if records</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1308591#M326483</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/447580"&gt;@JGHOLLAND&lt;/a&gt;,&amp;nbsp;are you on a recent version of Designer (2023.1+)? If so, Control Containers will do exactly what you're after, as they're designed to orchestrate sections of a workflow sequentially/conditionally. I wrote a blog on their functionality - you're looking for the 'Running parts of your workflow conditionally' section:&amp;nbsp;&lt;A href="https://www.databasyx.com/blogs/using-control-containers-in-alteryx-designer" target="_blank"&gt;https://www.databasyx.com/blogs/using-control-containers-in-alteryx-designer&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 09:10:52 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1308591#M326483</guid>
      <dc:creator>DataNath</dc:creator>
      <dc:date>2024-08-20T09:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Render Report only if records</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1308754#M326535</link>
      <description>&lt;P&gt;Hi Nathan! Thanks so much for the response and blog post.&amp;nbsp; I looked it over and found it super easy to follow.&amp;nbsp; However, I tried and I'm still not getting the desired effect- it renders the report regardless of how many records I have present (0, 4, 20).&amp;nbsp; I just don't want a blank report being rendered, and thus sent out via email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what I'm doing wrong here?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 15:02:59 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1308754#M326535</guid>
      <dc:creator>JGHOLLAND</dc:creator>
      <dc:date>2024-08-20T15:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Render Report only if records</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1309274#M326681</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/447580"&gt;@JGHOLLAND&lt;/a&gt;&amp;nbsp;- I forgot that I'd come across this issue before and myself along with a couple of other colleagues couldn't find a solution with Control Containers not behaving as expected. We ended up doing what&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/205752"&gt;@OTrieger&lt;/a&gt;&amp;nbsp;suggested iirc.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 14:10:16 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1309274#M326681</guid>
      <dc:creator>DataNath</dc:creator>
      <dc:date>2024-08-21T14:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Render Report only if records</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1309284#M326685</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/307299"&gt;@DataNath&lt;/a&gt;&amp;nbsp;-&amp;nbsp; I'm not following the screenshots and how they say to connect things.&amp;nbsp; Do you think you could *please* help flesh out his suggestion with an example workflow?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 14:23:44 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1309284#M326685</guid>
      <dc:creator>JGHOLLAND</dc:creator>
      <dc:date>2024-08-21T14:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Render Report only if records</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1310406#M326998</link>
      <description>&lt;P&gt;bump&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 20:12:30 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1310406#M326998</guid>
      <dc:creator>JGHOLLAND</dc:creator>
      <dc:date>2024-08-23T20:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Render Report only if records</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1326960#M330892</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/447580"&gt;@JGHOLLAND&lt;/a&gt;&amp;nbsp;, did you ever find a solution for this?&lt;/P&gt;&lt;P&gt;I am running into the same problem. I want the output generated into two different file types; an excel file and a pdf file. I want NO file being output at all if there are no records, so the same as you if I am not mistaken.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the excel output I found the solution: in case there are no records I deliberately corrupt the file path so that no excel file is generated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, with the pdf file I cannot do the same, so when there are no records there is still a pdf file being generated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(the solution from&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/205752"&gt;@OTrieger&lt;/a&gt;&amp;nbsp;I could not figure out either, since the screen prints were not legible and from his explanation alone I could not figure it out)&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 09:43:25 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1326960#M330892</guid>
      <dc:creator>Greenlama254</dc:creator>
      <dc:date>2024-10-09T09:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Render Report only if records</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1327195#M331004</link>
      <description>&lt;P&gt;Yes, it is working for me.&amp;nbsp; I have a block until done which goes to render PDF and a sample tool.&amp;nbsp; (screenshot).&amp;nbsp; It makes the PDF but doesn't email it out unless it has some records.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 14:59:28 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1327195#M331004</guid>
      <dc:creator>JGHOLLAND</dc:creator>
      <dc:date>2024-10-09T14:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Render Report only if records</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1327480#M331082</link>
      <description>&lt;P&gt;okay, good to know that solution as well if your final step is to send the data by mail. Thnks.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But unfortunately in this case that does not work for me. I "simply" want a pdf file to be created when there are records of data and no pdf generated (also no blanc file) when there are no records, but so far it seems that when the render tool is used it ALWAYS creates an output, blanc or populated.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 06:19:09 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1327480#M331082</guid>
      <dc:creator>Greenlama254</dc:creator>
      <dc:date>2024-10-10T06:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Render Report only if records</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1327570#M331100</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/447580"&gt;@JGHOLLAND&lt;/a&gt;&amp;nbsp;I am happy to say that I finally found a solution, in a place I never truly looked well enough before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution lies in the Render Tool itself, but for me in a kind of hidden place, because I always wanted one single report to be generated, or no report at all if there were no records. This is why I never dove into the "Group Data Into Separate Reports" options of the Render Tool, but there lies the solution nonetheless.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I started of with a Count Records tool of course, followed by a select tool to turn the number into a string so that the following Formula tool could process it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in that Formula tool I made a column with a condition that in case the value form the Count Records was zero.. otherwise if the value is NOT zero then a valid file path and file name is mentioned. When the value of the count records is indeed zero then you can make up any bogus file path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then use a join multiple tool to add this to your data and in your Render tool, make sure to "Field to Group on" your column created in your formula tool (Since I have only 1 value in that column only one output is always generated, so it gets always grouped into 1 output file).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the most crucial part is the last option in the "Render Configuration": "Replacing Entire Path With Group", this replaces the filepath to a valid path in case there are records, but runs into a corrupt filepath if no records and no pdf file is generated, based on your formula tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really happy with this&amp;nbsp; :-)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 10:29:01 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Render-Report-only-if-records/m-p/1327570#M331100</guid>
      <dc:creator>Greenlama254</dc:creator>
      <dc:date>2024-10-10T10:29:01Z</dc:date>
    </item>
  </channel>
</rss>

