<?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: Using a string to get a measure name in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493952#M102381</link>
    <description>&lt;P&gt;Thanks for your help ...&lt;/P&gt;
&lt;P&gt;Hereunder the result ... Unfortunately, the cells displays the name of the KPIs, not the result&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sans titre.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174691i75B1FF9CADEBA353/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sans titre.png" alt="Sans titre.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2024 13:49:25 GMT</pubDate>
    <dc:creator>JuMo</dc:creator>
    <dc:date>2024-11-21T13:49:25Z</dc:date>
    <item>
      <title>Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493628#M102340</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a series of measure that have the following format&lt;/P&gt;
&lt;P&gt;KPI_A.Monthly&lt;/P&gt;
&lt;P&gt;KPI_A.Target&lt;/P&gt;
&lt;P&gt;KPI_A.Accumulative&lt;/P&gt;
&lt;P&gt;KPI_A.EOY&lt;/P&gt;
&lt;P&gt;KPI_B.Monthly&lt;/P&gt;
&lt;P&gt;KPI_B.Target&lt;/P&gt;
&lt;P&gt;KPI_B.Accumulative&lt;/P&gt;
&lt;P&gt;KPI_B.EOY&lt;/P&gt;
&lt;P&gt;KPI_C.Monthly&lt;/P&gt;
&lt;P&gt;… etc …&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also have a table with the root name of the measures&lt;/P&gt;
&lt;P&gt;KPI_Key&lt;/P&gt;
&lt;P&gt;KPI_A&lt;/P&gt;
&lt;P&gt;KPI_B&lt;/P&gt;
&lt;P&gt;KPI_C&lt;/P&gt;
&lt;P&gt;…&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) 1st Method&lt;/P&gt;
&lt;P&gt;If I inject this table inside a variable (KPI_Analyzed_Key), I can (with a drop-down selector) select a KPI_Analyzed_Key and then display all the associated measure using this expression:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[$(KPI_Analyzed_Key).Monthly]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;And it works perfectly, I’ve got the monthly value for the selected KPI&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) 2nd Method&lt;/P&gt;
&lt;P&gt;Using the same approach, I want to display all my measure in the same table… I would like to have something like that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="20%" height="25px"&gt;KPI_Key&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;Monthly&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;Target&amp;nbsp;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;Accumulative&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;EOY&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="25px"&gt;KPI_A&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="25px"&gt;KPI_B&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="25px"&gt;KPI_C&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I cannot manage to get it …&lt;/P&gt;
&lt;P&gt;I’ve tried to duplicate the same formula as previously:&lt;/P&gt;
&lt;P&gt;[$(KPI _Key).Monthly]&lt;/P&gt;
&lt;P&gt;but its not working.&lt;/P&gt;
&lt;P&gt;Any clue ?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 13:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493628#M102340</guid>
      <dc:creator>JuMo</dc:creator>
      <dc:date>2024-11-20T13:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493634#M102341</link>
      <description>&lt;P&gt;Hi - When you say '&lt;SPAN&gt;Using the same approach,..&lt;/SPAN&gt;' whats the approach, could you provide the expression/code for that so we cn repeat the same and check if that works for the second case too?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 11:53:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493634#M102341</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2024-11-20T11:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493653#M102344</link>
      <description>&lt;P&gt;Well the variable apporach was simple:&lt;/P&gt;
&lt;P&gt;- There is a variable called&amp;nbsp;&lt;SPAN&gt;KPI_Analyzed_Key&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- There is a variable input drop down populated by my table/column&amp;nbsp;KPI_Key and&amp;nbsp;the value is saved in the variable&amp;nbsp;KPI_Analyzed_Key&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- To display a measure according to the selected variable, I use the following expression&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;[$(KPI_Analyzed_Key).Monthly]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;And surprisingly, it works&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 13:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493653#M102344</guid>
      <dc:creator>JuMo</dc:creator>
      <dc:date>2024-11-20T13:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493658#M102345</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/171048"&gt;@JuMo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;variable always holds single value at the time. So if you expect it to expand to different values for each row of your table - it will not work. Instead you may want to consider using function like Only() or MaxString() to pickup the value from the dim.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like:&amp;nbsp;&lt;SPAN&gt;[$(=Only(KPI _Key)).Monthly]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would then preview how this expands in expression editor&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;cheers&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 13:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493658#M102345</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2024-11-20T13:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493678#M102346</link>
      <description>&lt;P&gt;Thanks .... The dollar sign seams to give an incorrect result, he is my result&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG&gt;KPI_Key&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;Only(KPI_Key)&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;$(=Only(KPI_Key))&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;[$(=Only(KPI_Key)).Monthly]&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;KPI_A&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;KPI_A&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="lia-align-center"&gt;-&lt;/TD&gt;
&lt;TD class="lia-align-center"&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;KPI_B&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;KPI_B&lt;/TD&gt;
&lt;TD class="lia-align-center"&gt;-&lt;/TD&gt;
&lt;TD class="lia-align-center"&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;KPI_C&amp;nbsp;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;KPI_C&lt;/TD&gt;
&lt;TD class="lia-align-center"&gt;-&lt;/TD&gt;
&lt;TD class="lia-align-center"&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 20 Nov 2024 14:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493678#M102346</guid>
      <dc:creator>JuMo</dc:creator>
      <dc:date>2024-11-20T14:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493702#M102347</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/171048"&gt;@JuMo&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Try using the GetObjectField() Function, it should return the KPI-Key from each row, if you write it as a $-Sign expression.&lt;/P&gt;
&lt;P&gt;So using something like [$(=GetObjectField(0)).Monthly] might work.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 15:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493702#M102347</guid>
      <dc:creator>lennart_mo</dc:creator>
      <dc:date>2024-11-20T15:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493770#M102360</link>
      <description>&lt;P&gt;whats your expected output?&lt;/P&gt;
&lt;P&gt;something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="(1).PNG" style="width: 685px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174654i5F6EF50C34BF542A/image-size/large?v=v2&amp;amp;px=999" role="button" title="(1).PNG" alt="(1).PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 21:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493770#M102360</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2024-11-20T21:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493807#M102363</link>
      <description>&lt;P&gt;Thanks for your help, however, it's not working:&lt;/P&gt;
&lt;P&gt;[$(=GetObjectField(0)).Monthly] returns "-"&lt;/P&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG&gt;KPI_Key&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;[$(=GetObjectField(0)).Monthly]&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;KPI_A&lt;/TD&gt;
&lt;TD&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;KPI_B&lt;/TD&gt;
&lt;TD&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;KPI_C;&lt;/TD&gt;
&lt;TD&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$(=GetObjectField(0)) returns a string with the KPI key&lt;/P&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG&gt;KPI_Key&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;$(=GetObjectField(0))&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;KPI_A&lt;/TD&gt;
&lt;TD&gt;KPI_A&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;KPI_B&lt;/TD&gt;
&lt;TD&gt;KPI_B&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;KPI_C;&lt;/TD&gt;
&lt;TD&gt;KPI_C&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GetObjectField(0) returns the name of the dimention&lt;/P&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG&gt;KPI_Key&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;GetObjectField(0)&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;KPI_A&lt;/TD&gt;
&lt;TD&gt;KPI_Key&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;KPI_B&lt;/TD&gt;
&lt;TD&gt;KPI_Key&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;KPI_C;&lt;/TD&gt;
&lt;TD&gt;KPI_Key&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 06:15:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493807#M102363</guid>
      <dc:creator>JuMo</dc:creator>
      <dc:date>2024-11-21T06:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493810#M102364</link>
      <description>&lt;P&gt;Yes, exactly&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 06:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493810#M102364</guid>
      <dc:creator>JuMo</dc:creator>
      <dc:date>2024-11-21T06:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493815#M102367</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/171048"&gt;@JuMo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you create simple Ctrl + 00 app ( just create new app and hit CTRL + 00 on keyboard in load script). That will autogenerate script for testing. Use this data to replicate sample you are trying to do then post it here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With actual app will be much quicker than going back and forth.&lt;/P&gt;
&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 07:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493815#M102367</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2024-11-21T07:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493899#M102374</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Try below scrpt,&lt;/P&gt;
&lt;DIV&gt;Table:&lt;/DIV&gt;
&lt;DIV&gt;Load * Inline [&lt;/DIV&gt;
&lt;DIV&gt;KPI_KEY_RET&lt;/DIV&gt;
&lt;DIV&gt;KPI_A&lt;/DIV&gt;
&lt;DIV&gt;KPI_B&lt;/DIV&gt;
&lt;DIV&gt;KPI_C&lt;/DIV&gt;
&lt;DIV&gt;];&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Table_1:&lt;/DIV&gt;
&lt;DIV&gt;Load * Inline [&lt;/DIV&gt;
&lt;DIV&gt;Attributes,Value&lt;/DIV&gt;
&lt;DIV&gt;KPI_A.Monthly,200&lt;/DIV&gt;
&lt;DIV&gt;KPI_A.Target,300&lt;/DIV&gt;
&lt;DIV&gt;KPI_A.Accumulative,400&lt;/DIV&gt;
&lt;DIV&gt;KPI_A.EOY,500&lt;/DIV&gt;
&lt;DIV&gt;KPI_B.Monthly,100&lt;/DIV&gt;
&lt;DIV&gt;KPI_B.Target,400&lt;/DIV&gt;
&lt;DIV&gt;KPI_B.Accumulative,600&lt;/DIV&gt;
&lt;DIV&gt;KPI_B.EOY,400&lt;/DIV&gt;
&lt;DIV&gt;KPI_C.Monthly,800&lt;/DIV&gt;
&lt;DIV&gt;KPI_C.Target,200&lt;/DIV&gt;
&lt;DIV&gt;KPI_C.Accumulative,300&lt;/DIV&gt;
&lt;DIV&gt;KPI_C.EOY,900&lt;/DIV&gt;
&lt;DIV&gt;];&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;NoConcatenate&lt;/DIV&gt;
&lt;DIV&gt;Table_2:&lt;/DIV&gt;
&lt;DIV&gt;Load * Where Exists(KPI_KEY_RET,KPI_KEY); //To fetch only list of "KPI KEY" from "Table"&lt;/DIV&gt;
&lt;DIV&gt;Load SubField(Attributes,'.',1) as KPI_KEY,&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; SubField(Attributes,'.',2) as Measures,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Value as MeasuresValue&lt;/DIV&gt;
&lt;DIV&gt;Resident Table_1;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Drop Table Table_1,Table;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;FinalTable:&lt;/DIV&gt;
&lt;DIV&gt;Load Distinct KPI_KEY Resident Table_2;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;FOR i = 1 to FieldValueCount('Measures')&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; LET vField = FieldValue('Measures', $(i));&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Left Join (FinalTable)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; LOAD KPI_KEY,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MeasuresValue as [$(vField)]&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Resident Table_2 Where Measures = '$(vField)';&lt;/DIV&gt;
&lt;DIV&gt;NEXT i&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;DROP Table Table_2;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Output,&lt;/DIV&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Muthukumar_77_0-1732185735547.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174679i432BD177594C9875/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Muthukumar_77_0-1732185735547.png" alt="Muthukumar_77_0-1732185735547.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Nov 2024 10:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493899#M102374</guid>
      <dc:creator>Muthukumar_77</dc:creator>
      <dc:date>2024-11-21T10:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493934#M102380</link>
      <description>&lt;P&gt;I highly suggest doing this in script rather than storing the values in the variables, as pivot tables isknow for its notorious nature especially for rangesum and variable usage expression. to avoid those, you could try below.:&lt;/P&gt;
&lt;P&gt;Measures:&lt;BR /&gt;Load *, &lt;BR /&gt;text(subfield(Measure, '.', 1)) as Measure_Root,&lt;BR /&gt;text(subfield(Measure, '.', 2)) as Measure_attribute,&lt;BR /&gt;text(subfield(Measure, '.', 1)) as Measure_Root_Key&lt;BR /&gt;;&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;Measure&lt;BR /&gt;KPI_A.Monthly&lt;BR /&gt;KPI_A.Target&lt;BR /&gt;KPI_A.Accumulative&lt;BR /&gt;KPI_A.EOY&lt;BR /&gt;KPI_B.Monthly&lt;BR /&gt;KPI_B.Target&lt;BR /&gt;KPI_B.Accumulative&lt;BR /&gt;KPI_B.EOY&lt;BR /&gt;KPI_C.Monthly&lt;BR /&gt;KPI_C.Target&lt;BR /&gt;KPI_C.Accumulative&lt;BR /&gt;KPI_C.EOY&lt;BR /&gt;] ;&lt;/P&gt;
&lt;P&gt;table_Root_Name:&lt;BR /&gt;load text(KPI_Key) as Measure_Root_Key, &lt;BR /&gt;KPI_Key &lt;BR /&gt;inline [&lt;BR /&gt;KPI_Key&lt;BR /&gt;KPI_A&lt;BR /&gt;KPI_B&lt;BR /&gt;KPI_C&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UI:&lt;/P&gt;
&lt;P&gt;Pivot table:&lt;BR /&gt;Dim1: KPI_Key&lt;BR /&gt;Dim2: Measure_attribute&lt;BR /&gt;Expression: =only(KPI_Key)&amp;amp;'.'&amp;amp;only(Measure_attribute)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 12:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493934#M102380</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2024-11-21T12:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493952#M102381</link>
      <description>&lt;P&gt;Thanks for your help ...&lt;/P&gt;
&lt;P&gt;Hereunder the result ... Unfortunately, the cells displays the name of the KPIs, not the result&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sans titre.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174691i75B1FF9CADEBA353/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sans titre.png" alt="Sans titre.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 13:49:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493952#M102381</guid>
      <dc:creator>JuMo</dc:creator>
      <dc:date>2024-11-21T13:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493954#M102382</link>
      <description>&lt;P&gt;I've reached an admin of my platform, because I dont have the rights to generate a QVS&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 13:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493954#M102382</guid>
      <dc:creator>JuMo</dc:creator>
      <dc:date>2024-11-21T13:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493961#M102383</link>
      <description>&lt;DIV class="MessageInResponseTo lia-component-message-view-widget-in-response-to lia-component-in-response-to"&gt;&lt;A id="inResponseTo_2" class="lia-link-navigation lia-message-reply-in-response-to" href="https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493770/highlight/true#M102360" target="_blank"&gt;In response to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="lia-message-in-response-to-username"&gt;Qrishna&lt;/SPAN&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV id="bodyDisplay_7" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;Yes, exactly&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;so i provided that code.&lt;/P&gt;
&lt;P&gt;so what do you want? could you put output view in an excel and paste it so i can understand what output view excactly your looking for?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 14:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493961#M102383</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2024-11-21T14:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493962#M102384</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;SPAN&gt;nevertheless I your example, the "Measures" are included in the script, and that not what I need, my measure a more complicate, they are aggregations of several fields&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 14:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493962#M102384</guid>
      <dc:creator>JuMo</dc:creator>
      <dc:date>2024-11-21T14:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493997#M102387</link>
      <description>&lt;P&gt;What you want to get isn't possible - you could not include dimension-information as expression-field-parts because they won't accepted as fields/functions/... else being just strings - unless they would be wrapped by $-sign expansion. But then they are an adhoc-variable which will be evaluated before the object is calculated and this single value is then applied to all rows/columns.&lt;/P&gt;
&lt;P&gt;Therefore a simple dynamic expression in which in each cell a different calculation is performed is not possible. If you want this kind of logic you will need a (nested) if-loop which queries the dimension-values and branched then to the wanted calculation. Be aware that such method would by larger data-sets slow down the application significantly.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 15:59:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2493997#M102387</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-11-21T15:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2494003#M102390</link>
      <description>&lt;P&gt;Of course, those are my KPIs&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JuMo_0-1732206619568.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174709iA5D06F1186289285/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JuMo_0-1732206619568.png" alt="JuMo_0-1732206619568.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Ad I want all them in this kind of table:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 240pt;" border="0" width="320" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 60pt;" span="4" width="80" /&gt; &lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="80" height="20" style="height: 15.0pt; width: 60pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="80" style="width: 60pt;"&gt;Monthly&lt;/TD&gt;
&lt;TD width="80" style="width: 60pt;"&gt;Target&lt;/TD&gt;
&lt;TD width="80" style="width: 60pt;"&gt;EOY&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;KPI_A&lt;/TD&gt;
&lt;TD align="right"&gt;1990&lt;/TD&gt;
&lt;TD align="right"&gt;250800&lt;/TD&gt;
&lt;TD align="right"&gt;864&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;KPI_B&lt;/TD&gt;
&lt;TD align="right"&gt;2990&lt;/TD&gt;
&lt;TD align="right"&gt;253200&lt;/TD&gt;
&lt;TD align="right"&gt;8,91&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;KPI_C&lt;/TD&gt;
&lt;TD align="right"&gt;2080&lt;/TD&gt;
&lt;TD align="right"&gt;303400&lt;/TD&gt;
&lt;TD align="right"&gt;5040&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 16:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2494003#M102390</guid>
      <dc:creator>JuMo</dc:creator>
      <dc:date>2024-11-21T16:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2494030#M102391</link>
      <description>&lt;P&gt;I am quite&amp;nbsp; surprised&amp;nbsp;because I can do that using variable:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="All selector.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174726i826412E3A8A6CB02/image-size/large?v=v2&amp;amp;px=999" role="button" title="All selector.png" alt="All selector.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KPIA.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174724iBCD08ADB23695C70/image-size/large?v=v2&amp;amp;px=999" role="button" title="KPIA.png" alt="KPIA.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KPIB.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174725i07E07E9A5E6CF0A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="KPIB.png" alt="KPIB.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Those are the expression used for each cards:&lt;/P&gt;
&lt;P&gt;[$(KPI_Analyzed_Key).Monthly]&lt;/P&gt;
&lt;P&gt;[$(KPI_Analyzed_Key).Target]&lt;/P&gt;
&lt;P&gt;[$(KPI_Analyzed_Key).EOY]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 16:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2494030#M102391</guid>
      <dc:creator>JuMo</dc:creator>
      <dc:date>2024-11-21T16:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using a string to get a measure name</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2494032#M102392</link>
      <description>&lt;P&gt;It's a single expression in each card and of course they could be combined with variables. But not using variables else trying to reference on dimension-values to build an expression is a different matter.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 17:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-string-to-get-a-measure-name/m-p/2494032#M102392</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-11-21T17:02:51Z</dc:date>
    </item>
  </channel>
</rss>

