<?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: Expression to rename column names in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498461#M186254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see, you are using this in a chart expression, where AD_ID is not a dimension and you have more than 1 possible values for AD_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you expect to get when there are multiple options? A concatenation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=concat&lt;/P&gt;&lt;P&gt;if(AD_ID=1001 or AD_ID=1032,'KEYONE Count',if((AD_ID&amp;gt;=1005 and AD_ID&amp;lt;=1019) or (AD_ID&amp;gt;=1035 and AD_ID&amp;lt;=1050) ,'Prnt TER','KEY TER'))&lt;/P&gt;&lt;P&gt;,', ')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Dec 2013 12:13:27 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-12-18T12:13:27Z</dc:date>
    <item>
      <title>Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498453#M186246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I build one expression with if statement to rename the column names based on set of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(AD_ID=1001 or AD_ID=1032,'KEYONE Count',&lt;/P&gt;&lt;P&gt;if(AD_ID=1002 or AD_ID=1003 or AD_ID=1033&lt;/P&gt;&lt;P&gt;or AD_ID=1034 or&lt;STRONG&gt; (AD_ID&amp;gt;=1021 and AD_ID&amp;lt;=1031)&lt;/STRONG&gt; or AD_ID&amp;gt;=1051,'KEY TER','Prnt TER'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's working fine for all the ID's except for the bold section of the expression.When AD_ID&amp;gt;= 1021 and &amp;lt;=1031 the value should display as KEY TER but it's showing as Prnt TER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 09:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498453#M186246</guid>
      <dc:creator />
      <dc:date>2013-12-18T09:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498454#M186247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't reproduce your issue, works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(AD_ID=1001 or AD_ID=1032,'KEYONE Count',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(AD_ID=1002 or AD_ID=1003 or AD_ID=1033&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;or AD_ID=1034 or (AD_ID&amp;gt;=1021 and AD_ID&amp;lt;=1031) or AD_ID&amp;gt;=1051,'KEY TER','Prnt TER')) as AD_ID_TEXT, AD_ID INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AD_ID&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1001&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1032&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1002&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1003&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1033&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1034&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1021&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1022&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1025&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1030&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1031&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1051&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1052&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 09:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498454#M186247</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-12-18T09:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498455#M186248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;Expression i build seems correct but i don't know what's going wrong.&lt;/P&gt;&lt;P&gt;as per the above expression if (AD_ID&amp;gt;=1021 and AD_ID&amp;lt;=1031)or AD_ID&amp;gt;=1051, it should show 'KEY TER', but when AD_ID turns 1027 it's showing TERR which is correct.but when it's 1021,1023,1022 till 1026 it's showing 'KEY TER' but for 1027 it's correct.again for 1028 it's incorrect and showing as KEY TER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 10:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498455#M186248</guid>
      <dc:creator />
      <dc:date>2013-12-18T10:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498456#M186249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I said, I can't reproduce your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll need to post a sample that demonstrates your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 10:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498456#M186249</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-12-18T10:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498457#M186250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(AD_ID=1001 or AD_ID=1032,'KEYONE Count',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-style: inherit;"&gt; (AD_ID&amp;gt;=1021 and AD_ID&amp;lt;=1031)&lt;/STRONG&gt; or AD_ID=1002 or AD_ID=1003 or AD_ID=1033&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or AD_ID=1034&amp;nbsp; or AD_ID&amp;gt;=1051,'KEY TER','Prnt TER'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 10:16:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498457#M186250</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-12-18T10:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498458#M186251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to simplify it in other way around with the below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(AD_ID=1001 or AD_ID=1032,'KEYONE Count',if((AD_ID&amp;gt;=1005 and AD_ID&amp;lt;=1019) or (AD_ID&amp;gt;=1035 and AD_ID&amp;lt;=1050) ,'Prnt TER','KEY TER'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now ID 1007.. coming in the wrong way&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 11:09:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498458#M186251</guid>
      <dc:creator />
      <dc:date>2013-12-18T11:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498459#M186252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please double check that all your AD_ID values are numeric and not mixed with textual values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this doesn't help, please post a small sample or at least a sample of your AD_ID values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 11:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498459#M186252</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-12-18T11:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498460#M186253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I traced the issue..When there is two AD_ID it's not working out properly.AD_ID is Numeric only.like 1001,1002....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 12:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498460#M186253</guid>
      <dc:creator />
      <dc:date>2013-12-18T12:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498461#M186254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see, you are using this in a chart expression, where AD_ID is not a dimension and you have more than 1 possible values for AD_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you expect to get when there are multiple options? A concatenation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=concat&lt;/P&gt;&lt;P&gt;if(AD_ID=1001 or AD_ID=1032,'KEYONE Count',if((AD_ID&amp;gt;=1005 and AD_ID&amp;lt;=1019) or (AD_ID&amp;gt;=1035 and AD_ID&amp;lt;=1050) ,'Prnt TER','KEY TER'))&lt;/P&gt;&lt;P&gt;,', ')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 12:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498461#M186254</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-12-18T12:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498462#M186255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;yes I'm using in Chart expression.But AD_ID is a dimension here.And another dimension is Parent_Num where i'm using this expression.&lt;/P&gt;&lt;P&gt;I ll try possibly to post a sample at the earliest.&lt;/P&gt;&lt;P&gt;This is a straight table.where 6 dimensions are used.AD_ID and Parent_Num are two of them.&lt;/P&gt;&lt;P&gt;Based on AD_Desc, this straight table populates.requirement is that Parent_Num should display differently for differernt AD_ID's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:everytime we click on any AD_Desc ,it ll populate detailed straight table.Where AD_ID,Parent_Num and other fields will be there.&lt;/P&gt;&lt;P&gt;For each AD_Desc,only maximum&amp;nbsp; two AD_ID ll display in the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/31417"&gt;Matthew Riedl&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 12:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498462#M186255</guid>
      <dc:creator />
      <dc:date>2013-12-18T12:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498463#M186256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Attached a sample app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is &lt;/P&gt;&lt;P&gt;for AD_ID=5007,5001,5008,5007,5009 Parent_Num column in the "Detail record of A_Available" (Once you click on any AD_Desc, it ll populate detail straight table) should display as KEY_TER&lt;/P&gt;&lt;P&gt;for ID=5003,5004,5005,5006,5010,5011 it should display as Prnt_KEY.For rest others KEY_DTL..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note: In real scenarios the ID's will be more so please suggest simplified expression.I have tried with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; nested IF statement but result already mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 20:12:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498463#M186256</guid>
      <dc:creator />
      <dc:date>2013-12-18T20:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498464#M186257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 20:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498464#M186257</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-12-18T20:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498465#M186258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you wanting to make the values for your field Parent_Num to change? Or are you trying to change the label for that column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are trying to change the label for that column, then you can put this formula into the label for your dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Match(min(AD_ID), 5007, 5001, 5008, 5009), 'KEY_TER', if(Match(min(AD_ID), 5003, 5004, 5005, 5006, 5010, 5011), 'Prnt_KEY', 'KEY_DTL'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that since you are trying to change the column label, you can't just use AD_ID. This is because when you have multiple values for AD_ID, it won't know which one to use. If all of your AD_ID's are compatible in your chart, just use the min() function to only return one of those. Then you can match them with your if statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 20:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498465#M186258</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2013-12-18T20:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498466#M186259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jerem,&lt;/P&gt;&lt;P&gt;I want to change the Label only.Yes as i mentioned earlier, AD_ID ll have two different ID's like 5001,50011..So when i tried if condition,it didn't work out for few ID's because for that table two ID's were there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are many ID's and i have to use AND,OR condition anyway.&lt;/P&gt;&lt;P&gt;e.g- &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;AD_ID=5007,5001,5008,5007,5009 &lt;/SPAN&gt;The column name=Key TER&lt;/P&gt;&lt;P&gt;for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ID=5003,5004,5005,5006,5010,5011&lt;/SPAN&gt; Column name should be labelled as Prnt Ter&lt;/P&gt;&lt;P&gt;and for rest others TER..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is sample app.but in real the list of ID is much more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 05:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498466#M186259</guid>
      <dc:creator />
      <dc:date>2013-12-19T05:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498467#M186260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl,&lt;/P&gt;&lt;P&gt;We have to rename the label of Parent_Num column based on set of ID's.and the expression you have used seems taking value KEY DTL for 5007 and 5009 but expression says it should be KEY TER. Which is the issue i'm facing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(match(AD_ID,5007,5001,5008,5007,5009),'KEY_TER'&lt;/P&gt;&lt;P&gt;, if(match(AD_ID,5003,5004,5005,5006,5010,5011),'Prnt_KEY'&lt;/P&gt;&lt;P&gt;,'KEY_DTL'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 05:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498467#M186260</guid>
      <dc:creator />
      <dc:date>2013-12-19T05:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498468#M186261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I have misunderstood what you want. Ok, you want to set the expression label using an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a detail chart with different AD_ID, and IDs belonging to different categories, you'll need to define which category to chose. If the distinct IDs belong to the same category, as for 5007 and 5009, you can use only() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only(if(match(AD_ID,5007,5001,5008,5007,5009),'KEY_TER'&lt;/P&gt;&lt;P&gt;, if(match(AD_ID,5003,5004,5005,5006,5010,5011),'Prnt_KEY'&lt;/P&gt;&lt;P&gt;,'KEY_DTL')))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 07:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498468#M186261</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-12-19T07:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498469#M186262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Swuehl,&lt;/P&gt;&lt;P&gt;Seems like only thing helped me out is only()..:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Match(AD_ID,5001,5002),'KEY TER',&lt;/P&gt;&lt;P&gt;only(if(match(AD_ID,(&amp;gt;=5005 and &amp;lt;=1050)),'Prnt Key','Key_DTL')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me what's wrong in the above expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 08:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498469#M186262</guid>
      <dc:creator />
      <dc:date>2013-12-19T08:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498470#M186263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As soon as AD_ID has more than one possible values, your first match condition can't be evaluated correctly.&lt;/P&gt;&lt;P&gt;You'll need to embed your if-statements into an aggregation, only() or some other like minstring() / maxstring() /concat():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only( &lt;/P&gt;&lt;P&gt;if(Match(AD_ID,5001,5002),'KEY TER',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( AD_ID &amp;gt;=5005 and AD_ID &amp;lt;=5050,'Prnt Key','Key_DTL')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&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;=concat( &lt;/P&gt;&lt;P&gt;if(Match(AD_ID,5001,5002),'KEY TER',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( AD_ID &amp;gt;=5005 and AD_ID &amp;lt;=5050,'Prnt Key','Key_DTL')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;,', ')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 11:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498470#M186263</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-12-19T11:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to rename column names</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498471#M186264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;=only(if(match(AD_ID,5007,5001,5008,5007,5009),'KEY_TER'&lt;/P&gt;&lt;P&gt;, if(match(AD_ID,5003,5004,5005,5006,5010,5011),'Prnt_KEY'&lt;/P&gt;&lt;P&gt;,'KEY_DTL')))&amp;nbsp;&amp;nbsp; is the only expression working correctly as my chart have two Distinct ID.But since the AD_ID are much more.I wanted to use &amp;gt;= or &amp;lt;= operator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This below expression is exactly what i need..&lt;/P&gt;&lt;P&gt;=only(if(Match(AD_ID,5001,5032),'KEY TERR',&lt;/P&gt;&lt;P&gt;if(Match(AD_ID&amp;gt;=5004 and AD_ID&amp;lt;=5019) or (AD_ID&amp;gt;=5035 and AD_ID&amp;lt;=5050)),'Prnt Key','Key_DTL')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 12:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-rename-column-names/m-p/498471#M186264</guid>
      <dc:creator />
      <dc:date>2013-12-19T12:14:52Z</dc:date>
    </item>
  </channel>
</rss>

