<?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: Dynamic profiling tool in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamic-profiling-tool/m-p/21379#M9237</link>
    <description>&lt;P&gt;Was just the sample table I used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have amended to:&lt;/P&gt;&lt;PRE&gt;select CONVERT(NVARCHAR(256), 'INFORMATION_SCHEMA.COLUMNS') TableName, &lt;BR /&gt; CONVERT(NVARCHAR(256), 'COLUMN_NAME') ColumnName, &lt;BR /&gt; CONVERT(NVARCHAR(256), COLUMN_NAME, 120) Value &lt;BR /&gt;from INFORMATION_SCHEMA.COLUMNS&lt;/PRE&gt;&lt;P&gt;You will need to change connection strings in both input and dynamic input (as points to my laptops local SQL Server)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise should work out of the box now I hope&lt;/P&gt;</description>
    <pubDate>Thu, 12 May 2016 13:14:57 GMT</pubDate>
    <dc:creator>jdunkerley79</dc:creator>
    <dc:date>2016-05-12T13:14:57Z</dc:date>
    <item>
      <title>Dynamic profiling tool</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamic-profiling-tool/m-p/21365#M9233</link>
      <description>&lt;P&gt;Just arrived in the Alteryx community - Happy to be here!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to build a &lt;STRONG&gt;data profiling tool&lt;/STRONG&gt; for an SQL database, that can read a &lt;STRONG&gt;variable amount of tables with an uneven number of columns&lt;/STRONG&gt; in each table. The workflow should then be able to run&amp;nbsp;a &lt;STRONG&gt;set of operations on each column&lt;/STRONG&gt; (count blanks, count distinct, etc...) and output the results for each column into an Excel spreadsheet or similar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;done some testing with the input and dynamic input tools, and arrived at the workflow underneath. As you can see, there is an input node that retrieves the user-defined field and table-names in the database, and feeds them into a dynamic input node that loops through all fields and tablenames. However, when I try to link this up to anything else, I get trouble with several error messages, as well as the fact that I cannot find a way to dynamically feed the output from my dynamic input node into a formula node.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything I have overlooked in how to do this, or any alternatives that would be more sensible to make my dynamic profiling tool?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.alteryx.com/t5/image/serverpage/image-id/5287i6AD6FA370A63809F/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 01:42:23 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamic-profiling-tool/m-p/21365#M9233</guid>
      <dc:creator>Eivind</dc:creator>
      <dc:date>2018-05-24T01:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic profiling tool</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamic-profiling-tool/m-p/21370#M9234</link>
      <description>&lt;P&gt;Interesting idea - will play with at Lunch&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Think you might need to be careful around different field types. I think you might need a couple of different paths for each of the type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 11:16:09 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamic-profiling-tool/m-p/21370#M9234</guid>
      <dc:creator>jdunkerley79</dc:creator>
      <dc:date>2016-05-12T11:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic profiling tool</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamic-profiling-tool/m-p/21374#M9235</link>
      <description>&lt;P&gt;Attached my lunchtime playing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to cast everything a fixed type then you are ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cast both&amp;nbsp;TableName and ColumnName in SQL to a nvarchar(256).&lt;/P&gt;&lt;P&gt;The value I&amp;nbsp;cast to a 2048 block string. One optimsation would be to read max length needed from the input columns and set that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;template query I used was:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Select 
CONVERT(NVARCHAR(256), '[GLOBAL_Matter]') TableName, 
CONVERT(NVARCHAR(256), '[CaseCategory_ID]') ColumnName, 
CONVERT(NVARCHAR(2048), [GLOBAL_Matter].[CaseCategory_ID],120 ) Value 
From [GLOBAL_Matter]&lt;/PRE&gt;&lt;P&gt;I adjusted the SQL table column query to:&lt;/P&gt;&lt;PRE&gt;select '[' + TABLE_SCHEMA + '].[' + TABLE_NAME +']' TableName,
       '[' + COLUMN_NAME + ']' ColumnName,
	   DATA_TYPE, 
	   CHARACTER_MAXIMUM_LENGTH, 
	   NUMERIC_PRECISION
from INFORMATION_SCHEMA.COLUMNS&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By surrounding with [] I think safer for this one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 12:41:42 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamic-profiling-tool/m-p/21374#M9235</guid>
      <dc:creator>jdunkerley79</dc:creator>
      <dc:date>2016-05-12T12:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic profiling tool</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamic-profiling-tool/m-p/21377#M9236</link>
      <description>&lt;P&gt;Thanks for your advice! This seems a good step closer to a solution. However, I keep getting an error message in relation to the [Global_Matter]. Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;IMG src="https://community.alteryx.com/t5/image/serverpage/image-id/5288iFC558DFB76EB6A09/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 13:05:06 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamic-profiling-tool/m-p/21377#M9236</guid>
      <dc:creator>Eivind</dc:creator>
      <dc:date>2016-05-12T13:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic profiling tool</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamic-profiling-tool/m-p/21379#M9237</link>
      <description>&lt;P&gt;Was just the sample table I used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have amended to:&lt;/P&gt;&lt;PRE&gt;select CONVERT(NVARCHAR(256), 'INFORMATION_SCHEMA.COLUMNS') TableName, &lt;BR /&gt; CONVERT(NVARCHAR(256), 'COLUMN_NAME') ColumnName, &lt;BR /&gt; CONVERT(NVARCHAR(256), COLUMN_NAME, 120) Value &lt;BR /&gt;from INFORMATION_SCHEMA.COLUMNS&lt;/PRE&gt;&lt;P&gt;You will need to change connection strings in both input and dynamic input (as points to my laptops local SQL Server)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise should work out of the box now I hope&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 13:14:57 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamic-profiling-tool/m-p/21379#M9237</guid>
      <dc:creator>jdunkerley79</dc:creator>
      <dc:date>2016-05-12T13:14:57Z</dc:date>
    </item>
  </channel>
</rss>

