<?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: One waterfall chart per observation in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/One-waterfall-chart-per-observation/m-p/512819#M2446</link>
    <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;OK, so I transposed the data set to, now its all vertical:&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="Capture.PNG" style="width: 570px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24881i808E9BDFE93A7038/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for the data above, I need to plot only the&amp;nbsp;highlighted data. One waterfall chart for col B and C, then col B and D, then Col B and E. and so forth.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Nov 2018 04:45:03 GMT</pubDate>
    <dc:creator>Espresso</dc:creator>
    <dc:date>2018-11-14T04:45:03Z</dc:date>
    <item>
      <title>One waterfall chart per observation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/One-waterfall-chart-per-observation/m-p/512711#M2422</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have researched many posts regarding waterfall charts, and every example I have seen has&amp;nbsp;the data vertically, meaning every observation will output to the same chart:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data DataDir.SJUCost;

	input Name $
		Number
		Color $;
	datalines;
	2018 755575 Red
	VFM 5628 Red
	INT 135364 Red
	OTH 3222 Red
	DFM -138900 Green
	;
run;

proc template;
	define statgraph waterfall;
		begingraph;
			layout overlay;
				waterfallchart category=name response=number / 
					colorgroup=color 
					barlabel=true
					name='waterfall' 
					dataskin=sheen 
					filltype=solid
					initialbarattrs=(color=gray4f)
					display=(connect fill outline);
			endlayout;
		endgraph;
	end;

proc sgrender template=waterfall data=DataDir.SJUCost;
	title '2018 SJU Check Cost';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this is not my case, in my dataset, I need the waterfall chart to take in the variables horizontally, meaning I need to output a chart for every observation on the dataset (30 obs) . Here is the same data above:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data DataDir.SJUCost;

	input Name $
		Number
		Color $;
	datalines;
	755575 5628 135364 3222 -138900
	;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How can i process the data horizontally?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 19:38:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/One-waterfall-chart-per-observation/m-p/512711#M2422</guid>
      <dc:creator>Espresso</dc:creator>
      <dc:date>2018-11-13T19:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: One waterfall chart per observation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/One-waterfall-chart-per-observation/m-p/512759#M2434</link>
      <description>&lt;P&gt;If you want one chart per observation why are you doing a waterfall chart? The purpose of that type chart is partially to show the contribution to a total of each group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if by chart you actually mean one chart of one set of data then perhaps you want to use BY group processing based on something that identifies which "chart" is which. Since you would have to indicate the high and low values for each chart separately then perhaps you can provide data that would be appropriate as the bar limits from one chart are not going to carry over into a completely separate chart. At which point is sounds like you actually want a HIGHLOW plot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or can you show an example of what you want? It often takes much more than a thousand words to describe a picture...&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 21:39:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/One-waterfall-chart-per-observation/m-p/512759#M2434</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-11-13T21:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: One waterfall chart per observation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/One-waterfall-chart-per-observation/m-p/512819#M2446</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;OK, so I transposed the data set to, now its all vertical:&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="Capture.PNG" style="width: 570px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24881i808E9BDFE93A7038/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for the data above, I need to plot only the&amp;nbsp;highlighted data. One waterfall chart for col B and C, then col B and D, then Col B and E. and so forth.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 04:45:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/One-waterfall-chart-per-observation/m-p/512819#M2446</guid>
      <dc:creator>Espresso</dc:creator>
      <dc:date>2018-11-14T04:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: One waterfall chart per observation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/One-waterfall-chart-per-observation/m-p/513829#M2592</link>
      <description>&lt;P&gt;Ok, back to the basic data set, where I have all waterfall data points contained in each observation, and each observation is an independent chart. Would something like this be possible, recurse over the data set and draw a waterfall chart for each?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	input sta $ budget $ VFM $ INT $ OTH $ DFM $;
	datalines;
	sta budget VFM INT OTH DFM
	sju 755575 5628 135364 3222 -138900
	maz 885634 4663 2522 -2525 252452
	;
run;

data _null_;
	set have;
	
	proc sgrender template=waterfall data=have;
		title '2018 SJU Check Cost';
	run;	
	
end;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Nov 2018 09:21:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/One-waterfall-chart-per-observation/m-p/513829#M2592</guid>
      <dc:creator>Espresso</dc:creator>
      <dc:date>2018-11-16T09:21:51Z</dc:date>
    </item>
  </channel>
</rss>

