<?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: Dax Creating baseline value measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Creating-baseline-value-measure/m-p/1703804#M35092</link>
    <description>&lt;P&gt;Hi there, Thanks for your input, and will try this out. Also, I would like to know how I can make an overall static baseline value for each location so that it remains unaffected by the date value changes.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Mar 2021 16:57:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-03-04T16:57:24Z</dc:date>
    <item>
      <title>Dax Creating baseline value measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Creating-baseline-value-measure/m-p/1702171#M35044</link>
      <description>&lt;P class="p1"&gt;Hi there everyone. I have a problem I have been trying to solve. I am a newbie so please bear with me&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;The problem involves writing baseline values as a Dax measure,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have to create a“ baseline value” measure for hours worked for each location.&lt;/LI&gt;&lt;/UL&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Such that: the &lt;STRONG&gt;baseline value&lt;/STRONG&gt; is based on the average of all "actual hours worked"&amp;nbsp;&lt;STRONG&gt;per location&lt;/STRONG&gt;. (This Value must remain constant regardless of the date,&lt;/LI&gt;&lt;/UL&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;U&gt;&lt;STRONG&gt;Option b for a baseline: &lt;/STRONG&gt;&lt;/U&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class="p1"&gt;each week baseline should be based on the average hours of 3 weeks prior, such that it dynamically changes as time goes on.&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;I have the following sample table of work hours below:&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just a similar example of what I am trying to achieve in a visual form&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I would appreciate any help I can get on this. Thank you all.&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 02:57:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Creating-baseline-value-measure/m-p/1702171#M35044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-04T02:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Creating baseline value measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Creating-baseline-value-measure/m-p/1702374#M35057</link>
      <description>&lt;P&gt;you might have to tweak depending on how your data model is set up but this might give you a starting point.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mbaseline:=
var _MaxDate=MIN(Table1[date])
var _MinDate= _MaxDate-21
return 
     CALCULATE(AVERAGE(Table1[actual]),
               FILTER(all(Table1[date]),
                      Table1[date]&amp;gt;_MinDate &amp;amp;&amp;amp; Table1[date]&amp;lt;=_MaxDate
                     )
               )&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 06:05:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Creating-baseline-value-measure/m-p/1702374#M35057</guid>
      <dc:creator>rfigtree</dc:creator>
      <dc:date>2021-03-04T06:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Creating baseline value measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Creating-baseline-value-measure/m-p/1703804#M35092</link>
      <description>&lt;P&gt;Hi there, Thanks for your input, and will try this out. Also, I would like to know how I can make an overall static baseline value for each location so that it remains unaffected by the date value changes.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 16:57:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Creating-baseline-value-measure/m-p/1703804#M35092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-04T16:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Creating baseline value measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Creating-baseline-value-measure/m-p/1704728#M35138</link>
      <description>&lt;P&gt;assume you mean there is another table with the static values.&lt;/P&gt;&lt;P&gt;easiest thing would be to&amp;nbsp; join the two tables together.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 07:04:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Creating-baseline-value-measure/m-p/1704728#M35138</guid>
      <dc:creator>rfigtree</dc:creator>
      <dc:date>2021-03-05T07:04:16Z</dc:date>
    </item>
  </channel>
</rss>

