<?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: help needed with growth estimation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-needed-with-growth-estimation/m-p/1192390#M18881</link>
    <description>&lt;P&gt;The question here is also - is that a measure (dependent on other filters set by the user) or a calculated column (only computed once)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In any case the formula will be something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[starting weight] * PRODUCTX(...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to come back to the original formula&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;weight end = ((weight start ^1/3 + Growthfactor * Temperature * 7)/1000) ^1/3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If that is correct (I changed some brackets) then it can be written as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;weight end = 0.1 * (weight start ^1/3 + Growthfactor * Temperature * 7)^1/3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Right?&lt;/SPAN&gt;&lt;/P&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jun 2020 13:31:27 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2020-06-30T13:31:27Z</dc:date>
    <item>
      <title>help needed with growth estimation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-needed-with-growth-estimation/m-p/1179624#M18354</link>
      <description>&lt;P&gt;Cheers everyone!&lt;BR /&gt;&lt;BR /&gt;As my DAX skills is far from superb i find myself in the need of some help from the community.&lt;BR /&gt;I'm currently creating growth estimations for Atlantic salmon based on public data. I have all the info i need it's just a matter of formulation...&lt;BR /&gt;My data is reported week by week, and as temperature is an important factor which is varying throughout the year i want the equation to calculate the growth this week and add it to the growth last week.&lt;BR /&gt;Generations goes over several years, therefore i'm using a globalweek approach to move away from year and date issues (Instead of restarting at the start of each year global week countiniues i.e week 52,53,54).&lt;BR /&gt;In my dataset there is a high amount of sites, so i need to be able to apply filters. I would do this based on a column called [site number], which holds a uniqe number for each site.&lt;BR /&gt;&lt;BR /&gt;Every time there is a new generation of Salmon the column [weeks since sea-transfer] restarts at 1 and then increases +1 for every week.&lt;BR /&gt;&lt;BR /&gt;the equation for growth this for this would be:&lt;BR /&gt;weight end = (weight start ^1/3 + Growthfactor * Temperature * 7)/1000) ^1/3)&lt;BR /&gt;- The growthfactor is confidential so I cannot share it.&lt;BR /&gt;&lt;BR /&gt;Any suggestions for a formula? Here is a picture of the data at interest.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;All help welcome!&lt;BR /&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 14:29:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-needed-with-growth-estimation/m-p/1179624#M18354</guid>
      <dc:creator>siros92</dc:creator>
      <dc:date>2020-06-24T14:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: help needed with growth estimation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-needed-with-growth-estimation/m-p/1180175#M18373</link>
      <description>&lt;P&gt;that formula looks fishy.&amp;nbsp; sorry, codn't resist. SORRY AGAIN!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;weight end = (weight start ^1/3 + Growthfactor * Temperature * 7)/1000) ^1/3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;as written (and ignoring the last bracket) would be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;weight end = &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var ws = max[weight start]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var temp=max[Temperature]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var factor = DIVIDE(1,3)&amp;nbsp; -- yes, overkill, i know&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;return POWER(DIVIDE(POWER(ws, factor) + [Growthfactor]*temp*7),1000),factor)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 17:53:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-needed-with-growth-estimation/m-p/1180175#M18373</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-06-24T17:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: help needed with growth estimation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-needed-with-growth-estimation/m-p/1181879#M18460</link>
      <description>&lt;P&gt;Haha, i need a glass of water with that one!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did some small ammendments to your suggestion to accomodate the need for filtering.&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I also did a excel withdrawal of the result. However, as you can see it didn't yield exactly the result i was looking for..&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So, in essence what i need the [est. size] column to do is to calculate the weight increase of fish at a specific site every week and add it to last week. the starting weight can be found in the column [start size]. This column only holds values when [weeks since sea transfer] = 1. When the [weeks since sea transfer] = 1 a new generation of fish is put to sea and a new cycle is started. Therefore, the column needs to restart everytime [weeks since sea transfer]=1 (which you can see happening in week 25 above).&lt;/P&gt;&lt;P&gt;As there is about 1000 different sites in my dataset i need to be able to filter by [site number].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that clarifies,&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 09:26:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-needed-with-growth-estimation/m-p/1181879#M18460</guid>
      <dc:creator>siros92</dc:creator>
      <dc:date>2020-06-25T09:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: help needed with growth estimation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-needed-with-growth-estimation/m-p/1188732#M18735</link>
      <description>&lt;P&gt;Bump,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other suggestions for solving this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 09:18:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-needed-with-growth-estimation/m-p/1188732#M18735</guid>
      <dc:creator>siros92</dc:creator>
      <dc:date>2020-06-29T09:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: help needed with growth estimation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-needed-with-growth-estimation/m-p/1189621#M18776</link>
      <description>&lt;P&gt;what is the result you are looking for? Or can you not tell because that would expose the growth factor?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 15:26:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-needed-with-growth-estimation/m-p/1189621#M18776</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-06-29T15:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: help needed with growth estimation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-needed-with-growth-estimation/m-p/1191143#M18828</link>
      <description>&lt;P&gt;No worries, I can understand it's somewhat hard to understand what to get to &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i'll just do as I did in the numbers above and use a random number as the growth factor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, whenever [weeks since sea transfer] = 1 the rolling calculation needs to restart. This is when a new generation of fish is put to sea. the value should be 0,115 when [weeks since sea transfer] = 1, this is the starting size of the fish. You should be able to see this clearly in the datadraw i posted earlier.&amp;nbsp;&lt;/P&gt;&lt;P&gt;From there, every week the collumn needs to calulate the result from this equation, and add it to the previous value.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;((((previoous week weigth^(1/3)+2.0*('Lakselus per fisk'[seatemperature]*7))/1000))^1/3).&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;As there is about a tousand sites in my sheet I also need to be able to filter by [sitenumber]&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so with a constant sea temperature of 7 degrees (to simplify) it will be:&lt;BR /&gt;&amp;nbsp;&lt;SPAN&gt;(((0,115^(1/3)+2.0*(7*7))/1000))^1/3 =0,0328 +0,115 =0,1478&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(((0,1478^(1/3)+2.0*(7*7))/1000))^1/3 =0,0328 + 0,1478 = 0,1806&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(((0,1806^(1/3)+2.0*(7*7))/1000))^1/3 =0,0328 +0,1806 = 0,213&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And so on.. untill [weeks since sea transfer] = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for beeing patient! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 06:53:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-needed-with-growth-estimation/m-p/1191143#M18828</guid>
      <dc:creator>siros92</dc:creator>
      <dc:date>2020-06-30T06:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: help needed with growth estimation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-needed-with-growth-estimation/m-p/1192390#M18881</link>
      <description>&lt;P&gt;The question here is also - is that a measure (dependent on other filters set by the user) or a calculated column (only computed once)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In any case the formula will be something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[starting weight] * PRODUCTX(...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to come back to the original formula&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;weight end = ((weight start ^1/3 + Growthfactor * Temperature * 7)/1000) ^1/3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If that is correct (I changed some brackets) then it can be written as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;weight end = 0.1 * (weight start ^1/3 + Growthfactor * Temperature * 7)^1/3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Right?&lt;/SPAN&gt;&lt;/P&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 13:31:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-needed-with-growth-estimation/m-p/1192390#M18881</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-06-30T13:31:27Z</dc:date>
    </item>
  </channel>
</rss>

