<?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: proc report with multiple across variables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/954912#M83846</link>
    <description>&lt;P&gt;If you just want to exclude the missing columns but include the zero values then add some insignificant value to so the zeros are no longer exactly zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First let's make your example two person dataset.&amp;nbsp; Notice how much easier it is to share data with in-line data?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  input id naam :$50. (groep1-groep3) (:$50.) overtreding ;
cards;
1 Dennis Dagelijks norm8 ki 1
2 Dennis Dagelijks norm8 ki 1
3 Dennis Dagelijks norm8 hbi 1
4 Dennis Dagelijks norm10 ki 1
5 Dennis Dagelijks norm10 bi 1
6 Dennis Dagelijks norm10 hbi 1
7 Dennis Wekelijks x ki 1
8 Dennis Wekelijks x bi 1
9 Dennis Wekelijks x hbi 0
10 Dennis Pauze x ki 1
11 Dennis Pauze x ki 1
12 Dennis Pauze x ki 1
1 Charlie Dagelijks norm8 ki 1
2 Charlie Dagelijks norm8 ki 1
3 Charlie Dagelijks norm8 hbi 1
4 Charlie Dagelijks norm10 ki 1
5 Charlie Dagelijks norm10 bi 1
6 Charlie Dagelijks norm10 hbi 1
7 Charlie Wekelijks x ki 1
8 Charlie Wekelijks x bi 1
9 Charlie Wekelijks x hbi 0
10 Charlie Pauze x ki 1
11 Charlie Pauze x ki 1
12 Charlie Pauze x ki 1
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now let's try the original report with NOZERO option.&amp;nbsp; Then make a version of the data where 0.001 is added to the analysis variable.&amp;nbsp; let's also attach a format so SAS will not show the fractional part.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=test;
  title 'Original Data - With NOZERO option';
  columns ('Chauffeur' naam) (groep1,groep2,groep3,(Overtreding));
  define naam / group " " order = data; 
  define groep1-groep3 / across  " " nozero;
  define overtreding / ' ';
run;

data for_report;
  set test;
  overtreding+0.001;
  format overtreding 5.;
run;

proc report data=for_report;
  title 'Modified Data - With NOZERO option';
  columns ('Chauffeur' naam) (groep1,groep2,groep3,(Overtreding));
  define naam / group " " order = data; 
  define groep1-groep3 / across  " " nozero;
  define overtreding / ' ';
run;

title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1735831878601.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103423iD5BD52CD7A9080F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1735831878601.png" alt="Tom_0-1735831878601.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2025 15:31:26 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2025-01-02T15:31:26Z</dc:date>
    <item>
      <title>proc report with multiple across variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/954898#M83841</link>
      <description>&lt;P&gt;Ow boy, I have been struggling a while to get the result i want, but untill now I did not succeed. I'm trying to produce a report with multiple across variables with different levels but would like the output always be the same, independent of the values in the dataset. I have found the options nozero but this excludes missing values (great) but also the 0-values (not great since in pre-processing the dataset i make sure that every combination is avalaible, but with a measure = 0).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code creates a sample dataset. Two people, three groups, one measure.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data test;
attrib 
	id length = 8.
	naam length = $50.
	groep1 length = $50.
	groep2 length = $50.
	groep3 length = $50.
	overtreding length = 8.;
id=1;naam = 'Dennis';groep1 = 'Dagelijks';groep2='norm8';groep3='ki';overtreding=1;output;
id=2;naam = 'Dennis';groep1 = 'Dagelijks';groep2='norm8';groep3='ki';overtreding=1;output;
id=3;naam = 'Dennis';groep1 = 'Dagelijks';groep2='norm8';groep3='hbi';overtreding=1;;output;
id=4;naam = 'Dennis';groep1 = 'Dagelijks';groep2='norm10';groep3='ki';overtreding=1;output;
id=5;naam = 'Dennis';groep1 = 'Dagelijks';groep2='norm10';groep3='bi';overtreding=1;output;
id=6;naam = 'Dennis';groep1 = 'Dagelijks';groep2='norm10';groep3='hbi';overtreding=1;output;
id=7;naam = 'Dennis';groep1 = 'Wekelijks';groep2='x';groep3='ki';overtreding=1;output;
id=8;naam = 'Dennis';groep1 = 'Wekelijks';groep2='x';groep3='bi';overtreding=1;output;
id=9;naam = 'Dennis';groep1 = 'Wekelijks';groep2='x';groep3='hbi';overtreding=0;output;
id=10;naam = 'Dennis';groep1 = 'Pauze';groep2='x';groep3='ki';overtreding=1;output;
id=11;naam = 'Dennis';groep1 = 'Pauze';groep2='x';groep3='ki';overtreding=1;output;
id=12;naam = 'Dennis';groep1 = 'Pauze';groep2='x';groep3='ki';overtreding=1;output;

id=1;naam = 'Charlie';groep1 = 'Dagelijks';groep2='norm8';groep3='ki';overtreding=1;output;
id=2;naam = 'Charlie';groep1 = 'Dagelijks';groep2='norm8';groep3='ki';overtreding=1;output;
id=3;naam = 'Charlie';groep1 = 'Dagelijks';groep2='norm8';groep3='hbi';overtreding=1;output;
id=4;naam = 'Charlie';groep1 = 'Dagelijks';groep2='norm10';groep3='ki';overtreding=1;output;
id=5;naam = 'Charlie';groep1 = 'Dagelijks';groep2='norm10';groep3='bi';overtreding=1;output;
id=6;naam = 'Charlie';groep1 = 'Dagelijks';groep2='norm10';groep3='hbi';overtreding=1;output;
id=7;naam = 'Charlie';groep1 = 'Wekelijks';groep2='x';groep3='ki';overtreding=1;output;
id=8;naam = 'Charlie';groep1 = 'Wekelijks';groep2='x';groep3='bi';overtreding=1;output;
id=9;naam = 'Charlie';groep1 = 'Wekelijks';groep2='x';groep3='hbi';overtreding=0;output;
id=10;naam = 'Charlie';groep1 = 'Pauze';groep2='x';groep3='ki';overtreding=1;output;
id=11;naam = 'Charlie';groep1 = 'Pauze';groep2='x';groep3='ki';overtreding=1;output;
id=12;naam = 'Charlie';groep1 = 'Pauze';groep2='x';groep3='ki';overtreding=1;output;

/* id=1;naam = 'dummy';groep1 = 'Dagelijks';groep2='norm8';groep3='ki';overtreding=1;output; */
/* id=3;naam = 'dummy';groep1 = 'Dagelijks';groep2='norm8';groep3='hbi';overtreding=1;output; */
/* id=4;naam = 'dummy';groep1 = 'Dagelijks';groep2='norm10';groep3='ki';overtreding=1;output; */
/* id=5;naam = 'dummy';groep1 = 'Dagelijks';groep2='norm10';groep3='bi';overtreding=1;output; */
/* id=6;naam = 'dummy';groep1 = 'Dagelijks';groep2='norm10';groep3='hbi';overtreding=1;output; */
/* id=7;naam = 'dummy';groep1 = 'Wekelijks';groep2='x';groep3='ki';overtreding=1;output; */
/* id=8;naam = 'dummy';groep1 = 'Wekelijks';groep2='x';groep3='bi';overtreding=1;output; */
/* id=9;naam = 'dummy';groep1 = 'Wekelijks';groep2='x';groep3='hbi';overtreding=0;output; */
/* id=12;naam = 'dummy';groep1 = 'Pauze';groep2='x';groep3='ki';overtreding=1;output; */
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If I create a proc report without the option nozero i get this &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="proc report without nozero.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103421iCC10CC7C254A1771/image-size/large?v=v2&amp;amp;px=999" role="button" title="proc report without nozero.png" alt="proc report without nozero.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This looks like what I want but there are several "combinations" of the across variables that have missing values. So i added the option "nozero" but this also deletes columns with a total of 0 (ahum, offcourse), and so the report is missing a column. I would like all output reports to look the same.&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="proc report with nozero.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103422i3F5074E453D5DFDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="proc report with nozero.png" alt="proc report with nozero.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I have tried several approaches, for example the option to work with preloadfmt, but none of this is working or me.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anybody who can give me some advice in solving this case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 14:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/954898#M83841</guid>
      <dc:creator>DREMY80</dc:creator>
      <dc:date>2025-01-02T14:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: proc report with multiple across variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/954900#M83843</link>
      <description>&lt;P&gt;Please provide your PROC REPORT code as text and not as a screen capture.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 14:20:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/954900#M83843</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-01-02T14:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: proc report with multiple across variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/954901#M83844</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;/* code with nozero */
data test;
attrib 
	id length = 8.
	naam length = $50.
	groep1 length = $50.
	groep2 length = $50.
	groep3 length = $50.
	overtreding length = 8.;
	id=1;naam = 'Dennis';groep1 = 'Dagelijks';groep2='norm8';groep3='ki';overtreding=1;output;
	id=2;naam = 'Dennis';groep1 = 'Dagelijks';groep2='norm8';groep3='ki';overtreding=1;output;
	id=3;naam = 'Dennis';groep1 = 'Dagelijks';groep2='norm8';groep3='hbi';overtreding=1;;output;
	id=4;naam = 'Dennis';groep1 = 'Dagelijks';groep2='norm10';groep3='ki';overtreding=1;output;
	id=5;naam = 'Dennis';groep1 = 'Dagelijks';groep2='norm10';groep3='bi';overtreding=1;output;
	id=6;naam = 'Dennis';groep1 = 'Dagelijks';groep2='norm10';groep3='hbi';overtreding=1;output;
	id=7;naam = 'Dennis';groep1 = 'Wekelijks';groep2='x';groep3='ki';overtreding=1;output;
	id=8;naam = 'Dennis';groep1 = 'Wekelijks';groep2='x';groep3='bi';overtreding=1;output;
	id=9;naam = 'Dennis';groep1 = 'Wekelijks';groep2='x';groep3='hbi';overtreding=0;output;
	id=10;naam = 'Dennis';groep1 = 'Pauze';groep2='x';groep3='ki';overtreding=1;output;
	id=11;naam = 'Dennis';groep1 = 'Pauze';groep2='x';groep3='ki';overtreding=1;output;
	id=12;naam = 'Dennis';groep1 = 'Pauze';groep2='x';groep3='ki';overtreding=1;output;
run;
	proc report data=work.test split='\' NOCENTER;
		columns ('Chauffeur' naam) (groep1,groep2,groep3,(Overtreding));
		define naam   			/ group "" order = data; 
		define groep1			/ across nozero "";
		define groep2    		/ across nozero "";
		define groep3			/ across nozero "";
		define overtreding 		/  '';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data test;
attrib 
	id length = 8.
	naam length = $50.
	groep1 length = $50.
	groep2 length = $50.
	groep3 length = $50.
	overtreding length = 8.;
	id=1;naam = 'Dennis';groep1 = 'Dagelijks';groep2='norm8';groep3='ki';overtreding=1;output;
	id=2;naam = 'Dennis';groep1 = 'Dagelijks';groep2='norm8';groep3='ki';overtreding=1;output;
	id=3;naam = 'Dennis';groep1 = 'Dagelijks';groep2='norm8';groep3='hbi';overtreding=1;;output;
	id=4;naam = 'Dennis';groep1 = 'Dagelijks';groep2='norm10';groep3='ki';overtreding=1;output;
	id=5;naam = 'Dennis';groep1 = 'Dagelijks';groep2='norm10';groep3='bi';overtreding=1;output;
	id=6;naam = 'Dennis';groep1 = 'Dagelijks';groep2='norm10';groep3='hbi';overtreding=1;output;
	id=7;naam = 'Dennis';groep1 = 'Wekelijks';groep2='x';groep3='ki';overtreding=1;output;
	id=8;naam = 'Dennis';groep1 = 'Wekelijks';groep2='x';groep3='bi';overtreding=1;output;
	id=9;naam = 'Dennis';groep1 = 'Wekelijks';groep2='x';groep3='hbi';overtreding=0;output;
	id=10;naam = 'Dennis';groep1 = 'Pauze';groep2='x';groep3='ki';overtreding=1;output;
	id=11;naam = 'Dennis';groep1 = 'Pauze';groep2='x';groep3='ki';overtreding=1;output;
	id=12;naam = 'Dennis';groep1 = 'Pauze';groep2='x';groep3='ki';overtreding=1;output;
run;
	proc report data=work.test split='\' NOCENTER;
		columns ('Chauffeur' naam) (groep1,groep2,groep3,(Overtreding));
		define naam   			/ group "" order = data; 
		define groep1			/ across  "";
		define groep2    		/ across  "";
		define groep3			/ across  "";
		define overtreding 		/  '';
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Jan 2025 14:29:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/954901#M83844</guid>
      <dc:creator>DREMY80</dc:creator>
      <dc:date>2025-01-02T14:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc report with multiple across variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/954904#M83845</link>
      <description>&lt;P&gt;Try the COMPLETECOLS option&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=work.test split='\' NOCENTER completecols;
		columns ('Chauffeur' naam) (groep1,groep2,groep3,(Overtreding));
		define naam   			/ group "" order = data; 
		define groep1			/ across "";
		define groep2    		/ across "";
		define groep3			/ across "";
		define overtreding 		/  '';
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Jan 2025 14:56:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/954904#M83845</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-01-02T14:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc report with multiple across variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/954912#M83846</link>
      <description>&lt;P&gt;If you just want to exclude the missing columns but include the zero values then add some insignificant value to so the zeros are no longer exactly zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First let's make your example two person dataset.&amp;nbsp; Notice how much easier it is to share data with in-line data?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  input id naam :$50. (groep1-groep3) (:$50.) overtreding ;
cards;
1 Dennis Dagelijks norm8 ki 1
2 Dennis Dagelijks norm8 ki 1
3 Dennis Dagelijks norm8 hbi 1
4 Dennis Dagelijks norm10 ki 1
5 Dennis Dagelijks norm10 bi 1
6 Dennis Dagelijks norm10 hbi 1
7 Dennis Wekelijks x ki 1
8 Dennis Wekelijks x bi 1
9 Dennis Wekelijks x hbi 0
10 Dennis Pauze x ki 1
11 Dennis Pauze x ki 1
12 Dennis Pauze x ki 1
1 Charlie Dagelijks norm8 ki 1
2 Charlie Dagelijks norm8 ki 1
3 Charlie Dagelijks norm8 hbi 1
4 Charlie Dagelijks norm10 ki 1
5 Charlie Dagelijks norm10 bi 1
6 Charlie Dagelijks norm10 hbi 1
7 Charlie Wekelijks x ki 1
8 Charlie Wekelijks x bi 1
9 Charlie Wekelijks x hbi 0
10 Charlie Pauze x ki 1
11 Charlie Pauze x ki 1
12 Charlie Pauze x ki 1
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now let's try the original report with NOZERO option.&amp;nbsp; Then make a version of the data where 0.001 is added to the analysis variable.&amp;nbsp; let's also attach a format so SAS will not show the fractional part.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=test;
  title 'Original Data - With NOZERO option';
  columns ('Chauffeur' naam) (groep1,groep2,groep3,(Overtreding));
  define naam / group " " order = data; 
  define groep1-groep3 / across  " " nozero;
  define overtreding / ' ';
run;

data for_report;
  set test;
  overtreding+0.001;
  format overtreding 5.;
run;

proc report data=for_report;
  title 'Modified Data - With NOZERO option';
  columns ('Chauffeur' naam) (groep1,groep2,groep3,(Overtreding));
  define naam / group " " order = data; 
  define groep1-groep3 / across  " " nozero;
  define overtreding / ' ';
run;

title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1735831878601.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103423iD5BD52CD7A9080F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1735831878601.png" alt="Tom_0-1735831878601.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 15:31:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/954912#M83846</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-01-02T15:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: proc report with multiple across variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/954916#M83848</link>
      <description>&lt;P&gt;TOM!! It works. That's so clever.&lt;/P&gt;&lt;P&gt;You made my day. Thank you so much for your time and solution.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 15:56:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/954916#M83848</guid>
      <dc:creator>DREMY80</dc:creator>
      <dc:date>2025-01-02T15:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc report with multiple across variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/954917#M83849</link>
      <description>Thank you Paige. It didnt work but Tom's solution did the thing. Thank you for thinking with me. Cheers</description>
      <pubDate>Thu, 02 Jan 2025 15:57:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/954917#M83849</guid>
      <dc:creator>DREMY80</dc:creator>
      <dc:date>2025-01-02T15:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc report with multiple across variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/954985#M83852</link>
      <description>&lt;PRE&gt;data test;
  input id naam :$50. (groep1-groep3) (:$50.) overtreding ;
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;  char_overtreding=put(overtreding,best. -l);&lt;/STRONG&gt;&lt;/FONT&gt;
cards;
1 Dennis Dagelijks norm8 ki 1
2 Dennis Dagelijks norm8 ki 1
3 Dennis Dagelijks norm8 hbi 1
4 Dennis Dagelijks norm10 ki 1
5 Dennis Dagelijks norm10 bi 1
6 Dennis Dagelijks norm10 hbi 1
7 Dennis Wekelijks x ki 1
8 Dennis Wekelijks x bi 1
9 Dennis Wekelijks x hbi 0
10 Dennis Pauze x ki 1
11 Dennis Pauze x ki 1
12 Dennis Pauze x ki 1
1 Charlie Dagelijks norm8 ki 1
2 Charlie Dagelijks norm8 ki 1
3 Charlie Dagelijks norm8 hbi 1
4 Charlie Dagelijks norm10 ki 1
5 Charlie Dagelijks norm10 bi 1
6 Charlie Dagelijks norm10 hbi 1
7 Charlie Wekelijks x ki 1
8 Charlie Wekelijks x bi 1
9 Charlie Wekelijks x hbi 0
10 Charlie Pauze x ki 1
11 Charlie Pauze x ki 1
12 Charlie Pauze x ki 1
;

proc report data=test nowd;
  columns ('Chauffeur' naam) (groep1,groep2,groep3,(char_overtreding));
  define naam / group " " order = data; 
  define groep1-groep3 / across  " " ;
  &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;define char_overtreding / group '' nozero;&lt;/STRONG&gt;&lt;/FONT&gt;
run;
&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1735867725565.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103438iD754F43B8D0F5635/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1735867725565.png" alt="Ksharp_0-1735867725565.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 01:32:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/954985#M83852</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-01-03T01:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc report with multiple across variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/955024#M83854</link>
      <description>&lt;P&gt;Hi KSharp! That's also an option. But I have already implemented Tom' solution because I wanted summary totals (rows/columns) in the report.&lt;/P&gt;&lt;P&gt;But thank you for your reply!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 16:05:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-with-multiple-across-variables/m-p/955024#M83854</guid>
      <dc:creator>DREMY80</dc:creator>
      <dc:date>2025-01-03T16:05:10Z</dc:date>
    </item>
  </channel>
</rss>

