<?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: SAS VA Dynamic Difference Row in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957129#M18606</link>
    <description>&lt;P&gt;Yes, you need calculated items for every column I think.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;'first a'n - 'last a'n&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 24 Jan 2025 15:32:01 GMT</pubDate>
    <dc:creator>acordes</dc:creator>
    <dc:date>2025-01-24T15:32:01Z</dc:date>
    <item>
      <title>SAS VA Dynamic Difference Row</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/956966#M18592</link>
      <description>&lt;P&gt;I have a report in Visual Analytics, this report contains rows based on due dates. I want a difference row to be created based on the two due dates selected by the users and I want it to be dynamic. I need help with the tools to achieve this&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 10:26:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/956966#M18592</guid>
      <dc:creator>seydoie</dc:creator>
      <dc:date>2025-01-23T10:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA Dynamic Difference Row</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/956986#M18593</link>
      <description>&lt;P&gt;Hello, can you show us a sample of what your data looks like? That would really help us to assist you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 15:08:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/956986#M18593</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2025-01-23T15:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA Dynamic Difference Row</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957095#M18598</link>
      <description>&lt;P&gt;Hello, thank you in advance for your answer. I tried to analyse what I wanted in an excel table below. Unfortunately, I cannot share my own report due to data privacy. I hope I was able to understand. Thank you again for your help.&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="seydoie_0-1737717559032.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103963i41AA949AE467CE24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="seydoie_0-1737717559032.png" alt="seydoie_0-1737717559032.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 11:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957095#M18598</guid>
      <dc:creator>seydoie</dc:creator>
      <dc:date>2025-01-24T11:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA Dynamic Difference Row</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957097#M18600</link>
      <description>&lt;P&gt;*I hope I was able to explain it&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/468009"&gt;@seydoie&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hello, thank you in advance for your answer. I tried to analyse what I wanted in an excel table below. Unfortunately, I cannot share my own report due to data privacy.&lt;STRONG&gt; I hope I was able to understand&lt;/STRONG&gt;. Thank you again for your help.&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="seydoie_0-1737717559032.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103963i41AA949AE467CE24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="seydoie_0-1737717559032.png" alt="seydoie_0-1737717559032.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 11:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957097#M18600</guid>
      <dc:creator>seydoie</dc:creator>
      <dc:date>2025-01-24T11:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA Dynamic Difference Row</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957115#M18602</link>
      <description>&lt;P&gt;Thank you, that is very helpful!&lt;BR /&gt;&lt;BR /&gt;Selecting two rows in a list table and calculating the differences for all the columns, I don't think we can currently do that in VA.&lt;BR /&gt;&lt;BR /&gt;This would be a good feature to request at the Product Feature Suggestions board here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Product-Suggestions/idb-p/product-suggestions" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Product-Suggestions/idb-p/product-suggestions&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The product manager for VA reviews the suggestions.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sam&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 14:43:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957115#M18602</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2025-01-24T14:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA Dynamic Difference Row</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957124#M18604</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13794"&gt;@Sam_SAS&lt;/a&gt;&amp;nbsp;I think it's possible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/468009"&gt;@seydoie&lt;/a&gt;&amp;nbsp;if an answer solves your problem, please mark as solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create table for testing purpose.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data casuser.Categories(promote=yes keep= a b c d e f g _id id date);
call streaminit(4321);
format date ddmmyy10.;
array temp a b c d e f g;
array p[7] (0.2 0.3 0.1 0.15 0.05 .09 .11); /* probabilities */
do id = 1 to 100;
do over temp;
temp = 1000 * rand("Table", of p[*]); /* use OF operator */
end;
_id=put(id, best12.);
date=intnx('days', '01jun2024'd, id);
output;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PIC.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103966i6EB9700C4218F19E/image-size/large?v=v2&amp;amp;px=999" role="button" title="PIC.png" alt="PIC.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103967iDD08F3D60D8D8F1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic1.png" alt="pic1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic2.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103968i3B1F8247171E3DA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic2.png" alt="pic2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 15:22:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957124#M18604</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2025-01-24T15:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA Dynamic Difference Row</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957127#M18605</link>
      <description>&lt;P&gt;Clever, I couldn't think of a good way to retrieve two selections from a list table.&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127222"&gt;@acordes&lt;/a&gt;&amp;nbsp;, could you show your expression for &lt;STRONG&gt;diff_a&lt;/STRONG&gt;?&lt;BR /&gt;You would need to create calculated items for every numeric column in the list table, I think.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 15:29:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957127#M18605</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2025-01-24T15:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA Dynamic Difference Row</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957129#M18606</link>
      <description>&lt;P&gt;Yes, you need calculated items for every column I think.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;'first a'n - 'last a'n&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jan 2025 15:32:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957129#M18606</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2025-01-24T15:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA Dynamic Difference Row</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957271#M18609</link>
      <description>&lt;P&gt;Thank you for your answer and help, but I want to do this development through Visual Analytics, not on the code side.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 07:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957271#M18609</guid>
      <dc:creator>seydoie</dc:creator>
      <dc:date>2025-01-27T07:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA Dynamic Difference Row</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957275#M18610</link>
      <description>&lt;P&gt;It's Visual Analytics, not code-driven. It's up to you to implement this in VA.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you need a variable that qualifies for the last and first aggregator in VA.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 09:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957275#M18610</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2025-01-27T09:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA Dynamic Difference Row</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957286#M18611</link>
      <description>&lt;P&gt;Thanks to your help, I made progress. I understood your solution and defined two different calculated values for the value in the first date selection and the value in the second date selection. But I could not understand how to make the selections exactly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 11:26:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957286#M18611</guid>
      <dc:creator>seydoie</dc:creator>
      <dc:date>2025-01-27T11:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA Dynamic Difference Row</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957312#M18612</link>
      <description>&lt;P&gt;Here is some more detail about the solution that&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127222"&gt;@acordes&lt;/a&gt;&amp;nbsp;suggested:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I can tell, this workaround will only work well if there is one row for each date in the data query. The user experience becomes very confusing if, for example, the row for 27JAN2025 contains the aggregation of 10 values in the underlying data query. (Because the calculation only compares the first and last row in the query, which would not match what is displayed in the list table in this case.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will need to create a filter action from the first list table to the one that displays the difference row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the user selects multiple rows, it will calculate the difference between the first and last row only. (As the user would probably expect)&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 16:33:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Dynamic-Difference-Row/m-p/957312#M18612</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2025-01-27T16:33:50Z</dc:date>
    </item>
  </channel>
</rss>

