<?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: Dynamic Measure Labels based on Pivot Chart Dimensions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamic-Measure-Labels-based-on-Pivot-Chart-Dimensions/m-p/1915916#M75422</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;As far as I can see this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=if(floor([Posted Month])&amp;lt;floor(MonthStart(today())),'Actual Revenue','Budget Revenue') &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;should work as long as you Posted Month field has a valid date format&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is what I am getting using it:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jbhappysocks_1-1649343863635.png" style="width: 767px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/76593i86653F8E57621B54/image-dimensions/767x171?v=v2" width="767" height="171" role="button" title="jbhappysocks_1-1649343863635.png" alt="jbhappysocks_1-1649343863635.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 15:05:17 GMT</pubDate>
    <dc:creator>jbhappysocks</dc:creator>
    <dc:date>2022-04-07T15:05:17Z</dc:date>
    <item>
      <title>Dynamic Measure Labels based on Pivot Chart Dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Measure-Labels-based-on-Pivot-Chart-Dimensions/m-p/1915678#M75399</link>
      <description>&lt;P&gt;Feel this might have been done to death at this stage but haven't found a workable solution yet and have tried a few different examples. Just figured it would be a useful topic to have anyway as I am sure other people are after the same thing&lt;/P&gt;
&lt;P&gt;The best way I could explain it is if you have a use case for a pivot chart where you want to show the latest budget versus closed revenue across posted months of one year. Your usual 2+10, 4+8 etc. But you wanted the measure label to change dynamically e.g Actual Revenue for closed revenue and Budget Revenue for budgeted revenue what approach can you use?&lt;/P&gt;
&lt;P&gt;Have tried the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Quickly worked out that Qlik doesn't recognise the pivoted dimension above in the label, only the measure itself&lt;/LI&gt;
&lt;LI&gt;Tried to use the if statement from the measure which didn't work like this =if(floor([Posted Month])&amp;lt;floor(MonthStart(today())),'Actual Revenue','Budget Revenue')&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Created a variable with basically the same expression that if it equals 1 displays the results, which works for the measure but again doesn't work for the label for example&amp;nbsp;=if($(vBudgetMeasureLabel)=1,'Actual Revenue','Budget Revenue')&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Have also tried these approaches in the condition of the measure but the issue seems to relate to the fact that outside of the measure itself Qlik doesn't seem to recognise the pivoted dimension&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;It may well be something simple I am missing, just haven't been able to get it to work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create a table that looks like this, bearing in mind I have the measure itself working and can change my approach there if necessary. The example below would be for this month so the last completed month of actuals is obviously March:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qbo_0-1649317860707.png" style="width: 669px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/76553i322BEF5C3E39366A/image-dimensions/669x83?v=v2" width="669" height="83" role="button" title="Qbo_0-1649317860707.png" alt="Qbo_0-1649317860707.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any help would be much appreciated, thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 12:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Measure-Labels-based-on-Pivot-Chart-Dimensions/m-p/1915678#M75399</guid>
      <dc:creator>Qbo</dc:creator>
      <dc:date>2022-04-07T12:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Measure Labels based on Pivot Chart Dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Measure-Labels-based-on-Pivot-Chart-Dimensions/m-p/1915830#M75419</link>
      <description>&lt;P&gt;Hi, do I understand correctly, that basically you have 2 types of sales, Actual and Budget, and (I hope) you can separate them? And then, according what day it is today you would like to change label, and switch sales between actual and budget. I will use part of your data like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;temp:
load * inline [
date, product, sales, indicator
2022-01-01, wid, 2, B
2022-01-01, cat, 0, B
2022-02-01, wid, 56, B
2022-02-01, cat, 28, B
2022-03-01, wid, 58, B
2022-03-01, cat, 29, B
2022-04-01, wid, 114, B
2022-04-01, cat, 57, B
2022-05-01, wid, 172, B
2022-05-01, cat, 86, B
2022-06-01, wid, 286, B
2022-06-01, cat, 143, B
2022-07-01, wid, 458, B
2022-07-01, cat, 229, B
2022-08-01, wid, 744, B
2022-08-01, cat, 372, B
2022-01-01, wid, 111, A
2022-01-01, cat, 111, A
2022-02-01, wid, 222, A
2022-02-01, cat, 222, A
2022-03-01, wid, 333, A
2022-03-01, cat, 333, A];&lt;/LI-CODE&gt;
&lt;P&gt;and in report level I make simple pivot like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="justISO_0-1649335148625.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/76575i6AB960AF9C2AF636/image-size/medium?v=v2&amp;amp;px=400" role="button" title="justISO_0-1649335148625.png" alt="justISO_0-1649335148625.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;where I add this additional column with&lt;/P&gt;
&lt;P&gt;=if (date&amp;lt;monthstart(today()), 'Actual', 'Budget')&lt;/P&gt;
&lt;P&gt;and similarly adjusted sales measure to take actual or budget sales&lt;/P&gt;
&lt;P&gt;Sum(if (date&amp;lt;monthstart(today()), if(indicator='A', sales),if(indicator='B', sales)))&lt;/P&gt;
&lt;P&gt;Marked 'Expand all' in pivot properties.&lt;/P&gt;
&lt;P&gt;Does this can do the trick in your situation?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 12:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Measure-Labels-based-on-Pivot-Chart-Dimensions/m-p/1915830#M75419</guid>
      <dc:creator>justISO</dc:creator>
      <dc:date>2022-04-07T12:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Measure Labels based on Pivot Chart Dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Measure-Labels-based-on-Pivot-Chart-Dimensions/m-p/1915916#M75422</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;As far as I can see this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=if(floor([Posted Month])&amp;lt;floor(MonthStart(today())),'Actual Revenue','Budget Revenue') &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;should work as long as you Posted Month field has a valid date format&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is what I am getting using it:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jbhappysocks_1-1649343863635.png" style="width: 767px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/76593i86653F8E57621B54/image-dimensions/767x171?v=v2" width="767" height="171" role="button" title="jbhappysocks_1-1649343863635.png" alt="jbhappysocks_1-1649343863635.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 15:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Measure-Labels-based-on-Pivot-Chart-Dimensions/m-p/1915916#M75422</guid>
      <dc:creator>jbhappysocks</dc:creator>
      <dc:date>2022-04-07T15:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Measure Labels based on Pivot Chart Dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Measure-Labels-based-on-Pivot-Chart-Dimensions/m-p/1916272#M75440</link>
      <description>&lt;P&gt;Thanks but not quite what I am looking for. I should have said, my model will have multiple measures or expression so for example say:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Revenue&lt;/LI&gt;
&lt;LI&gt;Quantity&lt;/LI&gt;
&lt;LI&gt;Unit Price&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;And I want the measure labels updated, in the end I had to use a solution similar to as you have. I was hoping I could use as ValueList() and then create 3 measures referencing it for each item but QlikView doesn't seem to want to play ball on updating expression labels based pivoted dimension criteria or anything useable from dynamic measure values either.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Think I was just getting too caught up expression labels when dimension splits were sufficient as more wanted to see if it could be done. Thanks for your help guys.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 11:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Measure-Labels-based-on-Pivot-Chart-Dimensions/m-p/1916272#M75440</guid>
      <dc:creator>Qbo</dc:creator>
      <dc:date>2022-04-08T11:50:54Z</dc:date>
    </item>
  </channel>
</rss>

