<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Datasheets: Published Ordered Knowledge Base: : Clarity | IMAGINiT Support</title>
    <description>Published Ordered Knowledge Base: Datasheets</description>
    <generator>Helprace RSS</generator>
    <link>https://imaginit.helprace.com/s2-clarity/knowledgebase/top/c7-datasheets?format=rss</link>
    <item>
      <title>Calculations in Clarity Datasheets</title>
      <description><![CDATA[<p>One of the features we are occasionally asked for - that we do support within Clarity, and recently noticed it was missing from the documentation, is the ability to do calculations within a datasheet.</p>
<p>For example, you have the "Target Area" and the "Actual Area", but what if you wanted to show the percentage?</p>
<p>To do so, you can use the EVALUATE keyword.</p>
<p>EVALUATE takes a statement inside of curly braces { } - and runs it through a C# evaluation tool.</p>
<p>The EVALUATE step happens AFTER it has already "parsed" in the various parameter values. For example:</p>
<p>EVALUATE{[Room:Area]/[Room:TargetArea]*100}</p>
<p>Other[_cuted_]</p>]]></description>
      <pubDate>Tue, 09 Jul 2019 18:07:38 +0000</pubDate>
      <link>https://imaginit.helprace.com/i152-calculations-in-clarity-datasheets</link>
      <guid>https://imaginit.helprace.com/i152-calculations-in-clarity-datasheets</guid>
      <author>Matt Mason</author>
      <dc:creator>Matt Mason</dc:creator>
      <content:encoded><![CDATA[<p>One of the features we are occasionally asked for - that we do support within Clarity, and recently noticed it was missing from the documentation, is the ability to do calculations within a datasheet.</p>
<p>For example, you have the "Target Area" and the "Actual Area", but what if you wanted to show the percentage?</p>
<p>To do so, you can use the EVALUATE keyword.</p>
<p>EVALUATE takes a statement inside of curly braces { } - and runs it through a C# evaluation tool.</p>
<p>The EVALUATE step happens AFTER it has already "parsed" in the various parameter values. For example:</p>
<p>EVALUATE{[Room:Area]/[Room:TargetArea]*100}</p>
<p>Other cool things it can do:</p>
<ul>
<li>Logical tests   ([Room:Area]&gt;500)   =&gt; True</li>
<li>Conditionals with IIF  =&gt;   IIF([Room:Area]&gt;500,'Large','Small')</li>
<li>Logical operators  =&gt;   [Room:Area]&gt;100 AND [Room:Perimeter]&lt;300  =&gt; True</li>
<li>Substring =&gt;  Substring('[Room:Number]',1,5) </li>
</ul>
<p>See:</p>
<p><a href="https://msdn.microsoft.com/en-us/library/system.data.datacolumn.expression(v=vs.110).aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/system.data.datacolumn.expression(v=vs.110).aspx</a></p>]]></content:encoded>
    </item>
  </channel>
</rss>
