<?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: How to create a bar chart in Profile - Visualizations in a proper way I want? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-bar-chart-in-Profile-Visualizations-in-a-proper/m-p/345203#M10263</link>
    <description>&lt;P&gt;Dataflux is used for data management, less so visualization, usually that would be Base SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've moved this thread to the Data Management forum, where Dataflux users are more likely to see it.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2017 00:41:28 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-03-29T00:41:28Z</dc:date>
    <item>
      <title>How to create a bar chart in Profile - Visualizations in a proper way I want?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-bar-chart-in-Profile-Visualizations-in-a-proper/m-p/345199#M10262</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have just started using SAS Dataflux for Data analysis, so I am not too familiar with work arounds in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a profile of a table with just two fields. One field consists of unique code for products and another field consists of date these products were created on. I want to count products&amp;nbsp;for each month of each year&amp;nbsp;and present it in a graph. I have managed to create a graph for numbers of products for each year but having trouble to do it for each month of each year.&lt;/P&gt;&lt;P&gt;&lt;IMG title="bar chart.jpg" alt="bar chart.jpg" src="https://communities.sas.com/t5/image/serverpage/image-id/7992i0DDA7C936039C5C9/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is how a table looks like where field ERSDA is for date&lt;/P&gt;&lt;P&gt;&lt;IMG title="table.jpg" alt="table.jpg" src="https://communities.sas.com/t5/image/serverpage/image-id/7993iAF694C7EAB53F87C/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;I wrote a custom metric as below&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;public integer articleCount2013
public integer articleCount2014
public integer articleCount2015
public integer articleCount2016
public integer articleCount2017
articleCount2013 = 0
articleCount2014 = 0
articleCount2015 = 0
articleCount2016 = 0
articleCount2017 = 0
	
	if left(`ERSDA`,4)=="2013"
	begin
		articleCount2013 = articleCount2013 + 1
	end
		
	else if left(`ERSDA`,4)=="2014"
		begin
		articleCount2014 = articleCount2014 + 1
	end		
	else if left(`ERSDA`,4)=="2015"
		begin
		articleCount2015 = articleCount2015 + 1
	end	
	else if left(`ERSDA`,4)=="2016"
		begin
		articleCount2016 = articleCount2016 + 1
	end	
	else if left(`ERSDA`,4)=="2017"
		begin
		articleCount2017 = articleCount2017 + 1
	end	&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone please assist in doing this a better way and creating a graph with numbers of products for each month of each year ? And, I am using DatafluxData Management Studio Version : 2.4.0.22&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for you help.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 00:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-bar-chart-in-Profile-Visualizations-in-a-proper/m-p/345199#M10262</guid>
      <dc:creator>buzzra</dc:creator>
      <dc:date>2017-03-29T00:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a bar chart in Profile - Visualizations in a proper way I want?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-bar-chart-in-Profile-Visualizations-in-a-proper/m-p/345203#M10263</link>
      <description>&lt;P&gt;Dataflux is used for data management, less so visualization, usually that would be Base SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've moved this thread to the Data Management forum, where Dataflux users are more likely to see it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 00:41:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-bar-chart-in-Profile-Visualizations-in-a-proper/m-p/345203#M10263</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-29T00:41:28Z</dc:date>
    </item>
  </channel>
</rss>

