<?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 Building Structures? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Building-Structures/m-p/141769#M21370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oleg,&lt;/P&gt;&lt;P&gt;The issue is we need to hard code in the lines to make it look good. For example, Product Sales is derived from an expression which is&lt;/P&gt;&lt;P&gt;Sum(If(Prod = 1, Amt))&lt;/P&gt;&lt;P&gt;this is used consistently down&lt;/P&gt;&lt;P&gt;InThe dimensions we use Type which is defined in the load, I.e. Plan, Actuals&lt;/P&gt;&lt;P&gt;Yet doing this it doesn not allow for you to define Actuals - Plan as those are Dimensions. Yet the only way to get a view like this is using it this way... Any ideas??&lt;/P&gt;&lt;P&gt;This is using the chart "Pivot Table"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Apr 2009 23:54:20 GMT</pubDate>
    <dc:creator>james</dc:creator>
    <dc:date>2009-04-18T23:54:20Z</dc:date>
    <item>
      <title>Building Structures?</title>
      <link>https://community.qlik.com/t5/QlikView/Building-Structures/m-p/141767#M21368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;Has anyone had any luck building structures in qlikview on the front end? I.e. you have actuals plan variance etc, yet you need to hard code in lines in expressions to build a nice view.&lt;/P&gt;&lt;P&gt;Lets say you add 5 expressions that say Product Sales, expense, sales,, marketing , misc revenue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to create the 3"columns" that have i it the Plan, the 2nd column as Actuals and than the 3rd as Variance. I cannot get this to work in a pivot form as dimensions keep adding sub layers and a straight table isnt working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Apr 2009 21:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-Structures/m-p/141767#M21368</guid>
      <dc:creator>james</dc:creator>
      <dc:date>2009-04-18T21:41:22Z</dc:date>
    </item>
    <item>
      <title>Building Structures?</title>
      <link>https://community.qlik.com/t5/QlikView/Building-Structures/m-p/141768#M21369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;please expand... perhaps an example could help...&lt;/P&gt;&lt;P&gt;From what I can understand - do you want to re-use the results of some expressions in other expressions? You can reference Expressions by number:&lt;/P&gt;&lt;P&gt;Column(1) - Column(2)&lt;/P&gt;&lt;P&gt;or you can reference them by the label:&lt;/P&gt;&lt;P&gt;[Actual Sales] - [Plan]&lt;/P&gt;&lt;P&gt;You can also save your expressions in variables and then re-use the expression using $-sign extension:&lt;/P&gt;&lt;P&gt;SET vSales = 'sum(Sales)';&lt;/P&gt;&lt;P&gt;&amp;lt;expr&amp;gt; = $(vSales)&lt;/P&gt;&lt;P&gt;If these are not relevant to your question - please explain in more detail.&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Apr 2009 22:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-Structures/m-p/141768#M21369</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-04-18T22:50:21Z</dc:date>
    </item>
    <item>
      <title>Building Structures?</title>
      <link>https://community.qlik.com/t5/QlikView/Building-Structures/m-p/141769#M21370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oleg,&lt;/P&gt;&lt;P&gt;The issue is we need to hard code in the lines to make it look good. For example, Product Sales is derived from an expression which is&lt;/P&gt;&lt;P&gt;Sum(If(Prod = 1, Amt))&lt;/P&gt;&lt;P&gt;this is used consistently down&lt;/P&gt;&lt;P&gt;InThe dimensions we use Type which is defined in the load, I.e. Plan, Actuals&lt;/P&gt;&lt;P&gt;Yet doing this it doesn not allow for you to define Actuals - Plan as those are Dimensions. Yet the only way to get a view like this is using it this way... Any ideas??&lt;/P&gt;&lt;P&gt;This is using the chart "Pivot Table"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Apr 2009 23:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-Structures/m-p/141769#M21370</guid>
      <dc:creator>james</dc:creator>
      <dc:date>2009-04-18T23:54:20Z</dc:date>
    </item>
    <item>
      <title>Building Structures?</title>
      <link>https://community.qlik.com/t5/QlikView/Building-Structures/m-p/141770#M21371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually use flags to resolve situations like this . For example, instead of using expression like yours:&lt;/P&gt;&lt;P&gt;sum(if(Prod = 1, Amt),&lt;/P&gt;&lt;P&gt;I pre-calculate the flag and change the expression to the following:&lt;/P&gt;&lt;P&gt;sum(Amt * Prod_Flag)&lt;/P&gt;&lt;P&gt;To solve your second problem, you can have another set of flags - for example, Actual_Flag, Plan_Flag. Then, you can add another value for your Dimension - Plan, Actuals, Difference (let's call it ColumnName), and build your expression this way:&lt;/P&gt;&lt;P&gt;if(ColumnName = 'Actuals', sum(Amt * Prod_Flag * Actual_Flag),&lt;/P&gt;&lt;P&gt;if(ColumnName = 'Plan', sum(Amt * Prod_Flag * Plan_Flag),&lt;/P&gt;&lt;P&gt;if(ColumnName = 'Difference', sum(Amt * Prod_Flag * Actual_Flag) - sum(Amt * Prod_Flag * Plan_Flag)&lt;/P&gt;&lt;P&gt;)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice that this "IF" is OK, it's outside of the sum() function, while your "IF" can be a killer, because it's inside of the sum() function, therefore it will be performed as many times as the number of your detailed records.&lt;/P&gt;&lt;P&gt;hope it works for you,&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Apr 2009 04:19:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-Structures/m-p/141770#M21371</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-04-19T04:19:39Z</dc:date>
    </item>
    <item>
      <title>Building Structures?</title>
      <link>https://community.qlik.com/t5/QlikView/Building-Structures/m-p/141771#M21372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will this understand the columns even thought they are the 4th dimension on the pivot table? They are not actual column names, jut based on a field called "Type", hich in this case is either Actuals or Plan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Apr 2009 05:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-Structures/m-p/141771#M21372</guid>
      <dc:creator>james</dc:creator>
      <dc:date>2009-04-19T05:00:58Z</dc:date>
    </item>
    <item>
      <title>Building Structures?</title>
      <link>https://community.qlik.com/t5/QlikView/Building-Structures/m-p/141772#M21373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ColumnName was the field name that I came up with... In your case, use your field "Type".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Apr 2009 05:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-Structures/m-p/141772#M21373</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-04-19T05:30:39Z</dc:date>
    </item>
  </channel>
</rss>

