<?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>SharePoint Calculated Column with HTML Query</title><link>https://www.infopathdev.com:443/forums/thread/84041.aspx</link><pubDate>Wed, 31 Oct 2012 03:16:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84041</guid><dc:creator>Joey_86</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84041.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=84041</wfw:commentRss><description>&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;</description></item></channel></rss>