<?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: Calculated Attribute give no results in Windchill</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill/Calculated-Attribute-give-no-results/m-p/1050148#M87807</link>
    <description>&lt;P&gt;Hello MartinBach,&lt;/P&gt;
&lt;P&gt;Did you review kb article &lt;A href="https://www.ptc.com/en/support/article/CS317541" target="_blank"&gt;https://www.ptc.com/en/support/article/CS317541&lt;/A&gt; ?&lt;/P&gt;
&lt;P&gt;KR,&lt;/P&gt;
&lt;P&gt;Charles.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jan 2026 18:01:57 GMT</pubDate>
    <dc:creator>cgautier</dc:creator>
    <dc:date>2026-01-07T18:01:57Z</dc:date>
    <item>
      <title>Calculated Attribute give no results</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Calculated-Attribute-give-no-results/m-p/1049930#M87795</link>
      <description>I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.2.13&lt;BR /&gt;&lt;BR /&gt;Hello,&lt;BR /&gt;On WTParts I have the parts weight either mapped from associated EPMDocument in an attribute named PRO_MP_MASS or manually typed into an attribute named AttrB. Both are of type Real Number with Units.&lt;BR /&gt;I want to make a calculated attribute that have this expected outcome:&lt;BR /&gt;- If PRO_MP_MASS has a value higher than 0.1 kg, the value of PRO_MP_MASS should be the result&lt;BR /&gt;- If PRO_MP_MASS has no value or is below 0.1 kg, the value of AttrB should be the result&lt;BR /&gt;- If both PRO_MP_MASS is below 0.1 or has no value and AttrB has no value, the result should be "No weight assigned".&lt;BR /&gt;&lt;BR /&gt;Used formula: ((!isNull(PRO_MP_MASS) || (PRO_MP_MASS &amp;gt; 0.1)) ? PRO_MP_MASS : ((!isNull(AttrB)) ? AttrB : "No weight assigned"))&lt;BR /&gt;&lt;BR /&gt;What ever combination of values and empty values I make, I get no results in the calculated attribute.&lt;BR /&gt;What am I missing?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here are the errors that I faced&lt;BR /&gt;None</description>
      <pubDate>Tue, 06 Jan 2026 10:32:02 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Calculated-Attribute-give-no-results/m-p/1049930#M87795</guid>
      <dc:creator>MartinBach</dc:creator>
      <dc:date>2026-01-06T10:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Attribute give no results</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Calculated-Attribute-give-no-results/m-p/1050148#M87807</link>
      <description>&lt;P&gt;Hello MartinBach,&lt;/P&gt;
&lt;P&gt;Did you review kb article &lt;A href="https://www.ptc.com/en/support/article/CS317541" target="_blank"&gt;https://www.ptc.com/en/support/article/CS317541&lt;/A&gt; ?&lt;/P&gt;
&lt;P&gt;KR,&lt;/P&gt;
&lt;P&gt;Charles.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 18:01:57 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Calculated-Attribute-give-no-results/m-p/1050148#M87807</guid>
      <dc:creator>cgautier</dc:creator>
      <dc:date>2026-01-07T18:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Attribute give no results</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Calculated-Attribute-give-no-results/m-p/1050227#M87810</link>
      <description>&lt;P&gt;Hello cgautier,&lt;BR /&gt;Thank you for your reply.&lt;BR /&gt;I had not seen the kb article, but it does not seem to help much.&lt;BR /&gt;I simplified the formula to:&amp;nbsp;((!isNull(PRO_MP_MASS)) ? PRO_MP_MASS : ((!isNull(AttrB)) ? AttrB : "No weight assigned")), but only get a result in the calculated attribute if both PRO_MP_MASS and AttrB are empty.&lt;BR /&gt;/Martin&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 12:19:15 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Calculated-Attribute-give-no-results/m-p/1050227#M87810</guid>
      <dc:creator>MartinBach</dc:creator>
      <dc:date>2026-01-08T12:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Attribute give no results</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Calculated-Attribute-give-no-results/m-p/1050592#M87853</link>
      <description>&lt;P&gt;My mistake was that I created the calculated attribute as a Real Number with Unit type attribute, should have been a String type.&lt;BR /&gt;So with that and a suggested formula from cgautier including the unit() function it works:&lt;BR /&gt;((!isNull(PRO_MP_MASS) &amp;amp;&amp;amp; (PRO_MP_MASS &amp;gt; unit("0.1 kg"))) ? str(PRO_MP_MASS) : ((!isNull(ManWeightSpec)) ? str(ManWeightSpec) : "No weight assigned"))&lt;/P&gt;&lt;P&gt;Thank you&lt;BR /&gt;/Martin&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 06:46:31 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Calculated-Attribute-give-no-results/m-p/1050592#M87853</guid>
      <dc:creator>MartinBach</dc:creator>
      <dc:date>2026-01-13T06:46:31Z</dc:date>
    </item>
  </channel>
</rss>

