<?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: Detecting current column in Expression Text Colour in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Detecting-current-column-in-Expression-Text-Colour/m-p/1731119#M452286</link>
    <description>&lt;P&gt;Hello Swuehl,&lt;/P&gt;&lt;P&gt;Did this syntax changed with Qlik Sense last upgrade? I tried this but it does not work.&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tatiana&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jul 2020 16:09:53 GMT</pubDate>
    <dc:creator>Tatynout</dc:creator>
    <dc:date>2020-07-27T16:09:53Z</dc:date>
    <item>
      <title>Detecting current column in Expression Text Colour</title>
      <link>https://community.qlik.com/t5/QlikView/Detecting-current-column-in-Expression-Text-Colour/m-p/414937#M154349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Having found out that the Visual Cues are not able to process expressions on the chart's row level I am now setting up colours under the Expression's ( + ) symbol.&lt;/P&gt;&lt;P&gt;I would like to still have the sort of flexibility Visual Cues provides where I don't need to reference the calculation I am testing against. What I mean by this is I would like to reference the column value in the simplest way possible.&lt;/P&gt;&lt;P&gt;I realise I can use with the Column(ColumnNo) syntax, or the Columns label, but neither of these fits my purposes. I am setting up the various columns to not be calculated and hidden, based on user button selections and the available data, making tests for Column(ColumnNo) is a problem. As my column labels are dynamically set with date ranges and notification of their being "Full Month" or "MTD" etc, using column labels is also not an option.&lt;/P&gt;&lt;P&gt;Is there a way to test for the value in the column I am currently changing the text colour of. I have tried Column(ColumnNo()) as I understand ColumnNo() should return the position of the column, working from left to right. However, I can't get the ColumnNo() function to return me the position of the table's column using the expression "=ColumnNo()" in either a pivot or a straight table.&lt;/P&gt;&lt;P&gt;Any thoughts ?&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 10:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detecting-current-column-in-Expression-Text-Colour/m-p/414937#M154349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-15T10:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting current column in Expression Text Colour</title>
      <link>https://community.qlik.com/t5/QlikView/Detecting-current-column-in-Expression-Text-Colour/m-p/414938#M154350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe ColumnNo() will only work in a pivot table, not in a straight table, and it will require horizontal dimensions (i.e. row segments to work on).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should be fine using column labels, referencing your dynamic label expressions like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;="$(=DynamicLabelExpresssionComesHere)"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 12:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detecting-current-column-in-Expression-Text-Colour/m-p/414938#M154350</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-15T12:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting current column in Expression Text Colour</title>
      <link>https://community.qlik.com/t5/QlikView/Detecting-current-column-in-Expression-Text-Colour/m-p/414939#M154351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Turning the column labels into variables offers me a way forwards.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 13:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detecting-current-column-in-Expression-Text-Colour/m-p/414939#M154351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-15T13:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting current column in Expression Text Colour</title>
      <link>https://community.qlik.com/t5/QlikView/Detecting-current-column-in-Expression-Text-Colour/m-p/414940#M154352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Seems that following your example wasn't as powerful as I hoped. I was expecting this syntax to allow me to:&lt;/P&gt;&lt;P&gt;1. Reference the current column from within it's Text Colour expression&lt;/P&gt;&lt;P&gt;2. Use the column label in other expressions to calculate MTD vs. LMTD etc comparisons&lt;/P&gt;&lt;P&gt;Am I doing this correctly. I set up a variable called:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ColMTD&lt;/P&gt;&lt;P&gt;Using this formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ='MTD to '&amp;amp;MTDEnd&lt;/P&gt;&lt;P&gt;To create a label that looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MTD to 16/10/2012&lt;/P&gt;&lt;P&gt;I then reference this within it's own Text Colour using the following syntax:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; =if($(=ColMTD)&amp;lt;0,red())&lt;/P&gt;&lt;P&gt;This doesn't work for me though. I have also tried with quotes around the $(), not having the equals sign in the $() and removing the $() expansion entirely. I have also tried these tests when assigning the ColMTD within another field, and not just i the TextColour expression.&lt;/P&gt;&lt;P&gt;Am I missing something ?&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 07:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detecting-current-column-in-Expression-Text-Colour/m-p/414940#M154352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-16T07:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting current column in Expression Text Colour</title>
      <link>https://community.qlik.com/t5/QlikView/Detecting-current-column-in-Expression-Text-Colour/m-p/414941#M154353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seem to have a syntax that works now, though it's pretty messy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(='['&amp;amp;ColMTD&amp;amp;']')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appears that the square brackets are needed, due I assume to the spaces in the label text.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 07:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detecting-current-column-in-Expression-Text-Colour/m-p/414941#M154353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-16T07:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting current column in Expression Text Colour</title>
      <link>https://community.qlik.com/t5/QlikView/Detecting-current-column-in-Expression-Text-Colour/m-p/414942#M154354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, the square brackets are needed, so you need these or double quotes like I tried to indicate above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you can probably simplify your syntax slightly to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[$(ColMTD)]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like in a e.g. background color expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=if( [$(ColMTD)] &amp;lt; 0, lightred() )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=if( "$(ColMTD)" &amp;lt; 0, lightred() )&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 08:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detecting-current-column-in-Expression-Text-Colour/m-p/414942#M154354</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-16T08:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting current column in Expression Text Colour</title>
      <link>https://community.qlik.com/t5/QlikView/Detecting-current-column-in-Expression-Text-Colour/m-p/414943#M154355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;I think I tried the single quotes initially. Now that I have this new syntax it is a lot cleaner.&lt;/P&gt;&lt;P&gt;Many thanks !!!&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 12:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detecting-current-column-in-Expression-Text-Colour/m-p/414943#M154355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-16T12:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting current column in Expression Text Colour</title>
      <link>https://community.qlik.com/t5/QlikView/Detecting-current-column-in-Expression-Text-Colour/m-p/1731119#M452286</link>
      <description>&lt;P&gt;Hello Swuehl,&lt;/P&gt;&lt;P&gt;Did this syntax changed with Qlik Sense last upgrade? I tried this but it does not work.&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tatiana&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 16:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detecting-current-column-in-Expression-Text-Colour/m-p/1731119#M452286</guid>
      <dc:creator>Tatynout</dc:creator>
      <dc:date>2020-07-27T16:09:53Z</dc:date>
    </item>
  </channel>
</rss>

