<?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: Display rules in Crosstabs in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rules-in-Crosstabs/m-p/736052#M14824</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1484"&gt;@Renato_sas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has there been any progress on this since 2016?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Visual Analytics is generally used to present reports to senior management. Having an unnecessary column like that just does not sound right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Wed, 21 Apr 2021 16:22:11 GMT</pubDate>
    <dc:creator>david27</dc:creator>
    <dc:date>2021-04-21T16:22:11Z</dc:date>
    <item>
      <title>Display rules in Crosstabs</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rules-in-Crosstabs/m-p/263004#M3888</link>
      <description>&lt;P&gt;Is it possible to apply display rules to only one categorical value instead for all value in a column. &lt;BR /&gt;&lt;BR /&gt;For example, in the attached crosstab can I apply display rules to only FICO bucket "&amp;gt;=660" if Percent of column total is less than 70%?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12446i97BA446584BF3A2B/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Crosstab 1.png" title="Crosstab 1.png" /&gt;</description>
      <pubDate>Thu, 19 May 2016 21:11:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rules-in-Crosstabs/m-p/263004#M3888</guid>
      <dc:creator>akychong</dc:creator>
      <dc:date>2016-05-19T21:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Display rules in Crosstabs</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rules-in-Crosstabs/m-p/273481#M4407</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/80728"&gt;@akychong﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've thought of a workaround that hopefully works for you. In the example below, we want to only highlight&amp;nbsp;percentages &amp;gt; 7.8% where&amp;nbsp;Produc Brand = Novelty. By default, a display rule defined on Frequency Percent would highlight cells in the Toy row as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3352i7DBCF1935DBCDDCE/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Default behavior" title="Default behavior" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Solution: create a flag that is 1 only if the logic above is true (&lt;SPAN&gt;Frequency P&lt;/SPAN&gt;&lt;SPAN&gt;ercent &amp;gt; 7.8% &lt;/SPAN&gt;&lt;SPAN&gt;and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Produc Brand = Novelty&lt;/SPAN&gt;), otherwise it's 0, then use this flag to define the display rule.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Downside: the new flag column needs to be added to the crosstab so it can be used in the display rule.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first thing we need to do is identify the rows for Novelty. We do that by creating a calculated item called &lt;STRONG&gt;Is Novelty&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3353i044A21A7258B6D20/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Expression for Is Novelty" title="Expression for Is Novelty" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next we are going to create the &lt;STRONG&gt;Flag&lt;/STRONG&gt; as an aggregated measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3354i34C387E155F69AAD/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Expression for Flag" title="Expression for Flag" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now we can add the &lt;STRONG&gt;Flag&lt;/STRONG&gt; in the crosstab and define the display rule that looks like this (that's the only display rule needed - you can remove the one used initially):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3355iC8166BF4C67BB7D4/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Display rule.PNG" title="Display rule.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3356i0C413189968DEFC6/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Final result" title="Final result" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To minimize the side effect and make the Flag column less noticeable, you&amp;nbsp;can rename it to . (a dot) and define a display rule for this column that makes the font color the same as the background color.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Renato&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 03:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rules-in-Crosstabs/m-p/273481#M4407</guid>
      <dc:creator>Renato_sas</dc:creator>
      <dc:date>2016-05-27T03:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Display rules in Crosstabs</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rules-in-Crosstabs/m-p/736052#M14824</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1484"&gt;@Renato_sas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has there been any progress on this since 2016?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Visual Analytics is generally used to present reports to senior management. Having an unnecessary column like that just does not sound right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 16:22:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rules-in-Crosstabs/m-p/736052#M14824</guid>
      <dc:creator>david27</dc:creator>
      <dc:date>2021-04-21T16:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Display rules in Crosstabs</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rules-in-Crosstabs/m-p/761503#M15168</link>
      <description>&lt;P&gt;You can now add such columns as a Hidden column which prevents them from being displayed, but still allows conditional formatting to be based on them.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 21:15:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rules-in-Crosstabs/m-p/761503#M15168</guid>
      <dc:creator>AndreaZimmerman</dc:creator>
      <dc:date>2021-08-13T21:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Display rules in Crosstabs</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rules-in-Crosstabs/m-p/827631#M16319</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/361686"&gt;@AndreaZimmerman&lt;/a&gt;&amp;nbsp;Thanks for the update, but this isn't an option in crosstab objects which the original question is about, at least not in version 7.51 (build date = August 2021).&amp;nbsp;&lt;BR /&gt;I have a similar use case: I have a cross tab with two aggregated measures, say x and y, I want to apply conditional formatting based on the difference between those two. Said difference is captured in a third aggregated measure (x - y basically).&lt;/P&gt;&lt;P&gt;The solution from&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1484"&gt;@Renato_sas&lt;/a&gt;&amp;nbsp;works functionally, but it's not pretty - if I can somehow fully hide the column which captures the difference that'd be great.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 15:08:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rules-in-Crosstabs/m-p/827631#M16319</guid>
      <dc:creator>DJVA</dc:creator>
      <dc:date>2022-08-08T15:08:14Z</dc:date>
    </item>
  </channel>
</rss>

