<?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 rule using more than 1 variable in the conditions in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rule-using-more-than-1-variable-in-the-conditions/m-p/887522#M17419</link>
    <description>&lt;P&gt;Could you not add the calculated item to the Hidden role for the list table? That should allow it to work in the display rule.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Aug 2023 15:51:57 GMT</pubDate>
    <dc:creator>HunterT_SAS</dc:creator>
    <dc:date>2023-08-02T15:51:57Z</dc:date>
    <item>
      <title>Display rule using more than 1 variable in the conditions</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rule-using-more-than-1-variable-in-the-conditions/m-p/887492#M17416</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using displays rules on my VA report to add some color coding on my list table. However, I would like to create a display rule, depending on a 2 variable, not 1. &lt;BR /&gt;&lt;BR /&gt;For example, let's say I have age column and also salary column, and also another calculated column called index, where I add the colors.&lt;BR /&gt;I would like to fill the index column to green, if age&amp;gt;18 and salary&amp;gt;1000.&amp;nbsp;&lt;BR /&gt;I would like to fill the index column to yellow, if age&amp;gt;30 and salary&amp;gt;5000.&lt;BR /&gt;&lt;BR /&gt;So, as you can see the rules depend on both age and salary.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I don't think it is possible to do that on UI, please let me know if it is, but also please let me know if you can think of a workaround to do that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 14:15:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rule-using-more-than-1-variable-in-the-conditions/m-p/887492#M17416</guid>
      <dc:creator>znhnm</dc:creator>
      <dc:date>2023-08-02T14:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Display rule using more than 1 variable in the conditions</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rule-using-more-than-1-variable-in-the-conditions/m-p/887497#M17417</link>
      <description>&lt;P&gt;You should be able to do this by creating a calculated item for your condition first, something like:&lt;BR /&gt;&lt;BR /&gt;IF ( ( 'Age'n &amp;gt; 30 ) AND ( 'Salary'n &amp;gt; 5000 ) )&lt;BR /&gt;RETURN 'yellow'&lt;BR /&gt;ELSE (&lt;BR /&gt;IF ( ( 'Age'n &amp;gt; 18 ) AND ( 'Salary'n &amp;gt; 1000 ) )&lt;BR /&gt;RETURN 'green'&lt;BR /&gt;ELSE 'red' )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then use that calculated item in your display rule.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 14:38:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rule-using-more-than-1-variable-in-the-conditions/m-p/887497#M17417</guid>
      <dc:creator>HunterT_SAS</dc:creator>
      <dc:date>2023-08-02T14:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Display rule using more than 1 variable in the conditions</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rule-using-more-than-1-variable-in-the-conditions/m-p/887520#M17418</link>
      <description>It allows me to apply a display rule only using the variables on the list table. I created a calculated item but as long as it is not in the list table, I can't use it to apply a display rule. Thanks for the suggestion, though.</description>
      <pubDate>Wed, 02 Aug 2023 15:49:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rule-using-more-than-1-variable-in-the-conditions/m-p/887520#M17418</guid>
      <dc:creator>znhnm</dc:creator>
      <dc:date>2023-08-02T15:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Display rule using more than 1 variable in the conditions</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rule-using-more-than-1-variable-in-the-conditions/m-p/887522#M17419</link>
      <description>&lt;P&gt;Could you not add the calculated item to the Hidden role for the list table? That should allow it to work in the display rule.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 15:51:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rule-using-more-than-1-variable-in-the-conditions/m-p/887522#M17419</guid>
      <dc:creator>HunterT_SAS</dc:creator>
      <dc:date>2023-08-02T15:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Display rule using more than 1 variable in the conditions</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rule-using-more-than-1-variable-in-the-conditions/m-p/887630#M17421</link>
      <description>This is what I wanted to try also but the list tables do not have hidden roles. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Aug 2023 08:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rule-using-more-than-1-variable-in-the-conditions/m-p/887630#M17421</guid>
      <dc:creator>znhnm</dc:creator>
      <dc:date>2023-08-03T08:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Display rule using more than 1 variable in the conditions</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rule-using-more-than-1-variable-in-the-conditions/m-p/887676#M17426</link>
      <description>&lt;P&gt;Really? What version of Visual Analytics are you using? List Tables have had the Hidden role for years now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 12:48:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-rule-using-more-than-1-variable-in-the-conditions/m-p/887676#M17426</guid>
      <dc:creator>HunterT_SAS</dc:creator>
      <dc:date>2023-08-03T12:48:00Z</dc:date>
    </item>
  </channel>
</rss>

