<?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 &amp;quot;power bi&amp;quot; inactive relation for  two fact tables  same column (order_id) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-power-bi-quot-inactive-relation-for-two-fact-tables-same/m-p/3842689#M150222</link>
    <description>&lt;P&gt;under table1 ('Fact - order') I tried create the below column&lt;/P&gt;&lt;P&gt;Column order = CALCULATETABLE( LASTNONBLANK('Fact - order'[order_wid],'Fact - order'[order_wid]),USERELATIONSHIP('Fact - order'[order_wid],'Fact - order Parts'[order_wid]))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;two fact order tables (relationship is inactive but 1 ---&amp;gt;&amp;gt; *, I need&amp;nbsp; &amp;nbsp;1 &amp;lt;&amp;lt;---*&amp;nbsp; &amp;nbsp; because my intention is that any part is been choosen in table two will brings the orders from table 1 and their commodity, is this possible?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;table one&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;table two&lt;BR /&gt;order_ID - commodities&amp;nbsp; &amp;nbsp;1&amp;lt;&amp;lt;---need be----*&amp;nbsp; &amp;nbsp;order_id -parts# - partsQties&lt;BR /&gt;(unique values)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (many)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;----extra&amp;nbsp;&lt;/P&gt;&lt;P&gt;the commodity brings somehing like this&amp;nbsp;&lt;BR /&gt;Hard Drive-XXW34 :(2)&lt;/P&gt;</description>
    <pubDate>Wed, 17 Apr 2024 14:14:49 GMT</pubDate>
    <dc:creator>perezco</dc:creator>
    <dc:date>2024-04-17T14:14:49Z</dc:date>
    <item>
      <title>"power bi" inactive relation for  two fact tables  same column (order_id)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-power-bi-quot-inactive-relation-for-two-fact-tables-same/m-p/3842689#M150222</link>
      <description>&lt;P&gt;under table1 ('Fact - order') I tried create the below column&lt;/P&gt;&lt;P&gt;Column order = CALCULATETABLE( LASTNONBLANK('Fact - order'[order_wid],'Fact - order'[order_wid]),USERELATIONSHIP('Fact - order'[order_wid],'Fact - order Parts'[order_wid]))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;two fact order tables (relationship is inactive but 1 ---&amp;gt;&amp;gt; *, I need&amp;nbsp; &amp;nbsp;1 &amp;lt;&amp;lt;---*&amp;nbsp; &amp;nbsp; because my intention is that any part is been choosen in table two will brings the orders from table 1 and their commodity, is this possible?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;table one&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;table two&lt;BR /&gt;order_ID - commodities&amp;nbsp; &amp;nbsp;1&amp;lt;&amp;lt;---need be----*&amp;nbsp; &amp;nbsp;order_id -parts# - partsQties&lt;BR /&gt;(unique values)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (many)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;----extra&amp;nbsp;&lt;/P&gt;&lt;P&gt;the commodity brings somehing like this&amp;nbsp;&lt;BR /&gt;Hard Drive-XXW34 :(2)&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 14:14:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-power-bi-quot-inactive-relation-for-two-fact-tables-same/m-p/3842689#M150222</guid>
      <dc:creator>perezco</dc:creator>
      <dc:date>2024-04-17T14:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: "power bi" inactive relation for  two fact tables  same column (order_id)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-power-bi-quot-inactive-relation-for-two-fact-tables-same/m-p/3843090#M150243</link>
      <description>&lt;P&gt;did you try lookup function ?&amp;gt;&amp;gt; The &lt;STRONG&gt;lookup &amp;nbsp;&lt;/STRONG&gt; function is a good option when you need a single column.&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/lookup-multiple-values-in-dax/" target="_blank" rel="noopener"&gt;https://www.sqlbi.com/articles/lookup-multiple-values-in-dax/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 02:31:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-power-bi-quot-inactive-relation-for-two-fact-tables-same/m-p/3843090#M150243</guid>
      <dc:creator>Cperota</dc:creator>
      <dc:date>2024-04-17T02:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: "power bi" inactive relation for  two fact tables  same column (order_id)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-power-bi-quot-inactive-relation-for-two-fact-tables-same/m-p/3843155#M150247</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="726162" data-lia-user-login="Cperota" class="lia-mention lia-mention-user"&gt;Cperota&lt;/a&gt;&amp;nbsp;,thanks for the quick reply.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="94515" data-lia-user-login="perezco" class="lia-mention lia-mention-user"&gt;perezco&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Regarding your question, I made an attempt.&lt;/P&gt;
&lt;P&gt;The Table data is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please follow these steps:&lt;/P&gt;
&lt;P&gt;1.Modify the filter passing direction&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2.Use the following DAX expression to create a measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = CALCULATE(SELECTEDVALUE('Fact - order'[Product]),USERELATIONSHIP('Fact - order Parts'[order_wid],'Fact - order'[order_wid]))&lt;/LI-CODE&gt;
&lt;P&gt;3.Final output&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 02:57:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-power-bi-quot-inactive-relation-for-two-fact-tables-same/m-p/3843155#M150247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-17T02:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: "power bi" inactive relation for  two fact tables  same column (order_id)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-power-bi-quot-inactive-relation-for-two-fact-tables-same/m-p/3846022#M150315</link>
      <description>&lt;P&gt;thanks, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="726162" data-lia-user-login="Cperota" class="lia-mention lia-mention-user"&gt;Cperota&lt;/a&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The table 2&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;'Fact - order Parts' is the one that need to get the column string values 'commodity description' from table 1 'Fact - order'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;To avoid inaccurate calculations,&amp;nbsp;&lt;/SPAN&gt;I am trying to&amp;nbsp; do it without&amp;nbsp;&lt;SPAN&gt;USERELATIONSHIP function active /not active stage.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Column (inactive) =&lt;/P&gt;&lt;P&gt;ADDCOLUMNS (&lt;BR /&gt;'Fact - order Parts',&lt;BR /&gt;"commodity_desc",&lt;BR /&gt;VAR order_wid_ =&lt;BR /&gt;'Fact - order Parts'[order_wid]&amp;nbsp; //-----&amp;gt;my issue here - I have mutiple wo_id&lt;BR /&gt;RETURN&lt;BR /&gt;LOOKUPVALUE (&lt;BR /&gt;'Fact - order'[commodity_desc],&lt;BR /&gt;'Fact - order'[order_wid], 'Fact - order Parts'[order_wid],&lt;BR /&gt;'Fact - order'[order_wid], order_wid_&lt;BR /&gt;) ,&lt;BR /&gt;"TREATAS connection",&lt;BR /&gt;VAR A_treatas =&lt;BR /&gt;TREATAS( VALUES('Fact - order'[order_wid]), 'Fact - order Parts'[order_wid])&lt;BR /&gt;RETURN&lt;BR /&gt;A_treatas&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;-------------------------------------------&lt;/P&gt;&lt;P&gt;note: I am having proble to answer Anonymous&lt;/a&gt; . I dont understand my message keep be deleted it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 16:28:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-power-bi-quot-inactive-relation-for-two-fact-tables-same/m-p/3846022#M150315</guid>
      <dc:creator>perezco</dc:creator>
      <dc:date>2024-04-17T16:28:29Z</dc:date>
    </item>
  </channel>
</rss>

