<?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: Set specific data label for the first value of some time series in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-specific-data-label-for-the-first-value-of-some-time-series/m-p/2413065#M94819</link>
    <description>&lt;P&gt;Tried recreating this and here is what I got:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LRuCelver_0-1706707784569.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158759iE2F9A59CEA6E35CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LRuCelver_0-1706707784569.png" alt="LRuCelver_0-1706707784569.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure used:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Dual(
	If(Week &amp;gt; 1, ' ',
		//	Assign the Text here. Example:
		Pick(Rank(Year), 'CY', 'PY', '2PY')
	),
	Count(distinct MyDim)
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure to set the Number formatting to "Measure Expression":&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LRuCelver_1-1706707891870.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158760i51B53D3E6FDE5061/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LRuCelver_1-1706707891870.png" alt="LRuCelver_1-1706707891870.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the data I used:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Data:
NoConcatenate Load
	RecNo() as Week
AutoGenerate 52;

Join Load * Inline [
	Year
	2022
	2023
	2024
];

Join Load
	Floor(Rand() * 3) + 2022 as Year,
	Floor(Rand() * 52) + 1 as Week,
	RecNo() as MyDim
AutoGenerate 10000;&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 31 Jan 2024 13:32:55 GMT</pubDate>
    <dc:creator>LRuCelver</dc:creator>
    <dc:date>2024-01-31T13:32:55Z</dc:date>
    <item>
      <title>Set specific data label for the first value of some time series</title>
      <link>https://community.qlik.com/t5/App-Development/Set-specific-data-label-for-the-first-value-of-some-time-series/m-p/2412997#M94810</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a chart with one calculated measure and two dimensions (one line and one group).&lt;BR /&gt;I want a different label for each different Year (CY, PY and 2PY) on the first value of each series.&lt;BR /&gt;I have been able to generate the label only for the latest year with:&lt;/P&gt;
&lt;P&gt;dual&lt;BR /&gt;(if(Week=1 AND Year=2024,&lt;BR /&gt;'CY',&lt;BR /&gt;if(Week=1 and Year=2023,'PY',' ')),&lt;BR /&gt;count(distinct [MyDim])&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;It seems that Qlik is evaluating the condition only for the current year. Is there an error in my formula or there is another approach?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Defo_2-1706698659610.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158747i819EF0C106A0C6C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Defo_2-1706698659610.png" alt="Defo_2-1706698659610.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;Davide&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 11:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-specific-data-label-for-the-first-value-of-some-time-series/m-p/2412997#M94810</guid>
      <dc:creator>Defo</dc:creator>
      <dc:date>2024-01-31T11:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set specific data label for the first value of some time series</title>
      <link>https://community.qlik.com/t5/App-Development/Set-specific-data-label-for-the-first-value-of-some-time-series/m-p/2413065#M94819</link>
      <description>&lt;P&gt;Tried recreating this and here is what I got:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LRuCelver_0-1706707784569.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158759iE2F9A59CEA6E35CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LRuCelver_0-1706707784569.png" alt="LRuCelver_0-1706707784569.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure used:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Dual(
	If(Week &amp;gt; 1, ' ',
		//	Assign the Text here. Example:
		Pick(Rank(Year), 'CY', 'PY', '2PY')
	),
	Count(distinct MyDim)
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure to set the Number formatting to "Measure Expression":&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LRuCelver_1-1706707891870.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158760i51B53D3E6FDE5061/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LRuCelver_1-1706707891870.png" alt="LRuCelver_1-1706707891870.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the data I used:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Data:
NoConcatenate Load
	RecNo() as Week
AutoGenerate 52;

Join Load * Inline [
	Year
	2022
	2023
	2024
];

Join Load
	Floor(Rand() * 3) + 2022 as Year,
	Floor(Rand() * 52) + 1 as Week,
	RecNo() as MyDim
AutoGenerate 10000;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 Jan 2024 13:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-specific-data-label-for-the-first-value-of-some-time-series/m-p/2413065#M94819</guid>
      <dc:creator>LRuCelver</dc:creator>
      <dc:date>2024-01-31T13:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set specific data label for the first value of some time series</title>
      <link>https://community.qlik.com/t5/App-Development/Set-specific-data-label-for-the-first-value-of-some-time-series/m-p/2413066#M94820</link>
      <description>&lt;P&gt;You can't assign more than one unique text value to a dual dimension, so your if-statement that tries to assign either CY or PY or [blank] to the dual text value is probably what causes your problem.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 13:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-specific-data-label-for-the-first-value-of-some-time-series/m-p/2413066#M94820</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2024-01-31T13:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set specific data label for the first value of some time series</title>
      <link>https://community.qlik.com/t5/App-Development/Set-specific-data-label-for-the-first-value-of-some-time-series/m-p/2413068#M94821</link>
      <description>&lt;P&gt;Thanks both for your support! Actually I don't know what changed but now it works.&lt;/P&gt;
&lt;P&gt;Davide&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 13:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-specific-data-label-for-the-first-value-of-some-time-series/m-p/2413068#M94821</guid>
      <dc:creator>Defo</dc:creator>
      <dc:date>2024-01-31T13:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set specific data label for the first value of some time series</title>
      <link>https://community.qlik.com/t5/App-Development/Set-specific-data-label-for-the-first-value-of-some-time-series/m-p/2413069#M94822</link>
      <description>&lt;P&gt;Based on &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/285770"&gt;@LRuCelver&lt;/a&gt;'s answer it seems I was wrong. But different text values in one dual statement can be problematic, see for example &lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Dual-forces-distinct-when-numeric-value-is-same/td-p/512178" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Dual-forces-distinct-when-numeric-value-is-same/td-p/512178&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 13:40:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-specific-data-label-for-the-first-value-of-some-time-series/m-p/2413069#M94822</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2024-01-31T13:40:30Z</dc:date>
    </item>
  </channel>
</rss>

