<?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: Dynamically add Measures in Pivot based on data in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamically-add-Measures-in-Pivot-based-on-data/m-p/1597904#M63144</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you explain why you want to convert the 50 columns to one field&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the business logic behind it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2019 06:37:13 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2019-07-02T06:37:13Z</dc:date>
    <item>
      <title>Dynamically add Measures in Pivot based on data</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-add-Measures-in-Pivot-based-on-data/m-p/1597881#M63141</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have my data as below:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;Field1, Field2, Field3, Sales,Year&lt;BR /&gt;AAA, CCC, GGG, 10,2000&lt;BR /&gt;AAA, CCC, HHH, 20,2001&lt;BR /&gt;AAA, DDD, JJJ, 30,2005&lt;BR /&gt;AAA, DDD, KKK, 40,2006&lt;BR /&gt;BBB, EEE, LLL, 50,2007&lt;BR /&gt;BBB, EEE, MMM, 60,2008&lt;BR /&gt;BBB, FFF, NNN, 70,2000&lt;BR /&gt;BBB, FFF, PPP, 80,2001&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Requirement:&lt;/P&gt;&lt;P&gt;1) I need to create a Pivot which would have Year as my dimension (ROWS) and one new dimension (which consists of all Field1,Field2 &amp;amp; Field3 values) as COLUMNS&lt;/P&gt;&lt;P&gt;2) Also I want to create a dynamic logic such that if there is any new value added in any of the Fields( i.e Field1,2,3) It should populate the sum(Sales) directly without making any script changes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="TEST.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14726i0EDB5C32AC92773A/image-size/large?v=v2&amp;amp;px=999" role="button" title="TEST.png" alt="TEST.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 07:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-add-Measures-in-Pivot-based-on-data/m-p/1597881#M63141</guid>
      <dc:creator>rneelakantam</dc:creator>
      <dc:date>2021-04-02T07:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically add Measures in Pivot based on data</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-add-Measures-in-Pivot-based-on-data/m-p/1597889#M63142</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;your first point is not clear&amp;nbsp;&lt;/P&gt;&lt;P&gt;you could create a table like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Field1, Field2, Field3, Sales,Year&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AAA, CCC, GGG, 10,2000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AAA, CCC, HHH, 20,2001&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AAA, DDD, JJJ, 30,2005&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AAA, DDD, KKK, 40,2006&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BBB, EEE, LLL, 50,2007&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BBB, EEE, MMM, 60,2008&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BBB, FFF, NNN, 70,2000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BBB, FFF, PPP, 80,2001&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Table2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;load Field1 as NewField,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sales,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;resident Table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;load Field2 as NewField,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sales,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;resident Table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;load Field3 as NewField,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sales,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;resident Table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;drop table Table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this will create the dimension you look for but it will also multiply the sales total by 3 so you need to add some logic how to split the sales between the values in fields : Field1-3&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this script also answer your second point because any new value will automatically added to the table and the corresponding pivot table&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 05:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-add-Measures-in-Pivot-based-on-data/m-p/1597889#M63142</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2019-07-02T05:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically add Measures in Pivot based on data</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-add-Measures-in-Pivot-based-on-data/m-p/1597900#M63143</link>
      <description>&lt;P&gt;Hi Lironbaram,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;In the sample data which i provided has only few columns where as in my original data we have 50 columns and 200 Million records. If i concatenate and create a new dimension the Sales value would be multiplied. Is there any work around to handle this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 06:22:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-add-Measures-in-Pivot-based-on-data/m-p/1597900#M63143</guid>
      <dc:creator>rneelakantam</dc:creator>
      <dc:date>2019-07-02T06:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically add Measures in Pivot based on data</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-add-Measures-in-Pivot-based-on-data/m-p/1597904#M63144</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you explain why you want to convert the 50 columns to one field&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the business logic behind it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 06:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-add-Measures-in-Pivot-based-on-data/m-p/1597904#M63144</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2019-07-02T06:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically add Measures in Pivot based on data</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-add-Measures-in-Pivot-based-on-data/m-p/1597905#M63145</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I don't want to convert all 50 but i want to convert 8 columns to 1 column.Rest would remain as it is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 06:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-add-Measures-in-Pivot-based-on-data/m-p/1597905#M63145</guid>
      <dc:creator>rneelakantam</dc:creator>
      <dc:date>2019-07-02T06:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically add Measures in Pivot based on data</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-add-Measures-in-Pivot-based-on-data/m-p/1598401#M63146</link>
      <description>&lt;P&gt;Dynamic measures is one type of disconnected slicer technique. The other two techniques are dynamic parameters (made much easier with the release of variables in Power BI) and dynamic attributes. This last technique, dynamic attributes, hasn’t gotten much attention, so let’s fix that!&lt;/P&gt;&lt;P&gt;&lt;A href="https://streamd.in/best-food-processors-india/" target="_self"&gt;Food Processors India 2019&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 05:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-add-Measures-in-Pivot-based-on-data/m-p/1598401#M63146</guid>
      <dc:creator>Abhinav45</dc:creator>
      <dc:date>2019-07-03T05:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically add Measures in Pivot based on data</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-add-Measures-in-Pivot-based-on-data/m-p/1599834#M63147</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Any solution for this scenario&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 11:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-add-Measures-in-Pivot-based-on-data/m-p/1599834#M63147</guid>
      <dc:creator>rneelakantam</dc:creator>
      <dc:date>2019-07-08T11:02:01Z</dc:date>
    </item>
  </channel>
</rss>

