<?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: Adding &amp;quot;N/A&amp;quot; Text to All Columns in a Cross Tab Where the Row Total is Less Than X. in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-quot-N-A-quot-Text-to-All-Columns-in-a-Cross-Tab-Where/m-p/355159#M7048</link>
    <description>&lt;P&gt;Thank you Bruno. &amp;nbsp; That put me on the right track.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate your help.&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2017 08:56:55 GMT</pubDate>
    <dc:creator>Scott_Mitchell</dc:creator>
    <dc:date>2017-05-02T08:56:55Z</dc:date>
    <item>
      <title>Adding "N/A" Text to All Columns in a Cross Tab Where the Row Total is Less Than X.</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-quot-N-A-quot-Text-to-All-Columns-in-a-Cross-Tab-Where/m-p/351549#M6957</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First time posting in the VA section after being a keen user of SAS for 12+ years. &amp;nbsp;So, thank you for your patience.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a request to obscure all measures (up to 3 groups) where the Row Total is less than X units. &amp;nbsp;It isn't suitable to remove this line from the data, the requestor has a requirement to apply "N/A" or Missing to these values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have thoughts on how I could achieve this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Input&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UNIT &amp;nbsp; &amp;nbsp; &amp;nbsp;MALE &amp;nbsp; &amp;nbsp; FEMALE &amp;nbsp; &amp;nbsp;TOTAL&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;27 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;23 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&lt;/P&gt;
&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;
&lt;P&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 45 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 55&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Desired Output&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UNIT &amp;nbsp; &amp;nbsp; &amp;nbsp;MALE &amp;nbsp; &amp;nbsp; FEMALE &amp;nbsp; &amp;nbsp;TOTAL&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;27 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;23 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&lt;/P&gt;
&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;N\A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;N\A&lt;/SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;N\A&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 45 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 55&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 05:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-quot-N-A-quot-Text-to-All-Columns-in-a-Cross-Tab-Where/m-p/351549#M6957</guid>
      <dc:creator>Scott_Mitchell</dc:creator>
      <dc:date>2017-04-20T05:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding "N/A" Text to All Columns in a Cross Tab Where the Row Total is Less Than X.</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-quot-N-A-quot-Text-to-All-Columns-in-a-Cross-Tab-Where/m-p/351576#M6958</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: just realized that you want to test the total value, well that is different, but using similar technique might do the job.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To replace some values with missing, I suggest to create an aggregated measure, like this:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8414i2C4833C840BF4A18/image-size/original?v=1.0&amp;amp;px=-1" alt="Snap1.png" title="Snap1.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will return missing for values you do not want to display.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8415i65CC67F515149FDA/image-size/original?v=1.0&amp;amp;px=-1" alt="Snap2.png" title="Snap2.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To have "N/A", I do not know a way right now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 08:35:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-quot-N-A-quot-Text-to-All-Columns-in-a-Cross-Tab-Where/m-p/351576#M6958</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2017-04-20T08:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding "N/A" Text to All Columns in a Cross Tab Where the Row Total is Less Than X.</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-quot-N-A-quot-Text-to-All-Columns-in-a-Cross-Tab-Where/m-p/352008#M6966</link>
      <description>&lt;P&gt;Hi Bruno,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for your suggestion. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, I have been attempting to adapt this logic for my specific use case (i.e. Total &amp;lt; X &amp;nbsp;then missing) for 8 hrs without success. &amp;nbsp;Do you have any other ideas that might be useful for resolving this or a starting point to work from?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the same topic, but using a different approach, I attempted to utilise the Display Rules tab to format the row count for each column in white (the requestor doesn't seem overly bothered that these results&amp;nbsp;will still be in included in the Grand Total). As you would expect this method failed also.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you again for all your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 03:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-quot-N-A-quot-Text-to-All-Columns-in-a-Cross-Tab-Where/m-p/352008#M6966</guid>
      <dc:creator>Scott_Mitchell</dc:creator>
      <dc:date>2017-04-21T03:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Adding "N/A" Text to All Columns in a Cross Tab Where the Row Total is Less Than X.</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-quot-N-A-quot-Text-to-All-Columns-in-a-Cross-Tab-Where/m-p/352063#M6967</link>
      <description>&lt;P&gt;Scott&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your final table has only a few columns like Female and Male, you can do the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a new column that only has values if the gender is Female, see here an example with sashelp.cars&lt;/P&gt;
&lt;PRE&gt;IF ( 'DriveTrain'n = 'All' )
RETURN 'Invoice'n
ELSE .&lt;/PRE&gt;
&lt;P&gt;You have to build a new data item for each value of your category&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then build the total data item like so, since I returned missing in the previous data item I need to check for missing.&lt;/P&gt;
&lt;PRE&gt;( 
  IF ( 'invoice_d_All'n NotMissing )
  RETURN 'invoice_d_All'n
  ELSE 0 ) + ( 
  IF ( 'invoice_d_Front'n NotMissing )
  RETURN 'invoice_d_Front'n
  ELSE 0 ) + ( 
  IF ( 'invoice_d_Rear'n NotMissing )
  RETURN 'invoice_d_Rear'n
  ELSE 0 )&lt;/PRE&gt;
&lt;P&gt;then build your aggreated date items like so:&lt;/P&gt;
&lt;PRE&gt;IF ( Sum [_ByGroup_] ('invoice_d_total'n) &amp;lt; 400000000 )
RETURN .
ELSE Sum [_ByGroup_] ('invoice_d_All'n)&lt;/PRE&gt;
&lt;P&gt;The end result will look like this, the data items ending in _aggr are the new aggreated measures.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8458iEEE5685A67369CE4/image-size/original?v=1.0&amp;amp;px=-1" alt="Snap1.png" title="Snap1.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Takes some effort, but for the case you have shown, this should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 06:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-quot-N-A-quot-Text-to-All-Columns-in-a-Cross-Tab-Where/m-p/352063#M6967</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2017-04-21T06:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding "N/A" Text to All Columns in a Cross Tab Where the Row Total is Less Than X.</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-quot-N-A-quot-Text-to-All-Columns-in-a-Cross-Tab-Where/m-p/352164#M6968</link>
      <description>&lt;P&gt;This may be of no use what so ever but an alternative option we have used to hide results which are less than a certain number and protect anonymity is to round to the nearest x (in the example below 5)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;( ( Sum [_ByGroup_] ('Data_Item'n) / 5 ) Round 1 ) * 5&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This approach is quick and simple to apply accross an entire report and stops users from reverse engineering column totals to work out hidden values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e. you dont have to worry about&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UNIT &amp;nbsp; &amp;nbsp; &amp;nbsp;MALE &amp;nbsp; &amp;nbsp; FEMALE &amp;nbsp; &amp;nbsp;TOTAL&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;27 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;23 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;N\A&lt;/SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 45 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 55&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as you would get&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UNIT &amp;nbsp; &amp;nbsp; &amp;nbsp;MALE &amp;nbsp; &amp;nbsp; FEMALE &amp;nbsp; &amp;nbsp;TOTAL&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;30&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;0&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 45 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 55&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The obvious downside is your users would have to put up with less accurate figures and get used to some of parts not adding up to total.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 13:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-quot-N-A-quot-Text-to-All-Columns-in-a-Cross-Tab-Where/m-p/352164#M6968</guid>
      <dc:creator>itchyeyeballs</dc:creator>
      <dc:date>2017-04-21T13:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding "N/A" Text to All Columns in a Cross Tab Where the Row Total is Less Than X.</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-quot-N-A-quot-Text-to-All-Columns-in-a-Cross-Tab-Where/m-p/352570#M6973</link>
      <description>Thanks Itchy.   Accuracy is paramount in this situation,  but I appreciate you taking the time to respond.   Could definitely be a solution for a future issue however.</description>
      <pubDate>Sun, 23 Apr 2017 05:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-quot-N-A-quot-Text-to-All-Columns-in-a-Cross-Tab-Where/m-p/352570#M6973</guid>
      <dc:creator>Scott_Mitchell</dc:creator>
      <dc:date>2017-04-23T05:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding "N/A" Text to All Columns in a Cross Tab Where the Row Total is Less Than X.</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-quot-N-A-quot-Text-to-All-Columns-in-a-Cross-Tab-Where/m-p/355159#M7048</link>
      <description>&lt;P&gt;Thank you Bruno. &amp;nbsp; That put me on the right track.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate your help.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 08:56:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-quot-N-A-quot-Text-to-All-Columns-in-a-Cross-Tab-Where/m-p/355159#M7048</guid>
      <dc:creator>Scott_Mitchell</dc:creator>
      <dc:date>2017-05-02T08:56:55Z</dc:date>
    </item>
  </channel>
</rss>

