<?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: Issue with Aggregation Logic Using Conditional Joins Across Multiple Tables in Dashboards &amp; Analytics Discussions</title>
    <link>https://community.incorta.com/t5/dashboards-analytics-discussions/issue-with-aggregation-logic-using-conditional-joins-across/m-p/6534#M809</link>
    <description>&lt;P&gt;Hi msinha,&lt;/P&gt;&lt;P&gt;Create a bridge table containing key columns from Table A and Table B. Join these two tables (Table A and Table B) in the bridge table using the appropriate join type based on their relationship(e.g., inner join or left outer join) using MV. This bridge table can then be used to connect to Table A, Table B, Table C, and Table D.&lt;/P&gt;&lt;P&gt;This is one of the possible approach.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Venkat&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jun 2025 07:25:33 GMT</pubDate>
    <dc:creator>Venkat</dc:creator>
    <dc:date>2025-06-02T07:25:33Z</dc:date>
    <item>
      <title>Issue with Aggregation Logic Using Conditional Joins Across Multiple Tables</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/issue-with-aggregation-logic-using-conditional-joins-across/m-p/6533#M808</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello Gurus,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am working on the following scenario involving four tables:&lt;/P&gt;&lt;H3&gt;Table A&lt;/H3&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Col1 Col2 &lt;TABLE width="80px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="40px"&gt;a&lt;/TD&gt;&lt;TD width="40px"&gt;aref&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px"&gt;b&lt;/TD&gt;&lt;TD width="40px"&gt;bref&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;H3&gt;Table B&lt;/H3&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Col1 Col2 &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;x&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD&gt;y&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Join&lt;/STRONG&gt;: Table A.Col1 = Table B.Col1&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;Table C&lt;/H3&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Col1 Col2 &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;x&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;HR /&gt;&lt;H3&gt;Table D&lt;/H3&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Col1 Col2 &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;y&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Join&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Table C.Col1 = Table B.Col2&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Table D.Col1 = Table B.Col2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;H3&gt;Goal:&lt;/H3&gt;&lt;P&gt;I want to generate the following aggregated result set:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Col1 Measure &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;aref&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bref&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;HR /&gt;&lt;H3&gt;My Logic:&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Grouping Dimension&lt;/STRONG&gt;: Table A.Col1&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Measure Expression&lt;/STRONG&gt;:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;(IFNULL(TableC.Col2, &lt;SPAN class=""&gt;0&lt;/SPAN&gt;)) &lt;SPAN class=""&gt;+&lt;/SPAN&gt; &lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;(IFNULL(TableD.Col2, &lt;SPAN class=""&gt;0&lt;/SPAN&gt;)) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;H3&gt;Problem:&lt;/H3&gt;&lt;P&gt;This approach does not yield the expected result. It either shows a value for &lt;STRONG&gt;a&lt;/STRONG&gt; or for &lt;STRONG&gt;b&lt;/STRONG&gt;, but not both correctly.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jun 2025 13:42:45 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/issue-with-aggregation-logic-using-conditional-joins-across/m-p/6533#M808</guid>
      <dc:creator>msinha8</dc:creator>
      <dc:date>2025-06-01T13:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Aggregation Logic Using Conditional Joins Across Multiple Tables</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/issue-with-aggregation-logic-using-conditional-joins-across/m-p/6534#M809</link>
      <description>&lt;P&gt;Hi msinha,&lt;/P&gt;&lt;P&gt;Create a bridge table containing key columns from Table A and Table B. Join these two tables (Table A and Table B) in the bridge table using the appropriate join type based on their relationship(e.g., inner join or left outer join) using MV. This bridge table can then be used to connect to Table A, Table B, Table C, and Table D.&lt;/P&gt;&lt;P&gt;This is one of the possible approach.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Venkat&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 07:25:33 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/issue-with-aggregation-logic-using-conditional-joins-across/m-p/6534#M809</guid>
      <dc:creator>Venkat</dc:creator>
      <dc:date>2025-06-02T07:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Aggregation Logic Using Conditional Joins Across Multiple Tables</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/issue-with-aggregation-logic-using-conditional-joins-across/m-p/6535#M810</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;I had already implemented the same approach. While it was functioning as expected, I encountered performance issues.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;MS&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 11:21:38 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/issue-with-aggregation-logic-using-conditional-joins-across/m-p/6535#M810</guid>
      <dc:creator>msinha8</dc:creator>
      <dc:date>2025-06-02T11:21:38Z</dc:date>
    </item>
  </channel>
</rss>

