<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: SharePoint Calculated Column with HTML Query (Re-Post)</title><link>https://www.infopathdev.com:443/forums/thread/84762.aspx</link><pubDate>Tue, 27 Nov 2012 02:45:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84762</guid><dc:creator>Joey_86</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84762.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=84762</wfw:commentRss><description>&lt;p&gt;Hi Patrick,&lt;/p&gt;
&lt;p&gt;Thanks for your reply to this post, but I&amp;#39;m actually working on a SharePoint calculated column formula. The above rules relate to an InfoPath form, do you know how I can condense my formula to achieve what I need in a SharePoint calculated column?&lt;/p&gt;</description></item><item><title>Re: SharePoint Calculated Column with HTML Query (Re-Post)</title><link>https://www.infopathdev.com:443/forums/thread/84705.aspx</link><pubDate>Sat, 24 Nov 2012 19:34:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84705</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84705.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=84705</wfw:commentRss><description>&lt;p&gt;Hi Joey_86 and thanks for posting so much,&lt;/p&gt;&lt;p&gt;I did a webinar on September 27th with some samples for calculating overdue colors (see Qdabra&amp;#39;s YouTube channel for the video). You can do this all with rules and the translate xpath command to do conditional formatting. &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Shade Red rule has a format set to orange pastel if the following condition is true: translate(my:DueDate, &amp;quot;:-T&amp;quot;, &amp;quot;&amp;quot;) &amp;lt;= translate(xdDate:AddDays(xdDate:Today(), 7), &amp;quot;:-T&amp;quot;, &amp;quot;&amp;quot;)&lt;/li&gt;&lt;li&gt;Shade Yellow rule has a format set to yellow pastel if the following two conditions are true: translate(my:DueDate, &amp;quot;:-T&amp;quot;, &amp;quot;&amp;quot;) &amp;lt;= translate(xdDate:AddDays(xdDate:Today(), 30), &amp;quot;:-T&amp;quot;, &amp;quot;&amp;quot;)&amp;nbsp;and &lt;br /&gt;translate(my:DueDate, &amp;quot;:-T&amp;quot;, &amp;quot;&amp;quot;) &amp;gt; translate(xdDate:AddDays(xdDate:Today(), 7), &amp;quot;:-T&amp;quot;, &amp;quot;&amp;quot;)&amp;nbsp;&lt;/li&gt;&lt;li&gt;Shade Green rule has a format set to green pastel if the following condition is true: translate(my:DueDate, &amp;quot;:-T&amp;quot;, &amp;quot;&amp;quot;) &amp;gt; translate(xdDate:AddDays(xdDate:Today(), 30), &amp;quot;:-T&amp;quot;, &amp;quot;&amp;quot;)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Make sure you put them in the order above.&lt;/p&gt;&lt;p&gt;Best of luck.&lt;/p&gt;</description></item><item><title>SharePoint Calculated Column with HTML Query (Re-Post)</title><link>https://www.infopathdev.com:443/forums/thread/84512.aspx</link><pubDate>Mon, 19 Nov 2012 02:20:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84512</guid><dc:creator>Joey_86</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84512.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=84512</wfw:commentRss><description>&lt;div class="ForumPostContentText"&gt;
&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m just having a bit of trouble creating a calculated column query for what I need, basically I have the following columns:&lt;/p&gt;
&lt;p&gt;- &amp;#39;Current Status&amp;#39; with the following selections:- In Progress, On Hold, Complete &amp;amp; Withdrawn/Rejected&lt;/p&gt;
&lt;p&gt;- &amp;#39;Target Age&amp;#39;: This is a calculated column which calculates the number of days between the created and target date of an item which also includes negative numbers (&lt;/p&gt;
&lt;p&gt;- &amp;#39;Overdue&amp;#39;: This is also a calculated column identifying the following &amp;#39;IF([Target Date]=&amp;quot;&amp;quot;,&amp;quot;Blank&amp;quot;,IF([Target Date]&amp;lt;=Today,&amp;quot;Yes&amp;quot;,IF([Target Date]&amp;gt;=Today,&amp;quot;No&amp;quot;)))&amp;#39;&lt;/p&gt;
&lt;p&gt;- &amp;#39;Status Indicator&amp;#39;: This is the calculated I&amp;#39;m having issues with which will display a HTML&amp;nbsp;image marker&amp;nbsp;based on the IF statements&lt;/p&gt;
&lt;p&gt;Now this is the problem I&amp;#39;m having, I need the following scenario&amp;#39;s built into the IF statement for the calculated column&lt;/p&gt;
&lt;p&gt;- If the &amp;#39;Current Status&amp;#39; = &amp;#39;In Progress&amp;#39; &amp;amp; &amp;#39;Overdue&amp;#39; = &amp;#39;No&amp;#39; (Green Marker)&lt;/p&gt;
&lt;p&gt;- If the &amp;#39;Current Status&amp;#39; = &amp;#39;Complete&amp;#39; &amp;amp; &amp;#39;Overdue&amp;#39; = &amp;#39;No&amp;#39; (Green Marker)&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- If the &amp;#39;Current Status&amp;#39; = &amp;#39;On Hold&amp;#39; &amp;amp; &amp;#39;Overdue&amp;#39; = &amp;#39;Yes&amp;#39; (Yellow Marker)&lt;/p&gt;
&lt;p&gt;- If the &amp;#39;Current Status&amp;#39; = &amp;#39;On Hold&amp;#39; &amp;amp; &amp;#39;Overdue&amp;#39; = &amp;#39;Blank&amp;#39; (Yellow Marker)&lt;/p&gt;
&lt;p&gt;- If the &amp;#39;Current Status&amp;#39; = &amp;#39;In Progress&amp;#39; &amp;amp; &amp;#39;Overdue&amp;#39; = &amp;#39;Yes&amp;#39; &amp;amp; &amp;#39;Target Age&amp;#39; &amp;lt; 0 (Red Marker)&lt;/p&gt;
&lt;p&gt;- If the &amp;#39;Current Status&amp;#39; = &amp;#39;In Progress&amp;#39; &amp;amp; &amp;#39;Overdue&amp;#39; = &amp;#39;Blank&amp;#39; &amp;amp; &amp;#39;Target Age&amp;#39; &amp;lt; 0 (Red Marker)&lt;/p&gt;
&lt;p&gt;- If the &amp;#39;Current Status&amp;#39; = &amp;#39;Withdrawn/Rejected&amp;#39; &amp;amp; &amp;#39;Overdue&amp;#39; = &amp;#39;Yes&amp;#39; (Grey Marker)&lt;/p&gt;
&lt;p&gt;- If the &amp;#39;Current Status&amp;#39; = &amp;#39;Withdrawn/Rejected&amp;#39; &amp;amp; &amp;#39;Overdue&amp;#39; = &amp;#39;Blank&amp;#39; (Grey Marker)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This is what I have tried already but hasn&amp;#39;t seemed to work for the test items I specified: &amp;#39;IF([Current Status]=&amp;quot;In Progress&amp;quot;,IF([Overdue]=&amp;quot;No&amp;quot;,&amp;quot;&amp;lt;DIV&amp;gt;&amp;lt;IMG SRC=&amp;#39;/Pictures/Marker/green.png&amp;#39;&amp;gt;&amp;lt;/DIV&amp;gt;&amp;quot;,IF([Current Status]=&amp;quot;On Hold&amp;quot;,IF([Overdue]=&amp;quot;Yes&amp;quot;,&amp;quot;&amp;lt;DIV&amp;gt;&amp;lt;IMG SRC=&amp;#39;/Pictures/Marker/yellow.png&amp;#39;&amp;gt;&amp;lt;/DIV&amp;gt;&amp;quot;,IF([Current Status]=&amp;quot;On Hold&amp;quot;,IF([Overdue]=&amp;quot;Blank&amp;quot;,&amp;quot;&amp;lt;DIV&amp;gt;&amp;lt;IMG SRC=&amp;#39;/Pictures/Marker/yellow.png&amp;#39;&amp;gt;&amp;lt;/DIV&amp;gt;&amp;quot;,IF([Overdue]=&amp;quot;Yes&amp;quot;,&amp;quot;&amp;lt;DIV&amp;gt;&amp;lt;IMG SRC=&amp;#39;/Pictures/Marker/red.png&amp;#39;&amp;gt;&amp;lt;/DIV&amp;gt;&amp;quot;))))&lt;/p&gt;&lt;/div&gt;</description></item></channel></rss>