<?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: Possible to duplicate LOGEST() function in powerBI in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Possible-to-duplicate-LOGEST-function-in-powerBI/m-p/945333#M10284</link>
    <description>&lt;P&gt;Thanks for your response! I'm aware of all this, sorry if I wasn't clear. My desired output is the same output as the LOGEST() function in excel, i.e. the growth rate of an exponential curve fitted to an inputted list of known x and y values. I would be defining the VAR x_1 etc values within this measure purely for the purpose of calculating this output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT - in answer to where I get my VAR values from, I have one measure [COST] for which I have data over 5 years. I would set VAR y_1 equal to [COST] filtered to the first year, y_2 equal to [COST] filtered to the second year, etc. I have successfully done this to calculate other measure, eg year-over year change, linear trend, etc. The x_1, x_2, etc values would always be equal to 1,2,3,4,5. What I ultimately want to see is, for any given cut of the data, how the cost has been trending year over year using an exponential fit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a simplified example, if I input the following known x and y values to the LOGEST() function in excel, I get a growth rate of 2.402. What I'm wondering is if there's anything I can do in PowerBI with the same information to get the same output, or if I should just export my data to excel and work from there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Growth =&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR x_1 = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR x_2 = 2&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR x_3 = 3&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR x_4 = 4&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR x_5 = 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR y_1 = 5&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR y_2 = 30&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR y_3 = 130&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR y_4 = 120&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR y_5 = 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RETURN ???&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2020 15:03:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-24T15:03:06Z</dc:date>
    <item>
      <title>Possible to duplicate LOGEST() function in powerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Possible-to-duplicate-LOGEST-function-in-powerBI/m-p/944331#M10231</link>
      <description>&lt;P&gt;Hi, all - first time posting, relatively new to using PowerBI for anything other than data pulls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to define a measure as follows:&lt;/P&gt;&lt;P&gt;1. define x_1, x_2, ... x_5 and y_1, y_2, ... y_5 as VAR&lt;/P&gt;&lt;P&gt;2. return the same output that I would get if I inputted these as the known x and known y in LOGEST() in excel--i.e., the exponential rate of growth.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible? Can't seem to find any documentation on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2020 23:38:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Possible-to-duplicate-LOGEST-function-in-powerBI/m-p/944331#M10231</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-23T23:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to duplicate LOGEST() function in powerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Possible-to-duplicate-LOGEST-function-in-powerBI/m-p/944963#M10242</link>
      <description>Well... Where do you take your VAR's from? Please note that VAR's in DAX are not something that you can pass in from outside to a measure. VAR's are there only to make a reference to something so that it's calculated once.  Measures work on columns of tables and they change their values when filters on other columns change.&lt;BR /&gt;&lt;BR /&gt;Not sure what you really want to achieve...&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Mon, 24 Feb 2020 10:53:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Possible-to-duplicate-LOGEST-function-in-powerBI/m-p/944963#M10242</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-24T10:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to duplicate LOGEST() function in powerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Possible-to-duplicate-LOGEST-function-in-powerBI/m-p/945333#M10284</link>
      <description>&lt;P&gt;Thanks for your response! I'm aware of all this, sorry if I wasn't clear. My desired output is the same output as the LOGEST() function in excel, i.e. the growth rate of an exponential curve fitted to an inputted list of known x and y values. I would be defining the VAR x_1 etc values within this measure purely for the purpose of calculating this output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT - in answer to where I get my VAR values from, I have one measure [COST] for which I have data over 5 years. I would set VAR y_1 equal to [COST] filtered to the first year, y_2 equal to [COST] filtered to the second year, etc. I have successfully done this to calculate other measure, eg year-over year change, linear trend, etc. The x_1, x_2, etc values would always be equal to 1,2,3,4,5. What I ultimately want to see is, for any given cut of the data, how the cost has been trending year over year using an exponential fit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a simplified example, if I input the following known x and y values to the LOGEST() function in excel, I get a growth rate of 2.402. What I'm wondering is if there's anything I can do in PowerBI with the same information to get the same output, or if I should just export my data to excel and work from there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Growth =&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR x_1 = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR x_2 = 2&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR x_3 = 3&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR x_4 = 4&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR x_5 = 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR y_1 = 5&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR y_2 = 30&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR y_3 = 130&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR y_4 = 120&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;VAR y_5 = 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RETURN ???&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 15:03:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Possible-to-duplicate-LOGEST-function-in-powerBI/m-p/945333#M10284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-24T15:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to duplicate LOGEST() function in powerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Possible-to-duplicate-LOGEST-function-in-powerBI/m-p/945422#M10296</link>
      <description>&lt;P&gt;Hi there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mate, it looks like you'd like to fit to your data points a curve of this shape:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;y(x) = b*m^x&lt;/LI-CODE&gt;
&lt;P&gt;where b, m are unknown constants.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This problem becomes a standard linear regression problem when you transform both sides with a logarithm:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;log(y(x)) = log(b*m^x)
log(y(x)) = log(b) + log(m) * x&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you can treat log(y(x)) as your new y-value and put log(b) = C, log(m) = B. Hence, you want to estimate B, C. Once you have these, you can do the reverse to get b and m.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your new linear regression equation is&amp;nbsp; y' = Bx + C. Now just calculate the estimates of B and C by the standard formulas for linear regression in one variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 15:44:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Possible-to-duplicate-LOGEST-function-in-powerBI/m-p/945422#M10296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-24T15:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to duplicate LOGEST() function in powerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Possible-to-duplicate-LOGEST-function-in-powerBI/m-p/946095#M10364</link>
      <description>&lt;P&gt;This is super helpful, thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 23:32:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Possible-to-duplicate-LOGEST-function-in-powerBI/m-p/946095#M10364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-24T23:32:26Z</dc:date>
    </item>
  </channel>
</rss>

