<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Graphic Column from fields in two different tables</title><link>https://communities.bentley.com/products/geotechnical1/f/geotechnical-forum/95618/graphic-column-from-fields-in-two-different-tables</link><description>I&amp;#39;ve looked around the forum and wikis etc. and can&amp;#39;t figure out how to do this for some reason, although it seems simple enough to me. Probably just my lack of understanding the various functions that are available. 
 I&amp;#39;m trying to make a graphic column</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Graphic Column from fields in two different tables</title><link>https://communities.bentley.com/thread/280808?ContentTypeID=1</link><pubDate>Fri, 04 Apr 2014 23:58:47 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:056c6100-50c6-4a04-8d58-a078df5dd75f</guid><dc:creator>Kathleen Holcomb</dc:creator><description>&lt;p&gt;I liked your idea of using CountUnique to move an entity up and down so much I created this wiki: http://communities.bentley.com/products/geotechnical1/w/wiki/12876.variable-graphic-legend-symbols-from-2-tables-in-1-entity.aspx. &amp;nbsp;If anyone is curious, they can download the files to see how it&amp;#39;s done.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Graphic Column from fields in two different tables</title><link>https://communities.bentley.com/thread/280674?ContentTypeID=1</link><pubDate>Thu, 03 Apr 2014 21:14:47 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:13990665-cfe5-4c33-80f6-929b941cb10a</guid><dc:creator>Kathleen Holcomb</dc:creator><description>&lt;p&gt;There&amp;#39;s a little bit in Help, but not much. &amp;nbsp;There&amp;#39;s probably tutorials on the Internet. &amp;nbsp;Most of what I learned was from a Teach Yourself SQL book.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Graphic Column from fields in two different tables</title><link>https://communities.bentley.com/thread/280663?ContentTypeID=1</link><pubDate>Thu, 03 Apr 2014 19:50:38 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:84b895b1-0dd9-4529-a3db-b30b5971040e</guid><dc:creator>SH14277</dc:creator><description>&lt;p&gt;Thanks Kathleen - it seems there is often more than one way to accomplish the same thing. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;How would I go about getting help from Bentley on writing more complex SQLs ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Graphic Column from fields in two different tables</title><link>https://communities.bentley.com/thread/280498?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2014 22:00:35 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a163582e-b474-48c9-b5cf-25ea3e12378c</guid><dc:creator>Kathleen Holcomb</dc:creator><description>&lt;p&gt;Actually, that&amp;#39;s a simpler way. &amp;nbsp;I&amp;#39;d forgotten about CountUnique. &amp;nbsp;To do the same thing with SQL, you could do something like:&lt;/p&gt;
&lt;p&gt;&amp;lt;&amp;lt;Let(SoilCount = _&lt;br /&gt;&amp;nbsp; &amp;lt;&amp;lt;SqlCount(_&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select Distinct [SOIL DESCRIPTION].[Graphic] _&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; From [SOIL DESCRIPTION] _&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where Len([SOIL DESCRIPTION].[Graphic]) &amp;gt; 0 _&lt;br /&gt;&amp;nbsp; )&amp;gt;&amp;gt;_&lt;br /&gt;)&amp;gt;&amp;gt;_&lt;br /&gt;&amp;lt;&amp;lt;Calc(7.2 - ((&amp;lt;&amp;lt;Int(&amp;lt;&amp;lt;Calc(&amp;lt;&amp;lt;Get(SoilCount)&amp;gt;&amp;gt; / 4)&amp;gt;&amp;gt;)&amp;gt;&amp;gt; + 1) * 0.35))&amp;gt;&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Graphic Column from fields in two different tables</title><link>https://communities.bentley.com/thread/280483?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2014 21:03:12 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:1acd6e9c-0ad8-430f-91b3-e79904c19e79</guid><dc:creator>SH14277</dc:creator><description>&lt;p&gt;I don&amp;#39;t know how to write SQLs so if you have something that is easily modified, that would be very helpful if only for my own learning process. &amp;nbsp;I would like to learn more about SQL so I can write some gINT Rules that I have yet to figure out. &lt;/p&gt;
&lt;p&gt;I did get the following to work OK for what I&amp;#39;m looking for, just using the actual vales of Y, number of columns, and row height for the Soil graphics and setting up the Output Override Y for the Rock graphics to do the arithmetic: &lt;/p&gt;
&lt;p&gt;&amp;lt;&amp;lt;Calc(7.2 - ((&amp;lt;&amp;lt;Int(&amp;lt;&amp;lt;Calc(&amp;lt;&amp;lt;CountUnique(&amp;lt;&amp;lt;SOIL DESCRIPTION.Graphic&amp;gt;&amp;gt;)&amp;gt;&amp;gt; / 4)&amp;gt;&amp;gt;)&amp;gt;&amp;gt; + 1) * 0.35))&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;(7.2 is the Y value for where my Soil graphics start&lt;/p&gt;
&lt;p&gt;I have 4 columns of soil graphics&lt;/p&gt;
&lt;p&gt;My soil graphics rows are vertically spaced at 0.35)&lt;/p&gt;
&lt;p&gt;This puts the Rock graphics starting right below the last row of soil graphics, even if it is a partial row. For a partial row it looks OK to me, I&amp;#39;m not too picky. &lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Graphic Column from fields in two different tables</title><link>https://communities.bentley.com/thread/280472?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2014 18:17:25 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:44d53010-4e50-4bd8-b92e-a482feef12d4</guid><dc:creator>Kathleen Holcomb</dc:creator><description>&lt;p&gt;Yes, you are correct, the Field With Data field does not work with anything but &amp;lt;&amp;lt;TABLE.Field&amp;gt;&amp;gt;. &amp;nbsp;Using a conditional Output Override Y for the rock graphics is the way to go. &amp;nbsp;It will take an SQL to get it to start where the soil graphics end. &amp;nbsp;Do you need help with writing the SQL?&amp;nbsp; Normally we don&amp;#39;t offer to&amp;nbsp;help with SQLs, but I have an expression that could easily be adapted to work here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Graphic Column from fields in two different tables</title><link>https://communities.bentley.com/thread/280112?ContentTypeID=1</link><pubDate>Tue, 01 Apr 2014 00:00:58 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a40688ec-32f5-4fa5-a777-3ffb11861af1</guid><dc:creator>SH14277</dc:creator><description>&lt;p&gt;Hi again, &lt;/p&gt;
&lt;p&gt;I&amp;#39;m not quite ready to give up on getting the Graphic Text Doc to show the lithology symbols from both tables (SOIL DESCRIPTION.Graphic and ROCK DESCRIPTION.Graphic) in a single Variable Legend Entity - do you have any ideas about how to accomplish this? &amp;nbsp;I did try the above FirstData function which worked within my Log report but it does not work for the Graphic Text Doc legend. &lt;/p&gt;
&lt;p&gt;The closest I can get to what I want is to make 2 entities, with the Rock graphics output at a conditional Y value based on a calculation of how many rows of Soil graphics there will be. &amp;nbsp;I would prefer to have the Rock graphics start on the same line where the Soil graphics end. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Might still be a lost cause but thanks for looking anyway!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Graphic Column from fields in two different tables</title><link>https://communities.bentley.com/thread/279411?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2014 21:25:13 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c6e026b5-4006-479d-a5c7-f66e49e0511c</guid><dc:creator>Kathleen Holcomb</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Actually, that is a better way than using Second Text Spec. &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Graphic Column from fields in two different tables</title><link>https://communities.bentley.com/thread/279375?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2014 17:02:12 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:f4c87853-1ce9-4c8e-8465-a6c631d64fbd</guid><dc:creator>SH14277</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I did manage to find a way to get both tables into the same graphic column. &amp;nbsp;I entered the Top Depth Expression as:&lt;/p&gt;
&lt;p&gt;&amp;lt;&amp;lt;Depth&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;and the Bottom Depth Expression as:&lt;/p&gt;
&lt;p&gt;&amp;lt;&amp;lt;FirstData(&amp;lt;&amp;lt;SOIL DESCRIPTION.Bottom&amp;gt;&amp;gt;,&amp;lt;&amp;lt;ROCK DESCRIPTION.Bottom&amp;gt;&amp;gt;)&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;and entered the Fill Type[!Symbol] as:&lt;/p&gt;
&lt;p&gt;Matl!&amp;lt;&amp;lt;FirstData(&amp;lt;&amp;lt;SOIL DESCRIPTION.Graphic&amp;gt;&amp;gt;,&amp;lt;&amp;lt;ROCK DESCRIPTION.Graphic&amp;gt;&amp;gt;)&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;and it works. &amp;nbsp;I found this solution in an odd place, under the gINT Help entry for Variable Legend Entity Overview, near the end of the entry. Since I was also trying to get a Graphic Text Doc to show all of the material symbols in a single Variable Legend Entity, rather than in two entities (1 for soil and 1 for rock) as they currently are, this was serendipitous. However, now I can&amp;#39;t figure out how to get a single variable legend entity to work. I tried entering the above FirstData expression under &amp;quot;Field with Data,&amp;quot; but no dice. &amp;nbsp;It&amp;#39;s not a big deal I guess, and might be impossible since this is a separate Graphic Text Doc and not on the Log report.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks again for your help.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Graphic Column from fields in two different tables</title><link>https://communities.bentley.com/thread/278876?ContentTypeID=1</link><pubDate>Thu, 20 Mar 2014 18:19:43 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2967df2b-0d41-4105-ab1e-eb1d9b77b4cb</guid><dc:creator>Kathleen Holcomb</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;For your situation, I believe you will need to keep using 2 columns. &amp;nbsp;Otherwise, you would have to write a complex SQL expression. &amp;nbsp;Almost anytime the data is coming from 2 different tables you will run into this problem. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;By they way, text columns and text vs depth entities do have an option for data coming from different tables, and that is to use the Second Text Spec tab for the second table.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>