<?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: Salesforce objects, multiple tables and work DATA-COLUMN from 2 tables. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Salesforce-objects-multiple-tables-and-work-DATA-COLUMN-from-2/m-p/844725#M6491</link>
    <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My only mistake was that I was trying to related tables from One -To -Many. IT only works from Many -To- One.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Nov 2019 09:55:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-11-13T09:55:22Z</dc:date>
    <item>
      <title>Salesforce objects, multiple tables and work DATA-COLUMN from 2 tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Salesforce-objects-multiple-tables-and-work-DATA-COLUMN-from-2/m-p/832497#M6048</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seeking your help!&lt;/P&gt;&lt;P&gt;I have next scenario:&lt;/P&gt;&lt;P&gt;Table A, Table B.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to bring data Column from Table B to Table A, based on on a Dax formula. Only option i can think of is IF function but it does not work ( although there is relationship).&lt;/P&gt;&lt;P&gt;I used this scenario in the past and IF function worked but data was in the same table, now data is in 2 different tables and it does not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone knows of a different DAX function that could have same functionality?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 11:33:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Salesforce-objects-multiple-tables-and-work-DATA-COLUMN-from-2/m-p/832497#M6048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-30T11:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce objects, multiple tables and work DATA-COLUMN from 2 tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Salesforce-objects-multiple-tables-and-work-DATA-COLUMN-from-2/m-p/835616#M6185</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It can work but you'll need an Index column on both tables, to link them to each other. Unless you have a different logic for linking them.&lt;/P&gt;&lt;P&gt;You can add an Index column in Power Query by clicking on Add Column -&amp;gt; Index Column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once the 2 tables are linked, you can use the RELATED DAX formula for it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/related-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/related-function-dax&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(RELATED('Table 2'[Rule])="Labour", [A],0 )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if it works for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LC&lt;/P&gt;&lt;P&gt;Interested in Power BI and DAX templates? Check out my blog at &lt;A href="http://www.finance-bi.com" target="_blank"&gt;www.finance-bi.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2019 22:46:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Salesforce-objects-multiple-tables-and-work-DATA-COLUMN-from-2/m-p/835616#M6185</guid>
      <dc:creator>lc_finance</dc:creator>
      <dc:date>2019-11-03T22:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce objects, multiple tables and work DATA-COLUMN from 2 tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Salesforce-objects-multiple-tables-and-work-DATA-COLUMN-from-2/m-p/844725#M6491</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My only mistake was that I was trying to related tables from One -To -Many. IT only works from Many -To- One.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 09:55:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Salesforce-objects-multiple-tables-and-work-DATA-COLUMN-from-2/m-p/844725#M6491</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-13T09:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce objects, multiple tables and work DATA-COLUMN from 2 tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Salesforce-objects-multiple-tables-and-work-DATA-COLUMN-from-2/m-p/846644#M6564</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;good to hear that it worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need anything else, do not hesitate to ask,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LC&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 22:08:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Salesforce-objects-multiple-tables-and-work-DATA-COLUMN-from-2/m-p/846644#M6564</guid>
      <dc:creator>lc_finance</dc:creator>
      <dc:date>2019-11-14T22:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce objects, multiple tables and work DATA-COLUMN from 2 tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Salesforce-objects-multiple-tables-and-work-DATA-COLUMN-from-2/m-p/849163#M6632</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="176844" data-lia-user-login="lc_finance" class="lia-mention lia-mention-user"&gt;lc_finance&lt;/a&gt; .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have same scenario, and same problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have this Table A:&lt;/P&gt;&lt;P&gt;1. Date -Column&lt;/P&gt;&lt;P&gt;2. Name and Surname -Column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Hours- Column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table B:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Date -Column&lt;/P&gt;&lt;P&gt;2. Name and Surname - Column (relationship between Table A&amp;nbsp; from many- to- many)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Objective: To bring Hours-Column to table B.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Related function doesnt work, i guess because its from many to many relationship.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone think of a function?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 16:19:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Salesforce-objects-multiple-tables-and-work-DATA-COLUMN-from-2/m-p/849163#M6632</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-18T16:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce objects, multiple tables and work DATA-COLUMN from 2 tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Salesforce-objects-multiple-tables-and-work-DATA-COLUMN-from-2/m-p/849525#M6644</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed, if the relationship is Many to Many, then you need to use a RELATEDTABLE function instead of a RELATED function.&lt;/P&gt;&lt;P&gt;When you have a many to many relationship, you can have &lt;U&gt;several&lt;/U&gt; related rows in the other table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's then up to you how to aggregate the multiple rows that you find from the related table.&lt;/P&gt;&lt;P&gt;You might then decide to add them up (SUM), average them (AVERAGE), etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you want to aggregate the multiple rows?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LC&lt;/P&gt;&lt;P&gt;Interested in Power BI and DAX tutorials? Check out my blog at &lt;A href="http://www.finance-bi.com" target="_blank"&gt;www.finance-bi.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 22:42:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Salesforce-objects-multiple-tables-and-work-DATA-COLUMN-from-2/m-p/849525#M6644</guid>
      <dc:creator>lc_finance</dc:creator>
      <dc:date>2019-11-18T22:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce objects, multiple tables and work DATA-COLUMN from 2 tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Salesforce-objects-multiple-tables-and-work-DATA-COLUMN-from-2/m-p/850515#M6678</link>
      <description>&lt;P&gt;I will try this solution next time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to work with Calculate function(sum function and then I applied filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you still, but will try you option next time and validated as a solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 12:33:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Salesforce-objects-multiple-tables-and-work-DATA-COLUMN-from-2/m-p/850515#M6678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-20T12:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce objects, multiple tables and work DATA-COLUMN from 2 tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Salesforce-objects-multiple-tables-and-work-DATA-COLUMN-from-2/m-p/855070#M6808</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am glad you were able to find a solution.&lt;/P&gt;&lt;P&gt;Do not hesitate if you have more questions,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LC&lt;/P&gt;</description>
      <pubDate>Sun, 24 Nov 2019 21:26:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Salesforce-objects-multiple-tables-and-work-DATA-COLUMN-from-2/m-p/855070#M6808</guid>
      <dc:creator>lc_finance</dc:creator>
      <dc:date>2019-11-24T21:26:28Z</dc:date>
    </item>
  </channel>
</rss>

