<?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 item reported as &amp;quot;the variable is not supported&amp;quot; in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-reported-as-quot-the-variable-is-not-supported/m-p/582859#M12951</link>
    <description>&lt;P&gt;What is the data type of your numeric data items? They must be DOUBLE.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2019 15:22:50 GMT</pubDate>
    <dc:creator>Madelyn_SAS</dc:creator>
    <dc:date>2019-08-21T15:22:50Z</dc:date>
    <item>
      <title>Calculated item reported as "the variable is not supported"</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-reported-as-quot-the-variable-is-not-supported/m-p/582804#M12946</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm pretty new here and do have a question about the "caculated item" in VA reporting build. I hope, that someone can help me here. Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following "calculate item" was build in the VA report:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum [_ByGroup_] (( 'quantity'n *&lt;BR /&gt;'unit_price'n )) / Distinct [_ByGroup_] (&lt;BR /&gt;'oder: ID'n)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I need is to build the summary of price and then divided by the number of orders, so I can get the average value of price pro order. In my data source table I have position of the order per row. So in the source I may have several rows with the same order ID but different position number. That's why I used "Distinct". But the summary of price is based on all the rows. So after I build the item it appeared under "Aggregated Measure" in the left side of the VA. But when I try to drop this item in my report. I got the "Error Message"&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fehlermeldung_va.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31915iEB81914A12DCA5B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Fehlermeldung_va.png" alt="Fehlermeldung_va.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get the average value and use it in my report??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 14:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-reported-as-quot-the-variable-is-not-supported/m-p/582804#M12946</guid>
      <dc:creator>Oliver_Weng</dc:creator>
      <dc:date>2019-08-21T14:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated item reported as "the variable is not supported"</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-reported-as-quot-the-variable-is-not-supported/m-p/582859#M12951</link>
      <description>&lt;P&gt;What is the data type of your numeric data items? They must be DOUBLE.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 15:22:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-reported-as-quot-the-variable-is-not-supported/m-p/582859#M12951</guid>
      <dc:creator>Madelyn_SAS</dc:creator>
      <dc:date>2019-08-21T15:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated item reported as "the variable is not supported"</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-reported-as-quot-the-variable-is-not-supported/m-p/583077#M12959</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13745"&gt;@Madelyn_SAS&lt;/a&gt;Thanks a lot for the reply. I will try to change the "quantity" data type from "int32" to "double" and try it again!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 07:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-reported-as-quot-the-variable-is-not-supported/m-p/583077#M12959</guid>
      <dc:creator>Oliver_Weng</dc:creator>
      <dc:date>2019-08-22T07:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated item reported as "the variable is not supported"</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-reported-as-quot-the-variable-is-not-supported/m-p/583827#M12977</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13745"&gt;@Madelyn_SAS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;though our developer still haven't change the data type of the numeric data items, I found another way to build the desired variable.&lt;/P&gt;&lt;P&gt;My way is to separate the item in 2 parts. So I build one calculated item A ('quantity'n * 'unit_price'n) and another calculated item B (Distinct [_ByGroup_] ('oder: ID'n)). Then I put them together in calculated item C: Sum [_ByGroup_] (A) / B. And it works!! Do you have any idea, why this new item works? I still don't get it at all. &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 07:42:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-reported-as-quot-the-variable-is-not-supported/m-p/583827#M12977</guid>
      <dc:creator>Oliver_Weng</dc:creator>
      <dc:date>2019-08-26T07:42:06Z</dc:date>
    </item>
  </channel>
</rss>

