<?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: Dynamic Month calculation SAS VA in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-Month-calculation-SAS-VA/m-p/652165#M13796</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/259069"&gt;@harshpatel&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's how you can do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 1: Create a parameter&lt;/P&gt;
&lt;OL class="xisDoc-listSteps"&gt;
&lt;LI id="n1se77jdtad284n1su4w2dex7xsk" class="xisDoc-step"&gt;In the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;pane, click&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="xisDoc-windowItem"&gt;New data item&lt;/SPAN&gt;&lt;/STRONG&gt;, and then select&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Parameter&lt;/SPAN&gt;&lt;/STRONG&gt;. The New Parameter window is displayed.&lt;/LI&gt;
&lt;LI id="p1inizan82th03n15hs0rji24iur" class="xisDoc-step"&gt;Modify the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Name&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the parameter f.ex. &lt;FONT face="courier new,courier"&gt;_par_month&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI id="n1iflax6mq9dnsn1qkr0zs927nrk" class="xisDoc-step"&gt;Select the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#993366"&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Type = Date&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for the parameter.&lt;/LI&gt;
&lt;LI id="n0ummarqaduj52n1le9wh6djdoze" class="xisDoc-step"&gt;Specify additional information:&amp;nbsp;&lt;SPAN class="xisDoc-windowItem"&gt;Minimum value,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Maximum value and Current value. Do not get confused about the Year as it doesn't matter. Select a preferred&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#993366"&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Format = Month&lt;/SPAN&gt;&lt;/FONT&gt;.&lt;/LI&gt;
&lt;LI class="xisDoc-step"&gt;Click &lt;STRONG&gt;OK&lt;/STRONG&gt; and your new parameter can be found&amp;nbsp;from the&lt;SPAN&gt;&amp;nbsp;bottom of&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;pane.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Step 2: Apply parameter role to Drop-down list&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Select your Drop-Down list and open the &lt;STRONG&gt;Data Roles&lt;/STRONG&gt; pane.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Assign you just created parameter&amp;nbsp;&lt;FONT face="courier new,courier"&gt;_par_month&lt;FONT face="arial,helvetica,sans-serif"&gt; to the role &lt;STRONG&gt;Parameter&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;Step 3: Create a new calculated item&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI id="n1nk97uiqsf6own1u0ofdc61dsil" class="xisDoc-step"&gt;In the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;pane, click&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="xisDoc-windowItem"&gt;New data item&lt;/SPAN&gt;&lt;/STRONG&gt;, and then select&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Calculated item&lt;/SPAN&gt;&lt;/STRONG&gt;. The New Calculated Item window is displayed.&lt;/LI&gt;
&lt;LI id="n1ucy1pz4sfknpn1a85ej56lwafp" class="xisDoc-step"&gt;Enter a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Name f.ex. &lt;FONT face="courier new,courier"&gt;My Salary&lt;/FONT&gt;&lt;/SPAN&gt;.&amp;nbsp;&lt;/LI&gt;
&lt;LI id="p1tj4ykyttpqran0zq55lbpu0p4j" class="xisDoc-step"&gt;Create formula shown below:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Comm_Capture.PNG" style="width: 307px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/40199iB2249F70E159D835/image-size/large?v=v2&amp;amp;px=999" role="button" title="Comm_Capture.PNG" alt="Comm_Capture.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;IF ( '_par_month'p &amp;gt;= 'Month'n )&lt;BR /&gt;RETURN 'Salary'n&lt;BR /&gt;ELSE 0&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Now you can utilize your new measure in the report.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Comm_Capture2.PNG" style="width: 437px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/40200i7CE96CFB18AC6246/image-size/large?v=v2&amp;amp;px=999" role="button" title="Comm_Capture2.PNG" alt="Comm_Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Petri&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jun 2020 09:51:22 GMT</pubDate>
    <dc:creator>PetriRoine</dc:creator>
    <dc:date>2020-06-01T09:51:22Z</dc:date>
    <item>
      <title>Dynamic Month calculation SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-Month-calculation-SAS-VA/m-p/652140#M13795</link>
      <description>&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have a drop down list month&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Mar&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I have a list table in my report area which have 2 columns month and salary&lt;/P&gt;&lt;P&gt;Suppose from drop down list i am selecting Mar then the value should come from jan to mar and rest of the month should get 0 values as seen below.&lt;/P&gt;&lt;P&gt;I want the output as below in SAS VA&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Month&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Salary&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Jan&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10000&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Feb&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20000&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Mar&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 30000&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Apr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;May&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;Harsh Patel&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 06:12:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-Month-calculation-SAS-VA/m-p/652140#M13795</guid>
      <dc:creator>harshpatel</dc:creator>
      <dc:date>2020-06-01T06:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Month calculation SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-Month-calculation-SAS-VA/m-p/652165#M13796</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/259069"&gt;@harshpatel&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's how you can do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 1: Create a parameter&lt;/P&gt;
&lt;OL class="xisDoc-listSteps"&gt;
&lt;LI id="n1se77jdtad284n1su4w2dex7xsk" class="xisDoc-step"&gt;In the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;pane, click&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="xisDoc-windowItem"&gt;New data item&lt;/SPAN&gt;&lt;/STRONG&gt;, and then select&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Parameter&lt;/SPAN&gt;&lt;/STRONG&gt;. The New Parameter window is displayed.&lt;/LI&gt;
&lt;LI id="p1inizan82th03n15hs0rji24iur" class="xisDoc-step"&gt;Modify the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Name&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the parameter f.ex. &lt;FONT face="courier new,courier"&gt;_par_month&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI id="n1iflax6mq9dnsn1qkr0zs927nrk" class="xisDoc-step"&gt;Select the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#993366"&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Type = Date&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for the parameter.&lt;/LI&gt;
&lt;LI id="n0ummarqaduj52n1le9wh6djdoze" class="xisDoc-step"&gt;Specify additional information:&amp;nbsp;&lt;SPAN class="xisDoc-windowItem"&gt;Minimum value,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Maximum value and Current value. Do not get confused about the Year as it doesn't matter. Select a preferred&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#993366"&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Format = Month&lt;/SPAN&gt;&lt;/FONT&gt;.&lt;/LI&gt;
&lt;LI class="xisDoc-step"&gt;Click &lt;STRONG&gt;OK&lt;/STRONG&gt; and your new parameter can be found&amp;nbsp;from the&lt;SPAN&gt;&amp;nbsp;bottom of&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;pane.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Step 2: Apply parameter role to Drop-down list&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Select your Drop-Down list and open the &lt;STRONG&gt;Data Roles&lt;/STRONG&gt; pane.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Assign you just created parameter&amp;nbsp;&lt;FONT face="courier new,courier"&gt;_par_month&lt;FONT face="arial,helvetica,sans-serif"&gt; to the role &lt;STRONG&gt;Parameter&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;Step 3: Create a new calculated item&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI id="n1nk97uiqsf6own1u0ofdc61dsil" class="xisDoc-step"&gt;In the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;pane, click&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="xisDoc-windowItem"&gt;New data item&lt;/SPAN&gt;&lt;/STRONG&gt;, and then select&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Calculated item&lt;/SPAN&gt;&lt;/STRONG&gt;. The New Calculated Item window is displayed.&lt;/LI&gt;
&lt;LI id="n1ucy1pz4sfknpn1a85ej56lwafp" class="xisDoc-step"&gt;Enter a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Name f.ex. &lt;FONT face="courier new,courier"&gt;My Salary&lt;/FONT&gt;&lt;/SPAN&gt;.&amp;nbsp;&lt;/LI&gt;
&lt;LI id="p1tj4ykyttpqran0zq55lbpu0p4j" class="xisDoc-step"&gt;Create formula shown below:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Comm_Capture.PNG" style="width: 307px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/40199iB2249F70E159D835/image-size/large?v=v2&amp;amp;px=999" role="button" title="Comm_Capture.PNG" alt="Comm_Capture.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;IF ( '_par_month'p &amp;gt;= 'Month'n )&lt;BR /&gt;RETURN 'Salary'n&lt;BR /&gt;ELSE 0&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Now you can utilize your new measure in the report.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Comm_Capture2.PNG" style="width: 437px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/40200i7CE96CFB18AC6246/image-size/large?v=v2&amp;amp;px=999" role="button" title="Comm_Capture2.PNG" alt="Comm_Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Petri&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 09:51:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-Month-calculation-SAS-VA/m-p/652165#M13796</guid>
      <dc:creator>PetriRoine</dc:creator>
      <dc:date>2020-06-01T09:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Month calculation SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-Month-calculation-SAS-VA/m-p/652170#M13797</link>
      <description>Thanks petriroine it helps me lot</description>
      <pubDate>Mon, 01 Jun 2020 09:21:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-Month-calculation-SAS-VA/m-p/652170#M13797</guid>
      <dc:creator>harshpatel</dc:creator>
      <dc:date>2020-06-01T09:21:53Z</dc:date>
    </item>
  </channel>
</rss>

