<?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: How to create measure that selects what value to use as the denominator in Divide. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-that-selects-what-value-to-use-as-the/m-p/1524609#M29810</link>
    <description>&lt;P&gt;&lt;STRONG&gt;I fixed it in one of the reference measures.&amp;nbsp; &amp;nbsp;Never did figure out how to select a variable to use in a expression like divide.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I added a filter in one of the reference measures so that the data sent to the divide calculation had the required information.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 16:13:35 GMT</pubDate>
    <dc:creator>moltra</dc:creator>
    <dc:date>2020-11-30T16:13:35Z</dc:date>
    <item>
      <title>How to create measure that selects what value to use as the denominator in Divide.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-that-selects-what-value-to-use-as-the/m-p/1511546#M29374</link>
      <description>&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;I fixed it in one of the reference measures.&amp;nbsp; &amp;nbsp;Never did figure out how to select a variable to use in a expression like divide.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a measure where the&amp;nbsp;&lt;SPAN&gt;denominator changes based on the shared axis value.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to change the Denominator depending on what is being Calculated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have tried IF statements, but will not allow me to use the Table column or measures that show the value to be used as the Logic test.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I know the below code is not all correct, but it should get the question across.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i.e. &lt;/SPAN&gt;&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;TotalSalesRatio = 

Var Totalsalespeople = [AllSalesPeople]
Var TotalsalesoneSalesperson = [SalesPerson]
Var DesiredReportSales = ""

    If([DesiredReport]="all",
       AllSalesPeople,
       TotalsalesoneSalespPerson)

Divide([TotalSales],DesiredReportSales,0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 19:44:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-that-selects-what-value-to-use-as-the/m-p/1511546#M29374</guid>
      <dc:creator>moltra</dc:creator>
      <dc:date>2020-11-23T19:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create measure that selects what value to use as the denominator in Divide.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-that-selects-what-value-to-use-as-the/m-p/1511570#M29376</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="217461" data-lia-user-login="moltra" class="lia-mention lia-mention-user"&gt;moltra&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your query is not making any sense. The only thing I understand here is you want to use DIVIDE function in DAX but you are not able to use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add some sample data and expected output to show what your actual requirement is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Pragati&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 16:10:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-that-selects-what-value-to-use-as-the/m-p/1511570#M29376</guid>
      <dc:creator>Pragati11</dc:creator>
      <dc:date>2020-11-23T16:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create measure that selects what value to use as the denominator in Divide.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-that-selects-what-value-to-use-as-the/m-p/1511575#M29377</link>
      <description>&lt;P&gt;I have a Visual that needs to be different during the week than it is on weekends.&amp;nbsp; During the week, the measure is based on a weekly peak of a subset of equipment.&amp;nbsp; On the weekends it is the Peak of all the equipment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to figure out how to calculate the Ratio for the total power used divided by both the "Weekly Peak of subset of equipment" and "Peak of all the equipment", one at a time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This visual needs to have the ratio for total Power used divided by&amp;nbsp; both the Subset and all calculated values.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 16:18:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-that-selects-what-value-to-use-as-the/m-p/1511575#M29377</guid>
      <dc:creator>moltra</dc:creator>
      <dc:date>2020-11-23T16:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to create measure that selects what value to use as the denominator in Divide.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-that-selects-what-value-to-use-as-the/m-p/1511603#M29380</link>
      <description>&lt;P&gt;What I need to be returned by the measure.&amp;nbsp; I have highlighted the number that I need to be able to select via an if statement or someother command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Total Power(input)&lt;/TD&gt;&lt;TD&gt;Peak Power(Input)&lt;/TD&gt;&lt;TD&gt;Ratio (output)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Area1&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;5531.68&lt;/TD&gt;&lt;TD&gt;9812.91&lt;/TD&gt;&lt;TD&gt;56.37%&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Area2&lt;/TD&gt;&lt;TD&gt;819.26&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;1211.00&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;68%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;What I am getting returned by the measure&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;Total Power(input)&lt;/TD&gt;&lt;TD&gt;Peak Power(input)&lt;/TD&gt;&lt;TD&gt;Ratio(output)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Area1&lt;/TD&gt;&lt;TD&gt;5531.68&lt;/TD&gt;&lt;TD&gt;9812.91&lt;/TD&gt;&lt;TD&gt;56.37%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Area2&lt;/TD&gt;&lt;TD&gt;819.26&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;3459.02&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;23.68%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Nov 2020 16:39:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-that-selects-what-value-to-use-as-the/m-p/1511603#M29380</guid>
      <dc:creator>moltra</dc:creator>
      <dc:date>2020-11-23T16:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create measure that selects what value to use as the denominator in Divide.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-that-selects-what-value-to-use-as-the/m-p/1524609#M29810</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I fixed it in one of the reference measures.&amp;nbsp; &amp;nbsp;Never did figure out how to select a variable to use in a expression like divide.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I added a filter in one of the reference measures so that the data sent to the divide calculation had the required information.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 16:13:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-that-selects-what-value-to-use-as-the/m-p/1524609#M29810</guid>
      <dc:creator>moltra</dc:creator>
      <dc:date>2020-11-30T16:13:35Z</dc:date>
    </item>
  </channel>
</rss>

