<?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: Colour Change in Adhoc Report as per user selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Colour-Change-in-Adhoc-Report-as-per-user-selection/m-p/1822938#M1213721</link>
    <description>&lt;P&gt;Can some one help me on this request please.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jul 2021 06:58:20 GMT</pubDate>
    <dc:creator>vikasshana</dc:creator>
    <dc:date>2021-07-19T06:58:20Z</dc:date>
    <item>
      <title>Colour Change in Adhoc Report as per user selection</title>
      <link>https://community.qlik.com/t5/QlikView/Colour-Change-in-Adhoc-Report-as-per-user-selection/m-p/1822811#M1213709</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've Implemented Adhoc reporting in my app (&lt;STRONG&gt;Dimension&lt;/STRONG&gt; and &lt;STRONG&gt;Measure&lt;/STRONG&gt;) and based on user selection report is getting generated and is working fine. Now my user requirement is when they select value in &lt;STRONG&gt;Measure&lt;/STRONG&gt; section color has to change accordingly.&lt;/P&gt;&lt;P&gt;For example I have &lt;STRONG&gt;Sales&lt;/STRONG&gt;, &lt;STRONG&gt;Margin&lt;/STRONG&gt; and &lt;STRONG&gt;Cost&lt;/STRONG&gt; in my Measure, when user selects &lt;STRONG&gt;Sales&lt;/STRONG&gt; and &lt;STRONG&gt;Margin&lt;/STRONG&gt; from measure background color of S&lt;STRONG&gt;ales&lt;/STRONG&gt; has to change as per below logic.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if Margin&amp;lt;=Sales, green()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if Margin&amp;gt;Sales,red()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Below is the data.&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load * Inline[&lt;/P&gt;&lt;P&gt;Sales, Margin, Cost&lt;/P&gt;&lt;P&gt;100,200,300&lt;/P&gt;&lt;P&gt;200,100,300&lt;/P&gt;&lt;P&gt;300,200.600&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Measures:&lt;/P&gt;&lt;P&gt;Load * Inline[&lt;/P&gt;&lt;P&gt;Measure, MeasureNo, MeasureFormulae&lt;/P&gt;&lt;P&gt;Sales, 1, SUM(Sales)&lt;/P&gt;&lt;P&gt;Margin, 2, SUM(Margin)&lt;/P&gt;&lt;P&gt;Cost, 3, SUM(Cost)&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;I've used below expression in background color change of table but when user selects &lt;STRONG&gt;Sales&lt;/STRONG&gt; and &lt;STRONG&gt;Margin&lt;/STRONG&gt; it is working and the color is also getting changed even if user select &lt;STRONG&gt;Sales&lt;/STRONG&gt; and &lt;STRONG&gt;Cost&lt;/STRONG&gt;, but My requirement is it has to change when user select &lt;STRONG&gt;Sales&lt;/STRONG&gt; and &lt;STRONG&gt;Margin&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if($(=FirstSortedValue([MeasureFormulae],[MeasureNo],2))&amp;lt;=$(=FirstSortedValue([MeasureFormulae],[MeasureNo],1)),Green(),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if($(=FirstSortedValue([MeasureFormulae],[MeasureNo],2))&amp;gt;$(=FirstSortedValue([MeasureFormulae],[MeasureNo],1)),LightRed(),White()))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;V Shana&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2021 09:51:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colour-Change-in-Adhoc-Report-as-per-user-selection/m-p/1822811#M1213709</guid>
      <dc:creator>vikasshana</dc:creator>
      <dc:date>2021-07-17T09:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Colour Change in Adhoc Report as per user selection</title>
      <link>https://community.qlik.com/t5/QlikView/Colour-Change-in-Adhoc-Report-as-per-user-selection/m-p/1822938#M1213721</link>
      <description>&lt;P&gt;Can some one help me on this request please.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 06:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Colour-Change-in-Adhoc-Report-as-per-user-selection/m-p/1822938#M1213721</guid>
      <dc:creator>vikasshana</dc:creator>
      <dc:date>2021-07-19T06:58:20Z</dc:date>
    </item>
  </channel>
</rss>

