<?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: Multiple  SQL Queries  into 1 excel file with sheets in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Multiple-SQL-Queries-into-1-excel-file-with-sheets/m-p/1047096#M12251</link>
    <description>&lt;P&gt;If I understand your example, you can use a combination of the Union Tool, Block Until Done Tool, and an Excel Output tool configured to take the tab name from a field in the flow.&amp;nbsp; I've mocked this up in the attached file to show conceptually how it would work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="frank_sanseri_0-1670597377773.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/274094i7C8B1D470C15FD0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="frank_sanseri_0-1670597377773.png" alt="frank_sanseri_0-1670597377773.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this case, the queries can produce different data sets, but are still unioned with a common source field to differentiate them later.&amp;nbsp; This allows the merged data to run through a single Block Until Done Tool, where it is separated by source name, the mismatched columns are removed, and the resulting data sent to the output tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please take a look and try it in your environment.&amp;nbsp; If it works, please mark this as the solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2022 15:12:18 GMT</pubDate>
    <dc:creator>frank_sanseri</dc:creator>
    <dc:date>2022-12-09T15:12:18Z</dc:date>
    <item>
      <title>Multiple  SQL Queries  into 1 excel file with sheets</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Multiple-SQL-Queries-into-1-excel-file-with-sheets/m-p/1046912#M12245</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a&amp;nbsp; workflow which I need help with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scenario:&lt;/P&gt;&lt;P&gt;We have multiple SQL queries that need to be queried. In the current environment the workflow will pick up the queries 1 by 1 and create one excel file for each output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;requirement:&lt;/P&gt;&lt;P&gt;We need one excel file with multiple sheets for each query instead of having multiple excel files. is there is any way of getting this done?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 06:54:33 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Multiple-SQL-Queries-into-1-excel-file-with-sheets/m-p/1046912#M12245</guid>
      <dc:creator>olimpio</dc:creator>
      <dc:date>2022-12-09T06:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple  SQL Queries  into 1 excel file with sheets</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Multiple-SQL-Queries-into-1-excel-file-with-sheets/m-p/1047004#M12248</link>
      <description>&lt;P&gt;I’m guessing you have the output tool inside a batch macro. You need the output tool outside the macro and have the sheet name on a field on the data for each iteration.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 11:53:53 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Multiple-SQL-Queries-into-1-excel-file-with-sheets/m-p/1047004#M12248</guid>
      <dc:creator>gabrielvilella</dc:creator>
      <dc:date>2022-12-09T11:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple  SQL Queries  into 1 excel file with sheets</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Multiple-SQL-Queries-into-1-excel-file-with-sheets/m-p/1047096#M12251</link>
      <description>&lt;P&gt;If I understand your example, you can use a combination of the Union Tool, Block Until Done Tool, and an Excel Output tool configured to take the tab name from a field in the flow.&amp;nbsp; I've mocked this up in the attached file to show conceptually how it would work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="frank_sanseri_0-1670597377773.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/274094i7C8B1D470C15FD0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="frank_sanseri_0-1670597377773.png" alt="frank_sanseri_0-1670597377773.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this case, the queries can produce different data sets, but are still unioned with a common source field to differentiate them later.&amp;nbsp; This allows the merged data to run through a single Block Until Done Tool, where it is separated by source name, the mismatched columns are removed, and the resulting data sent to the output tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please take a look and try it in your environment.&amp;nbsp; If it works, please mark this as the solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 15:12:18 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Multiple-SQL-Queries-into-1-excel-file-with-sheets/m-p/1047096#M12251</guid>
      <dc:creator>frank_sanseri</dc:creator>
      <dc:date>2022-12-09T15:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple  SQL Queries  into 1 excel file with sheets</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Multiple-SQL-Queries-into-1-excel-file-with-sheets/m-p/1047809#M12270</link>
      <description>&lt;P&gt;There are a number of ways to do what you are asking - but if you can explain the architecture of your current workflow (where the queries are output/file/sheet naming conventions - etc) it helps tailor the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically each query is assigned a different sheet name and along with a filename this is attached either via append fields/formula tool in batch macro with a replacement or some other mechanism. output data then takes entire path (which means filename|sheet) where each query is a different sheet.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 21:17:26 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Multiple-SQL-Queries-into-1-excel-file-with-sheets/m-p/1047809#M12270</guid>
      <dc:creator>apathetichell</dc:creator>
      <dc:date>2022-12-11T21:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple  SQL Queries  into 1 excel file with sheets</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Multiple-SQL-Queries-into-1-excel-file-with-sheets/m-p/1050648#M12336</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/196265"&gt;@olimpio&lt;/a&gt;,&amp;nbsp;have you used any of the solutions here? If so please remember to mark it solved for that response.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 15:38:44 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Multiple-SQL-Queries-into-1-excel-file-with-sheets/m-p/1050648#M12336</guid>
      <dc:creator>frank_sanseri</dc:creator>
      <dc:date>2022-12-16T15:38:44Z</dc:date>
    </item>
  </channel>
</rss>

