<?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 with denominator as measure and numerator as related values from different table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-with-denominator-as-measure-and-numerator-as-related/m-p/1096682#M16004</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried your formula as&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FC Per KMS = Divide (Calculate (Sum ('Fixed Cost'[Fix Cost])), [Equipment Kms])&lt;/LI-CODE&gt;&lt;P&gt;But not getting correct results&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 May 2020 16:47:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-19T16:47:55Z</dc:date>
    <item>
      <title>Divide with denominator as measure and numerator as related values from different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-with-denominator-as-measure-and-numerator-as-related/m-p/1096466#M15992</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am trying to define measure that gives "cost per kilometer"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a fact table having [Equipment], [Loaded Distance] and [Deadhead Distance] column&lt;/P&gt;&lt;P&gt;a dimention table called fixed Cost having [Equipment N] and [Fix Cost] columns&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;I have a measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Equipment KMS = CALCULATE(SUM('Prototype Modeling_Freight'[Loaded Distance]) + SUM('Prototype Modeling_Freight'[Deadhead Distance]))&lt;/LI-CODE&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;&lt;P&gt;Shown as a table visualization&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Through a relationship connection between Equipment and Equipment N&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MY REQUIREMENT :&lt;/P&gt;&lt;P&gt;A measure defined for each equipment as [Fix cost] / [Equiment KMS]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 14:25:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-with-denominator-as-measure-and-numerator-as-related/m-p/1096466#M15992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-19T14:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Divide with denominator as measure and numerator as related values from different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-with-denominator-as-measure-and-numerator-as-related/m-p/1096601#M15999</link>
      <description>&lt;P&gt;Is this not possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 15:56:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-with-denominator-as-measure-and-numerator-as-related/m-p/1096601#M15999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-19T15:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Divide with denominator as measure and numerator as related values from different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-with-denominator-as-measure-and-numerator-as-related/m-p/1096652#M16002</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;You can use this measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure = Divide (Calculate (Sum ('Table'[FixedCost])), [Equipment Kms])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a&amp;nbsp; Kudos!!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 16:29:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-with-denominator-as-measure-and-numerator-as-related/m-p/1096652#M16002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-19T16:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Divide with denominator as measure and numerator as related values from different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-with-denominator-as-measure-and-numerator-as-related/m-p/1096682#M16004</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried your formula as&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FC Per KMS = Divide (Calculate (Sum ('Fixed Cost'[Fix Cost])), [Equipment Kms])&lt;/LI-CODE&gt;&lt;P&gt;But not getting correct results&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 16:47:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-with-denominator-as-measure-and-numerator-as-related/m-p/1096682#M16004</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-19T16:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Divide with denominator as measure and numerator as related values from different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-with-denominator-as-measure-and-numerator-as-related/m-p/1096700#M16007</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;You can try this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Divide (Calculate (Sum ('Fixed Cost'[Fix Cost]),ALLEXCEPT (Fixed Cost, 'Fixed Cost' [Equipment])), [Equipment Kms])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, convert your measure into decimals and make the values are 'Dont Summarize'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imcase this does not work, please share some sample data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 16:58:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-with-denominator-as-measure-and-numerator-as-related/m-p/1096700#M16007</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-19T16:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Divide with denominator as measure and numerator as related values from different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-with-denominator-as-measure-and-numerator-as-related/m-p/1096749#M16011</link>
      <description>&lt;P&gt;Thanks Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This didnt work either&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry I cant share data in document as I am restricted to do that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although, I would like to know one thing, can we use unique related values from a dimention table and use them in the expression ?&lt;/P&gt;&lt;P&gt;for eg:&lt;/P&gt;&lt;P&gt;the column [equipment] in my fact table is related to [equipment N] in dimention table.&lt;/P&gt;&lt;P&gt;Now what I want is to pull this fix cost from dimention table and use it in an expression, so that it goes to dimention table and give me the related value for every row iteration.&lt;/P&gt;&lt;P&gt;I am able to use it in a direct table visualization, but can't use it in a mathematical expression&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 17:26:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-with-denominator-as-measure-and-numerator-as-related/m-p/1096749#M16011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-19T17:26:16Z</dc:date>
    </item>
  </channel>
</rss>

