<?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: Relationship between these two fact tables? in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Relationship-between-these-two-fact-tables/m-p/1877348#M19558</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check if the attachment could meet your requirements:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are some transformations in Power Query Editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jun 2021 09:57:09 GMT</pubDate>
    <dc:creator>Icey</dc:creator>
    <dc:date>2021-06-02T09:57:09Z</dc:date>
    <item>
      <title>Relationship between these two fact tables?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Relationship-between-these-two-fact-tables/m-p/1873053#M19524</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ich have on one side a wager. That is my first fact_wagers. It has attributes like:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;wager_id&lt;/LI&gt;&lt;LI&gt;first_product_id&lt;/LI&gt;&lt;LI&gt;second_product_id&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One the other hand I have a fact for the winnings: fact_wins. This occurs later than the wager got created.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has attributes like:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;wager_id&lt;/LI&gt;&lt;LI&gt;win_amount&lt;/LI&gt;&lt;LI&gt;product_id&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The relationship between them is 1:n , because one wager could have multiple winnings, because of his first and second product. One win in the first_product is related to one row in the winnings. A win in the second_product creates another row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would you join those facts?&lt;/P&gt;&lt;P&gt;Make a dim_wager_id as a degenerated dimension, because I would need that for filtering?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 14:01:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Relationship-between-these-two-fact-tables/m-p/1873053#M19524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-31T14:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship between these two fact tables?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Relationship-between-these-two-fact-tables/m-p/1876103#M19545</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would model this slightly different;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dimesnion:&lt;BR /&gt;DimWager (Unique WagerID)&lt;/P&gt;&lt;P&gt;DimProduct (Unique ProductID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fact: (Bridging Table)&lt;/P&gt;&lt;P&gt;FactWagerProductWins (WagerID, ProductID, WinAmount) -&amp;nbsp;Wager can have multiple ProductID, you don't need to create separate column for each ProductID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relatiionships:&lt;/P&gt;&lt;P&gt;1 - Many between DimWager - FactWagerProductWins (based on WagerID)&lt;BR /&gt;1 - Many between DimProduct - FactWagerProductWins (based on ProductID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will remove the of separate FactWager (which has only WagerID &amp;amp; ProductID mappings)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hasham&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 21:04:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Relationship-between-these-two-fact-tables/m-p/1876103#M19545</guid>
      <dc:creator>HashamNiaz</dc:creator>
      <dc:date>2021-06-01T21:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship between these two fact tables?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Relationship-between-these-two-fact-tables/m-p/1876546#M19551</link>
      <description>&lt;P&gt;That is interessting. In which cases you are able to design a fact_table as a dimension_table?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I mean a wager is in this context a business event, which a customer produces. I never thought about to design this a dimension. Is it allowed to insert a lot of entries to a dim_table?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 04:05:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Relationship-between-these-two-fact-tables/m-p/1876546#M19551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-02T04:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship between these two fact tables?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Relationship-between-these-two-fact-tables/m-p/1877348#M19558</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check if the attachment could meet your requirements:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are some transformations in Power Query Editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 09:57:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Relationship-between-these-two-fact-tables/m-p/1877348#M19558</guid>
      <dc:creator>Icey</dc:creator>
      <dc:date>2021-06-02T09:57:09Z</dc:date>
    </item>
  </channel>
</rss>

