<?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: Divide a value by another value in a related table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-another-value-in-a-related-table/m-p/3741108#M145896</link>
    <description>&lt;P&gt;It's a long time since I posted this so I think the answer was something along the lines of one of the tables being import and the other being direct query.&amp;nbsp; Once the whole model was set to import the issue stopped being a problem.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 22:36:08 GMT</pubDate>
    <dc:creator>KF-Hornsby</dc:creator>
    <dc:date>2024-03-04T22:36:08Z</dc:date>
    <item>
      <title>Divide a value by another value in a related table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-another-value-in-a-related-table/m-p/1818459#M38548</link>
      <description>&lt;P&gt;Good afternoon,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to divide a sales value by an FX rate held in a different table.&amp;nbsp; I have a Sales Facts table with a many to one join to an FX Rates table (joined on currency code).&amp;nbsp; I need to calculate the sales in GBP.&amp;nbsp; Idealy, this would be as a calculated column as I need to re-use this elsewhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Sales CY GBP = divide('Sales Facts'[Sales Value CY], related('FX Rates'[FXRate YTD]))&lt;/LI-CODE&gt;&lt;P&gt;but I get the error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The relationship DOES exist.&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;Any help greatly appreachiated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 12:11:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-another-value-in-a-related-table/m-p/1818459#M38548</guid>
      <dc:creator>KF-Hornsby</dc:creator>
      <dc:date>2021-05-02T12:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a value by another value in a related table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-another-value-in-a-related-table/m-p/1818488#M38550</link>
      <description>&lt;P&gt;Just a couple quick thoughts make sure data format are the same in both side. &amp;nbsp;You can also do a lookup function rather then related. &amp;nbsp;Lookup doesn't need a relationship between the 2 tables.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;example&amp;nbsp;&lt;/P&gt;&lt;P&gt;divide([sales] , lookup(fxrates[fxrate],fxrates[currcode],salesfact[currency code] )&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 13:41:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-another-value-in-a-related-table/m-p/1818488#M38550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-02T13:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a value by another value in a related table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-another-value-in-a-related-table/m-p/1818536#M38551</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="277296" data-lia-user-login="KF-Hornsby" class="lia-mention lia-mention-user"&gt;KF-Hornsby&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try something like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;total sales CY GBP =&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;SUMX (&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'Sales Facts',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'Sales Facts'[Sales Value CY] / RELATED ( 'FX Rates'[FXRate YTD] )&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Hi, My name is Jihwan Kim. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Linkedin: linkedin.com/in/jihwankim1975/&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Twitter: twitter.com/Jihwan_JHKIM&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 15:13:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-another-value-in-a-related-table/m-p/1818536#M38551</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-05-02T15:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a value by another value in a related table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-another-value-in-a-related-table/m-p/1818557#M38552</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 16:45:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-another-value-in-a-related-table/m-p/1818557#M38552</guid>
      <dc:creator>KF-Hornsby</dc:creator>
      <dc:date>2021-05-02T16:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a value by another value in a related table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-another-value-in-a-related-table/m-p/1818563#M38553</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 16:51:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-another-value-in-a-related-table/m-p/1818563#M38553</guid>
      <dc:creator>KF-Hornsby</dc:creator>
      <dc:date>2021-05-02T16:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a value by another value in a related table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-another-value-in-a-related-table/m-p/1818571#M38555</link>
      <description>&lt;P&gt;Is there anything special about this relationship what with it having the " &amp;lt;&amp;gt; " at either end?&amp;nbsp; Is it just representative of it joining two different data sources (a table imported/dual from a data flow and a direct query to a SQL server).&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;</description>
      <pubDate>Sun, 02 May 2021 16:56:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-another-value-in-a-related-table/m-p/1818571#M38555</guid>
      <dc:creator>KF-Hornsby</dc:creator>
      <dc:date>2021-05-02T16:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a value by another value in a related table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-another-value-in-a-related-table/m-p/1878786#M40336</link>
      <description>&lt;P&gt;hi everyone,&lt;BR /&gt;i'm really interested in this topic as i seem to have the exact same issue with my measure.&lt;/P&gt;&lt;P&gt;i'm wondering if it has something to do with the main table (in the sumx) to be a direct query table ?&lt;/P&gt;&lt;P&gt;as i've tried it with other table that are in import mode and the error "this column either doesn't exist or ..." doesn't show up and it seems to calculate my measure.&lt;/P&gt;&lt;P&gt;i hope we'll soon have something to fix this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rémi&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 00:16:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-another-value-in-a-related-table/m-p/1878786#M40336</guid>
      <dc:creator>Rémi-Quentin</dc:creator>
      <dc:date>2021-06-03T00:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a value by another value in a related table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-another-value-in-a-related-table/m-p/3741108#M145896</link>
      <description>&lt;P&gt;It's a long time since I posted this so I think the answer was something along the lines of one of the tables being import and the other being direct query.&amp;nbsp; Once the whole model was set to import the issue stopped being a problem.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 22:36:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-another-value-in-a-related-table/m-p/3741108#M145896</guid>
      <dc:creator>KF-Hornsby</dc:creator>
      <dc:date>2024-03-04T22:36:08Z</dc:date>
    </item>
  </channel>
</rss>

