<?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 without format? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-without-format/m-p/959563#M18645</link>
    <description>&lt;P&gt;The user will have no way of knowing if it's a percent graph or an index graph so they'd have to klick the tabs to find the graph after making the selection...&lt;BR /&gt;This was considered but rejected.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We went with displaying the unit in the graph name using a textbox with a parameter instead. Not perfect but it's something.&lt;BR /&gt;&lt;BR /&gt;Thinking about sending in a feature request to SAS so that you can allow a calculated object to inherit the format (and also sort order) of another object...&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2025 07:59:38 GMT</pubDate>
    <dc:creator>andypandy_swe</dc:creator>
    <dc:date>2025-02-19T07:59:38Z</dc:date>
    <item>
      <title>Calculated item without format?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-without-format/m-p/953488#M18541</link>
      <description>&lt;P&gt;I have a table (simplified) with three columns:&lt;BR /&gt;id&lt;/P&gt;
&lt;P&gt;group&lt;/P&gt;
&lt;P&gt;value&lt;/P&gt;
&lt;P&gt;unit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd like a barchart which shows value per group when i select 'id' from a dropdown list.&lt;/P&gt;
&lt;P&gt;Unit can have the values '%' or 'amount'.&lt;/P&gt;
&lt;P&gt;So I'd like the graph to show the value as a percentage (multiplied by 100 and with a percent-sign) if unit='%' and as the original value if unit='amount'.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;I created a calculated item called value_pct that takes value and multiplies by 100.&lt;BR /&gt;I then create another calculated item called SWITCH that checks the value of Unit and if it's '%' it returns value_pct, otherwise it returns value. Switch has the format comma12.2&lt;/P&gt;
&lt;P&gt;I then use SWITCH in the graph.&lt;BR /&gt;This works but I'm not getting a percent sign of course...&lt;BR /&gt;&lt;BR /&gt;If I instead define value_pct only as the variable 'value' but with a percent format. Then the SWITCH item won't work in the graph.&lt;/P&gt;
&lt;P&gt;Presumably because The format of SWITCH overrides the percent format of value_pct...&lt;BR /&gt;&lt;BR /&gt;Is there a way around this? Create switch without a format? Or is there a completely different, better way to do what I want?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 08:29:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-without-format/m-p/953488#M18541</guid>
      <dc:creator>andypandy_swe</dc:creator>
      <dc:date>2024-12-13T08:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated item without format?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-without-format/m-p/953543#M18545</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's always easier to get help if you post a screen capture and some sample data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understand correctly, you want to graph a numeric variable where some values have a percent format and some values are just plain numerics. Is that right?&lt;/P&gt;
&lt;P&gt;I don't know if that is possible. In something like a table you could display the numbers and percentages as character values, but I don't know if that would be helpful. What kind of graph did you want to create?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Possibly you could work around the issue by making a dual-axis chart.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 18:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-without-format/m-p/953543#M18545</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2024-12-13T18:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated item without format?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-without-format/m-p/957084#M18595</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I think it only works if the two measures have the same format. When I use your method i usualy try to make it very clear what is shown in the graph. In some reports I added a textobject "on the graph" showing the parameter value &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another way of solving this could be to use a stacked(tabbed)-container with one tab for value and another for %.&lt;/P&gt;
&lt;P&gt;I think data is loaded for each tab directly so it is very fast when changing tab. I use it a lot.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredrikE_0-1737712495516.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103960i6D2902C74FE355F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredrikE_0-1737712495516.png" alt="FredrikE_0-1737712495516.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredrikE_1-1737712521906.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103961iA7506C2F57E0CC58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredrikE_1-1737712521906.png" alt="FredrikE_1-1737712521906.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Fredrik&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 09:57:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-without-format/m-p/957084#M18595</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2025-01-24T09:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated item without format?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-without-format/m-p/959562#M18644</link>
      <description>&lt;P&gt;It's a barchart so the percent sign would be on the axis label (and possibly the tooltip).&amp;nbsp;&lt;BR /&gt;I've been unable to solve it so my workaround is have a textbox with a parameter holding the type of value (% or index) above the graph.&lt;BR /&gt;Far from perfect but I think it's the best one can do in this version of VA.&lt;BR /&gt;&lt;BR /&gt;I think a dual axis would only be confusing...&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 07:55:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-without-format/m-p/959562#M18644</guid>
      <dc:creator>andypandy_swe</dc:creator>
      <dc:date>2025-02-19T07:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated item without format?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-without-format/m-p/959563#M18645</link>
      <description>&lt;P&gt;The user will have no way of knowing if it's a percent graph or an index graph so they'd have to klick the tabs to find the graph after making the selection...&lt;BR /&gt;This was considered but rejected.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We went with displaying the unit in the graph name using a textbox with a parameter instead. Not perfect but it's something.&lt;BR /&gt;&lt;BR /&gt;Thinking about sending in a feature request to SAS so that you can allow a calculated object to inherit the format (and also sort order) of another object...&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 07:59:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculated-item-without-format/m-p/959563#M18645</guid>
      <dc:creator>andypandy_swe</dc:creator>
      <dc:date>2025-02-19T07:59:38Z</dc:date>
    </item>
  </channel>
</rss>

