<?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: How to create Pivot or Straight table with expression results on multiple rows per dimension? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-Pivot-or-Straight-table-with-expression-results-on/m-p/1337150#M842886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response @ShivaNagesh, I will have to try later to mock up data and make it available here. I am doing the actual calculations in SQL except for the % to Goal. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an attempt for me to convey how the data looks:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Actuals table&lt;/P&gt;&lt;P&gt;Cost Center 1234,&lt;/P&gt;&lt;P&gt;Metric 1 value: 10,000&lt;/P&gt;&lt;P&gt;Metric 2 value: 5,000 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cost Center 4321&lt;/P&gt;&lt;P&gt;Metric 1 Goal: 20,000&lt;/P&gt;&lt;P&gt;Metric 2 Goal: 10,000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These would be displayed on separate lines, but grouped by the cost center as shown in my OP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are more fields to display, but they would be displayed in one row for each dimension value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this isn't enough I will endeavor to provide a sample file tomorrow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Apr 2017 16:52:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-04-18T16:52:26Z</dc:date>
    <item>
      <title>How to create Pivot or Straight table with expression results on multiple rows per dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Pivot-or-Straight-table-with-expression-results-on/m-p/1337148#M842884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have loaded a table into Qlik that has the dimension of "Cost Center" and multiple expression calculations that are to be expressed as Goal, Actual and Percent to Goal. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desired Result:&lt;/P&gt;&lt;P&gt;For each cost center dimension, I would like to display Goal on Top row, Actual in the Middle and % to Goal at the bottom. I do not like having Goal, Actual and % to Goal displayed adjacently on the same row because it's hard to see the relationship between those results, but am open for other display suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source Data:&lt;/P&gt;&lt;P&gt;The Goal and actual numbers are brought in from two separate SQL tables and Qlik does the joins on the Cost Center columns. I could split the load into separate statements but not sure what would work best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions for doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Cost Center&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Metric1&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Metric2&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Cost Center 1234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Goal #&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Goal #&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Actual #&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Actual #&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;% to Goal&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;% to Goal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Cost Center 4321...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Goal #&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Goal #&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Actual #&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Actual #&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;% to Goal&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;% to Goal&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Pivot-or-Straight-table-with-expression-results-on/m-p/1337148#M842884</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Pivot or Straight table with expression results on multiple rows per dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Pivot-or-Straight-table-with-expression-results-on/m-p/1337149#M842885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a sample with mock data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2017 16:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Pivot-or-Straight-table-with-expression-results-on/m-p/1337149#M842885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-18T16:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Pivot or Straight table with expression results on multiple rows per dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Pivot-or-Straight-table-with-expression-results-on/m-p/1337150#M842886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response @ShivaNagesh, I will have to try later to mock up data and make it available here. I am doing the actual calculations in SQL except for the % to Goal. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an attempt for me to convey how the data looks:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Actuals table&lt;/P&gt;&lt;P&gt;Cost Center 1234,&lt;/P&gt;&lt;P&gt;Metric 1 value: 10,000&lt;/P&gt;&lt;P&gt;Metric 2 value: 5,000 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cost Center 4321&lt;/P&gt;&lt;P&gt;Metric 1 Goal: 20,000&lt;/P&gt;&lt;P&gt;Metric 2 Goal: 10,000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These would be displayed on separate lines, but grouped by the cost center as shown in my OP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are more fields to display, but they would be displayed in one row for each dimension value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this isn't enough I will endeavor to provide a sample file tomorrow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2017 16:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Pivot-or-Straight-table-with-expression-results-on/m-p/1337150#M842886</guid>
      <dc:creator />
      <dc:date>2017-04-18T16:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Pivot or Straight table with expression results on multiple rows per dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Pivot-or-Straight-table-with-expression-results-on/m-p/1337151#M842888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a synthetic dimension (using a data island table in the model or ValueList() ) with Goal, Actual and %.&lt;/P&gt;&lt;P&gt;Then use a conditional function like Pick(Match() ) to branch into the specific calculation within your single expression.&lt;/P&gt;&lt;P&gt;There are some examples here in the forum how to do that. Just search for ValueList() and pick() / match().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2017 17:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Pivot-or-Straight-table-with-expression-results-on/m-p/1337151#M842888</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-04-18T17:52:37Z</dc:date>
    </item>
  </channel>
</rss>

