<?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 Calculated measure from two FACT tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-measure-from-two-FACT-tables/m-p/212441#M66415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd load the two tables separately from the SQL database.&lt;BR /&gt;&lt;BR /&gt;FactTimeregistration:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Load DepartmentKey,&lt;BR /&gt;CustomerKey, EmployeeKey, ProjektKey,&lt;BR /&gt;TimeProduction;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM Datawarehouse.dbo.FactTimeregistration;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FactKapacity:&lt;BR /&gt;&lt;BR /&gt;LOAD CustomerKey&lt;BR /&gt;, EmployeeKey&lt;BR /&gt;, ProjektKey&lt;BR /&gt;, TimeRegistered;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM Datawarehouse.dbo.FactKapacity;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Assuming you can join your 2 tables as per your requirements, you can then create a Variable in the Document Properties, &lt;BR /&gt;called TestMeasure, and set the expression to =FactTimeregistration.TimeProduction*FactKapacity.TimeRegistered&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jul 2010 11:23:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-02T11:23:25Z</dc:date>
    <item>
      <title>Calculated measure from two FACT tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-measure-from-two-FACT-tables/m-p/212440#M66414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am quite new in Qlikview and need a little help:&lt;/P&gt;&lt;P&gt;I am making Qlikview dashboards on a Datawarehouse and need to make a calculated measure with measures from 2 FACT-tables.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Example:&lt;/P&gt;&lt;P&gt;I need to make a calculated measure:&lt;/P&gt;&lt;P style="font-style: italic"&gt;TimeProduction*TimeRegistered as TestMeasure&lt;/P&gt;&lt;P&gt;from the following FACT_tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;SQL SELECT&lt;/P&gt;&lt;P style="font-style: italic"&gt;DepartmentKey&lt;/P&gt;&lt;P style="font-style: italic"&gt;, CustomerKey&lt;/P&gt;&lt;P style="font-style: italic"&gt;, EmployeeKey&lt;/P&gt;&lt;P style="font-style: italic"&gt;, ProjektKey&lt;/P&gt;&lt;P style="font-style: italic"&gt;, TimeProduction&lt;/P&gt;&lt;P style="font-style: italic"&gt;FROM Datawarehouse.dbo.FactTimeregistration;&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;CONCATENATE SQL SELECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;, CustomerKey&lt;/P&gt;&lt;P style="font-style: italic"&gt;, EmployeeKey&lt;/P&gt;&lt;P style="font-style: italic"&gt;, ProjektKey&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;, TimeRegistered&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;FROM Datawarehouse.dbo.FactKapacity;&lt;/P&gt;&lt;P&gt;&lt;I&gt;please advise.&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;BR,&lt;/P&gt;&lt;P style="font-style: italic"&gt;Jakob&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 11:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-measure-from-two-FACT-tables/m-p/212440#M66414</guid>
      <dc:creator />
      <dc:date>2010-07-02T11:11:14Z</dc:date>
    </item>
    <item>
      <title>Calculated measure from two FACT tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-measure-from-two-FACT-tables/m-p/212441#M66415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd load the two tables separately from the SQL database.&lt;BR /&gt;&lt;BR /&gt;FactTimeregistration:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Load DepartmentKey,&lt;BR /&gt;CustomerKey, EmployeeKey, ProjektKey,&lt;BR /&gt;TimeProduction;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM Datawarehouse.dbo.FactTimeregistration;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FactKapacity:&lt;BR /&gt;&lt;BR /&gt;LOAD CustomerKey&lt;BR /&gt;, EmployeeKey&lt;BR /&gt;, ProjektKey&lt;BR /&gt;, TimeRegistered;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM Datawarehouse.dbo.FactKapacity;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Assuming you can join your 2 tables as per your requirements, you can then create a Variable in the Document Properties, &lt;BR /&gt;called TestMeasure, and set the expression to =FactTimeregistration.TimeProduction*FactKapacity.TimeRegistered&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 11:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-measure-from-two-FACT-tables/m-p/212441#M66415</guid>
      <dc:creator />
      <dc:date>2010-07-02T11:23:25Z</dc:date>
    </item>
    <item>
      <title>Calculated measure from two FACT tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-measure-from-two-FACT-tables/m-p/212442#M66416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks GraemeB, I wasn't aware of this way to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 11:57:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-measure-from-two-FACT-tables/m-p/212442#M66416</guid>
      <dc:creator />
      <dc:date>2010-07-02T11:57:27Z</dc:date>
    </item>
  </channel>
</rss>

