<?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 2 columns based on a common value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-2-columns-based-on-a-common-value/m-p/2660010#M78819</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;In which table are creating this column? What is the relationship between the two tables? Or are you trying to create a measure? If so how does your report look like?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2022 18:26:58 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-07-25T18:26:58Z</dc:date>
    <item>
      <title>Divide 2 columns based on a common value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-2-columns-based-on-a-common-value/m-p/2659295#M78779</link>
      <description>&lt;P&gt;I want to perform the following division from columns in two separate tables:&lt;/P&gt;&lt;P&gt;Failure Ratio=&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COUNTA&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Failure Table'[Distinct Install to First Failure]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COUNTA&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'All Devices By Region'[Install Year]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But only divide where 'All Devices By Region'[Install Year]=YEAR('Failure Table'[Install Day].&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;How can I modify the measure above to achieve this?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Jul 2022 13:39:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-2-columns-based-on-a-common-value/m-p/2659295#M78779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-25T13:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Divide 2 columns based on a common value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-2-columns-based-on-a-common-value/m-p/2660010#M78819</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;In which table are creating this column? What is the relationship between the two tables? Or are you trying to create a measure? If so how does your report look like?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 18:26:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-2-columns-based-on-a-common-value/m-p/2660010#M78819</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-25T18:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Divide 2 columns based on a common value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-2-columns-based-on-a-common-value/m-p/2660031#M78820</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am trying to create this as a measure in the 'Failure Table' table. The two tables are not linked. Currently I have a graph with value of Failure Ratio and axis of Year('Failure Table'[Install Day]). However, currently the data is showing the Count of Distinct Install to First Failure for a given year divided by the total number devices installed, not number of devices installed that year.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 18:37:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-2-columns-based-on-a-common-value/m-p/2660031#M78820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-25T18:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Divide 2 columns based on a common value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-2-columns-based-on-a-common-value/m-p/2660069#M78828</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Failure Ratio =
VAR CurrentYear =
    SELECTEDVALUE ( 'All Devices By Region'[Install Year] )
RETURN
    DIVIDE (
        CALCULATE (
            COUNTA ( 'Failure Table'[Distinct Install to First Failure] ),
            YEAR ( 'Failure Table'[Install Day] ) = CurrentYear
        ),
        COUNTA ( 'All Devices By Region'[Install Year] )
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 25 Jul 2022 19:06:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-2-columns-based-on-a-common-value/m-p/2660069#M78828</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-25T19:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Divide 2 columns based on a common value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-2-columns-based-on-a-common-value/m-p/2662003#M78981</link>
      <description>&lt;P&gt;That worked, thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 12:33:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-2-columns-based-on-a-common-value/m-p/2662003#M78981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-26T12:33:16Z</dc:date>
    </item>
  </channel>
</rss>

