<?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 On the fly execution of business logic in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/On-the-fly-execution-of-business-logic/m-p/338309#M6532</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I have been given a requirement where a business logic has to be executed on the fly on the basis of the date parameters selected. Now the data is such that i have a :&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Transaction_Id&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Customer_Tax_Number&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Customer_Name&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Customer_Retirement_Fund_Number&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Retirement_Fund_Service_Number&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Transsction_Date&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The client wants to know how many transactions have come with &lt;FONT color="#993300"&gt;&lt;STRONG&gt;Same Customer_Name and Different Tax_Number&lt;/STRONG&gt;&lt;/FONT&gt; for a selected date range &lt;STRONG&gt;using filters on VA&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Since its a batch related rule I would have to run the duplicate logic on the data between the 2 selected dates.&lt;/P&gt;&lt;P&gt;My question is h&lt;STRONG&gt;ow can I execute a data query/proc sql or I am not sure what on the selection of 2 dates. I cannot find a mechanism where i can trigger this logic on selection of the 2 dates.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can help me ot there.&lt;/P&gt;&lt;P&gt;P.S: i really do not want to use an alternate (excel macro) to do this. The business already uses excel extensively and the management wants them to get off it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Samir&lt;/P&gt;</description>
    <pubDate>Sun, 05 Mar 2017 21:34:46 GMT</pubDate>
    <dc:creator>samstheway79</dc:creator>
    <dc:date>2017-03-05T21:34:46Z</dc:date>
    <item>
      <title>On the fly execution of business logic</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/On-the-fly-execution-of-business-logic/m-p/338309#M6532</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I have been given a requirement where a business logic has to be executed on the fly on the basis of the date parameters selected. Now the data is such that i have a :&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Transaction_Id&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Customer_Tax_Number&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Customer_Name&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Customer_Retirement_Fund_Number&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Retirement_Fund_Service_Number&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Transsction_Date&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The client wants to know how many transactions have come with &lt;FONT color="#993300"&gt;&lt;STRONG&gt;Same Customer_Name and Different Tax_Number&lt;/STRONG&gt;&lt;/FONT&gt; for a selected date range &lt;STRONG&gt;using filters on VA&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Since its a batch related rule I would have to run the duplicate logic on the data between the 2 selected dates.&lt;/P&gt;&lt;P&gt;My question is h&lt;STRONG&gt;ow can I execute a data query/proc sql or I am not sure what on the selection of 2 dates. I cannot find a mechanism where i can trigger this logic on selection of the 2 dates.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can help me ot there.&lt;/P&gt;&lt;P&gt;P.S: i really do not want to use an alternate (excel macro) to do this. The business already uses excel extensively and the management wants them to get off it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Samir&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2017 21:34:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/On-the-fly-execution-of-business-logic/m-p/338309#M6532</guid>
      <dc:creator>samstheway79</dc:creator>
      <dc:date>2017-03-05T21:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: On the fly execution of business logic</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/On-the-fly-execution-of-business-logic/m-p/338458#M6541</link>
      <description>&lt;P&gt;You might be able to do this using a calculated column that compares the transaction date to the two date parameters and produces a yes or no outcome which you could then filter on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Theres a useful post &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Date-parameters-in-SAS-Visual-Analytics/ta-p/233338" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;on how to use dates as parameters (its not out of the box functionality)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 15:03:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/On-the-fly-execution-of-business-logic/m-p/338458#M6541</guid>
      <dc:creator>itchyeyeballs</dc:creator>
      <dc:date>2017-03-06T15:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: On the fly execution of business logic</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/On-the-fly-execution-of-business-logic/m-p/340179#M6573</link>
      <description>&lt;P&gt;Hi Samir,&lt;/P&gt;&lt;P&gt;if you create a crostab with the customer name as first column and the tax nummer as second,&lt;/P&gt;&lt;P&gt;you use the count as report value.&lt;/P&gt;&lt;P&gt;if you ad a sliderbar to this report you can select a date range. Link the silderbar to the crostab.&lt;/P&gt;&lt;P&gt;as far as i can judge your problem, this should do the job.&lt;/P&gt;&lt;P&gt;I could show you a sample with other data how its done.&lt;/P&gt;&lt;P&gt;greetings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2017 18:05:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/On-the-fly-execution-of-business-logic/m-p/340179#M6573</guid>
      <dc:creator>PeterWijers</dc:creator>
      <dc:date>2017-03-11T18:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: On the fly execution of business logic</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/On-the-fly-execution-of-business-logic/m-p/344532#M6729</link>
      <description>&lt;P&gt;Hi Peter&lt;/P&gt;&lt;P&gt;Apologies for the late response and Thank you for responding to my query. Well I think I did not explain the scenario properly so let me try again:&lt;/P&gt;&lt;P&gt;Consider a user interface with &lt;STRONG&gt;From Date&lt;/STRONG&gt; and &lt;STRONG&gt;To Date&lt;/STRONG&gt; and a &lt;STRONG&gt;Submit&lt;/STRONG&gt; button. On the click of the button a query needs to run and populate a table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008080"&gt;"select count(distinct name) , tax_number&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008080"&gt;from&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008080"&gt;table1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008080"&gt;group by tax_number&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008080"&gt;having count(distinct name)&amp;gt;1&lt;/FONT&gt;&lt;FONT color="#008080"&gt;"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;This is what I need to achieve using SAS VA. Is this possible?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Regards&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Samir&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 07:48:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/On-the-fly-execution-of-business-logic/m-p/344532#M6729</guid>
      <dc:creator>samstheway79</dc:creator>
      <dc:date>2017-03-27T07:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: On the fly execution of business logic</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/On-the-fly-execution-of-business-logic/m-p/344538#M6730</link>
      <description>&lt;P&gt;Hi Samir.&lt;/P&gt;&lt;P&gt;You can create an agregated measure (maybe combined with a calculated item) as being the querry expression. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The gouping will be done by the crosstable. &amp;nbsp;From date to date is the filtering.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if you start cut down the querry into serveral parts of SAS VA functionality, it should work.&lt;/P&gt;&lt;P&gt;If you see possiblilies in this appreach, I gladly help you out.&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 08:23:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/On-the-fly-execution-of-business-logic/m-p/344538#M6730</guid>
      <dc:creator>PeterWijers</dc:creator>
      <dc:date>2017-03-27T08:23:02Z</dc:date>
    </item>
  </channel>
</rss>

