<?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: Metric View measure on joined table in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/metric-view-measure-on-joined-table/m-p/141772#M2424</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/78309"&gt;@alxsbn&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&lt;A href="https://docs.databricks.com/aws/en/metric-views/data-modeling/joins" target="_self"&gt; Metric View joins&lt;/A&gt; are designed for "Many-to-One" relationships.&lt;/P&gt;
&lt;P&gt;Because &lt;CODE&gt;orders&lt;/CODE&gt; and &lt;CODE&gt;lineitem&lt;/CODE&gt; have a &lt;STRONG&gt;One-to-Many&lt;/STRONG&gt; relationship (one order has multiple line items), you cannot join &lt;CODE&gt;lineitem&lt;/CODE&gt; &lt;I&gt;onto&lt;/I&gt; an &lt;CODE&gt;orders&lt;/CODE&gt;-based Metric View and aggregate the line items correctly.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 12 Dec 2025 16:13:50 GMT</pubDate>
    <dc:creator>NandiniN</dc:creator>
    <dc:date>2025-12-12T16:13:50Z</dc:date>
    <item>
      <title>Metric View measure on joined table</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/metric-view-measure-on-joined-table/m-p/141694#M2422</link>
      <description>&lt;P&gt;On the Databricks documentation they take the TPCH classical tables to create some example&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/metric-views/create/" target="_blank" rel="noopener"&gt;https://docs.databricks.com/aws/en/metric-views/create/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It's pretty easy to create a metric view using orders and do a measure like SUM(totalprice). Now let's say I want to join it with lineitem do a measure LIKE SUM(lineitem.quantity) it's not working on my side.&lt;/P&gt;&lt;P&gt;Am I missing something ?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2025 17:15:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/metric-view-measure-on-joined-table/m-p/141694#M2422</guid>
      <dc:creator>alxsbn</dc:creator>
      <dc:date>2025-12-11T17:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Metric View measure on joined table</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/metric-view-measure-on-joined-table/m-p/141772#M2424</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/78309"&gt;@alxsbn&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&lt;A href="https://docs.databricks.com/aws/en/metric-views/data-modeling/joins" target="_self"&gt; Metric View joins&lt;/A&gt; are designed for "Many-to-One" relationships.&lt;/P&gt;
&lt;P&gt;Because &lt;CODE&gt;orders&lt;/CODE&gt; and &lt;CODE&gt;lineitem&lt;/CODE&gt; have a &lt;STRONG&gt;One-to-Many&lt;/STRONG&gt; relationship (one order has multiple line items), you cannot join &lt;CODE&gt;lineitem&lt;/CODE&gt; &lt;I&gt;onto&lt;/I&gt; an &lt;CODE&gt;orders&lt;/CODE&gt;-based Metric View and aggregate the line items correctly.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Dec 2025 16:13:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/metric-view-measure-on-joined-table/m-p/141772#M2424</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-12-12T16:13:50Z</dc:date>
    </item>
  </channel>
</rss>

