<?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: Multiply Values from Single Column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2849409#M91271</link>
    <description>&lt;P&gt;Thanks&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;. IT doesn't like the `[Ratio]`. `Ratio` is a column, formatted as a decimal if that helps.&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2022 15:13:12 GMT</pubDate>
    <dc:creator>jbaisley</dc:creator>
    <dc:date>2022-10-18T15:13:12Z</dc:date>
    <item>
      <title>Multiply Values from Single Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2849346#M91263</link>
      <description>&lt;P&gt;Hello folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopfully, a simple one. I have column of odds by categories and location. The user can filter by category and location and I wan't to divide the remaining values together for a pooled odds ratio. How do you divide (or even mutiply) all vlaues in a single column togehter? In the below table the answer should be 3.47 = 1.36/3.23/2.64/0.41/0.12&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;Location&lt;/TD&gt;&lt;TD&gt;Category&lt;/TD&gt;&lt;TD&gt;Ratio&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;UK&lt;/TD&gt;&lt;TD&gt;Fatigue&lt;/TD&gt;&lt;TD&gt;1.36&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;UK&lt;/TD&gt;&lt;TD&gt;Head Ache&lt;/TD&gt;&lt;TD&gt;3.23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;UK&lt;/TD&gt;&lt;TD&gt;Sweating&lt;/TD&gt;&lt;TD&gt;2.64&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;UK&lt;/TD&gt;&lt;TD&gt;Nausa&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;0.41&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;UK&lt;/TD&gt;&lt;TD&gt;Swelling&lt;/TD&gt;&lt;TD&gt;0.12&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 18 Oct 2022 14:44:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2849346#M91263</guid>
      <dc:creator>jbaisley</dc:creator>
      <dc:date>2022-10-18T14:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Values from Single Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2849388#M91267</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="458312" data-lia-user-login="jbaisley" class="lia-mention lia-mention-user"&gt;jbaisley&lt;/a&gt;&amp;nbsp;Hmm... DAX has a PRODUCTX function to multiply a column of numbers together but no equivalent DIVIDEX function that I am aware of. Will think on this. Also, I get 3.24 dividing all of those numbers.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 15:02:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2849388#M91267</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-10-18T15:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Values from Single Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2849389#M91268</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;you are correct re: the 3.24 (long day). I will take a look at PRODUCTX.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 15:04:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2849389#M91268</guid>
      <dc:creator>jbaisley</dc:creator>
      <dc:date>2022-10-18T15:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Values from Single Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2849391#M91269</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="458312" data-lia-user-login="jbaisley" class="lia-mention lia-mention-user"&gt;jbaisley&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=
PRODUCTX (
    SELECTCOLUMNS (
        SUMMARIZE ( 'Table', 'Table'[Location], 'Table'[Category] ),
        "@Ratio", [Ratio]
    ),
    1 / [@Ratio]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Oct 2022 15:04:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2849391#M91269</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-18T15:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Values from Single Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2849408#M91270</link>
      <description>&lt;P&gt;&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;I went down that path. The syntax is broken, can't pick [Ratio] out of a summarized column that doesn't include it. Also, PRODUCTX('Table',1/[Ratio]) is equivalent and that returns 1.75.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 15:12:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2849408#M91270</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-10-18T15:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Values from Single Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2849409#M91271</link>
      <description>&lt;P&gt;Thanks&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;. IT doesn't like the `[Ratio]`. `Ratio` is a column, formatted as a decimal if that helps.&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 15:13:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2849409#M91271</guid>
      <dc:creator>jbaisley</dc:creator>
      <dc:date>2022-10-18T15:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Values from Single Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2849416#M91274</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="458312" data-lia-user-login="jbaisley" class="lia-mention lia-mention-user"&gt;jbaisley&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought [Ratio] is a measure&amp;nbsp;&lt;/P&gt;
&lt;P&gt;otherwise no need to summarize just&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=
PRODUCTX (
    'Table', 
    1 / 'Table'[Ratio]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Oct 2022 15:19:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2849416#M91274</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-18T15:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Values from Single Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2849422#M91275</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="458312" data-lia-user-login="jbaisley" class="lia-mention lia-mention-user"&gt;jbaisley&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have a unique date or index column?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 15:22:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2849422#M91275</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-18T15:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Values from Single Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2850464#M91338</link>
      <description>&lt;P&gt;No worries &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I could have been clearer. That function is returning a repeating zero.&lt;img /&gt;0'&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 06:46:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2850464#M91338</guid>
      <dc:creator>jbaisley</dc:creator>
      <dc:date>2022-10-19T06:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Values from Single Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2850525#M91343</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="458312" data-lia-user-login="jbaisley" class="lia-mention lia-mention-user"&gt;jbaisley&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you using the dmsame data as pet the example? If so you shouldn't get 0. Anyway, please increase the number of decimal points just yo confirm you're actually getting zero not a number rounded to zero.&amp;nbsp;&lt;BR /&gt;do you zero or blank values in the ratio column?&lt;BR /&gt;also advise if you gave a unique date or index column.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 07:17:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2850525#M91343</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-19T07:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Values from Single Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2850553#M91344</link>
      <description>&lt;P&gt;Yep, same data (there is more of it than in the exmaple), and expanding the decimal to 15 places. Its a repating 0. Becasue it an odds ratio I moved it back a step to the percent, as the fucntion would be (1/ Odds[percentage)-1 = Odds[Ratio]. Doing that I get 'infinity'&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 07:29:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2850553#M91344</guid>
      <dc:creator>jbaisley</dc:creator>
      <dc:date>2022-10-19T07:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Values from Single Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2850561#M91345</link>
      <description>&lt;P&gt;Aww! Its working but! The filters are not impacting the function (ofcourse) So the solution works! Thanks&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;</description>
      <pubDate>Wed, 19 Oct 2022 07:35:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2850561#M91345</guid>
      <dc:creator>jbaisley</dc:creator>
      <dc:date>2022-10-19T07:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Values from Single Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2851119#M91393</link>
      <description>&lt;P&gt;I have returned for advice on extending this function! Suppose I have a slicer for the symtopms in the first post. How can I filter the Odds[Ratio] to the selected values of Odds[Category]?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 10:44:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2851119#M91393</guid>
      <dc:creator>jbaisley</dc:creator>
      <dc:date>2022-10-19T10:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Values from Single Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2851155#M91400</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="458312" data-lia-user-login="jbaisley" class="lia-mention lia-mention-user"&gt;jbaisley&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The measure should be filtered with no issues&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 11:06:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2851155#M91400</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-19T11:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Values from Single Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2851215#M91408</link>
      <description>&lt;P&gt;OK, am I crazy to point out that multiplying the inverse of the ratio does not produce the same result as dividing the numbers? See PBIX attached. PRODUCX('Table', 1/[Ratio]) with the sample data returns 1.75 while dividing the numbers returns 3.24. Where is my math failing me?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 11:36:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2851215#M91408</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-10-19T11:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Values from Single Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2851334#M91420</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You are 100% correct but it is just about the first value which goes the numerator, this is what I was asking for a unique date or index column to calculate the first value visible in the current filter context and divide it by the result of the PRODUCTX after filtering out the very same value from the table. Not sure if&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="458312" data-lia-user-login="jbaisley" class="lia-mention lia-mention-user"&gt;jbaisley&lt;/a&gt;&amp;nbsp;has double checked the results not even sure if this is what he wants or in fact he just wants to have the result of the PRODUCTX right away.&lt;BR /&gt;I don't know what is this calculation about but to me it makes more sense to say that divide the ratios by each other means 1/R1/R2/R3/......etc&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 12:44:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2851334#M91420</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-19T12:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Values from Single Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2851362#M91422</link>
      <description>&lt;P&gt;Thanks folks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The use is a dodgy pooled ratio calculation. In theory (I cannot stress that enough) you can divide indivudal probabilty ratios to get a joint odds ratio. There is lots of pre-work to ensure that the ratios are correct and you need to be super careful that the ratios are coming from the same popualtion size. Typically you would only attempt this with perfect knowledge of a popualtion, instead we are using prevelance rate statistics to make odds ratios. The client has asked to be able to see their corss impact on one another, hense pooling them (again should only be done in specific circumstances). As both of you have discovered the results are suspect, but we needed to build it to prove the point. So it does work as intended &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Jacob&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 12:56:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2851362#M91422</guid>
      <dc:creator>jbaisley</dc:creator>
      <dc:date>2022-10-19T12:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Values from Single Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2851491#M91425</link>
      <description>&lt;P&gt;&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;OK, I just wanted to make sure I wasn't going crazy. Does seem like there ought to be a PRODUCTX equivalent in DAX, DIVIDEX? Otherwise, to truly get the division of a column of numbers seems to stray into the recursive space and we all know where that leads...&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 13:50:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiply-Values-from-Single-Column/m-p/2851491#M91425</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-10-19T13:50:02Z</dc:date>
    </item>
  </channel>
</rss>

