<?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: Static Baseline in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline/m-p/1695342#M34883</link>
    <description>&lt;LI-CODE lang="markup"&gt;BaseLine =
Var BaseLineUnits = CALCULATE(sum('SALES'[Units]),
                       filter(all('Monthly_Reporting_Period'[Month_Year_Abbr]),
                           'Monthly_Reporting_Period'[Month_Year_Abbr]="Jan 2020" ||
                           'Monthly_Reporting_Period'[Month_Year_Abbr]="Feb 2020"
                        )
                      )

Var BaseLineWorkDays= CALCULATE(sum('Monthly_Reporting_Period'[Period_Workday_Cnt]),
                         filter(all('Monthly_Reporting_Period'[Month_Year_Abbr]),
                             'Monthly_Reporting_Period'[Month_Year_Abbr]="Jan 2020" ||
                             'Monthly_Reporting_Period'[Month_Year_Abbr]="Feb 2020"
                         )
                     )
return divide(BaseLineUnits ,BaseLineWorkDays)
&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 01 Mar 2021 07:30:05 GMT</pubDate>
    <dc:creator>rfigtree</dc:creator>
    <dc:date>2021-03-01T07:30:05Z</dc:date>
    <item>
      <title>Static Baseline</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline/m-p/1695008#M34876</link>
      <description>&lt;P&gt;I'm trying to use the average of the Jan 2020 and Feb 2020 Units Sold per work day as a baseline to compare to the COVID Months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a reporting period month table and a sales table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To create my baseline I did the following (Showing Jan but did same for Feb):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;sum units Sold Jan 2020 = CALCULATE(sum('SALES'[Units]), 'Monthly_Reporting_Period'[Month_Year_Abbr]="Jan 2020")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;REPEATED FOR FEB&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Jan Work Days = CALCULATE(sum('Monthly_Reporting_Period'[Period_Workday_Cnt]), 'Monthly_Reporting_Period'[Month_Year_Abbr]="Jan 2020")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;REPEATED FOR FEB&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Jan calc = divide([sum units Jan 2020], [Jan Work Days])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Feb calc = divide([sum units Feb2020], [Feb Work Days])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Baseline Calc= (Jan Calc+Feb Calc)/2&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My baseline number is perfect when I put it in a matrix with no Months Specified.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When i compare to the actual sales per day in each month of 2020 I get different numbers for each of Jan and Feb, and blank for the remaining months.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can I keep my baseline number static so I can use to find a precent of baseline?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Mar 2021 04:31:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline/m-p/1695008#M34876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-01T04:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Static Baseline</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline/m-p/1695342#M34883</link>
      <description>&lt;LI-CODE lang="markup"&gt;BaseLine =
Var BaseLineUnits = CALCULATE(sum('SALES'[Units]),
                       filter(all('Monthly_Reporting_Period'[Month_Year_Abbr]),
                           'Monthly_Reporting_Period'[Month_Year_Abbr]="Jan 2020" ||
                           'Monthly_Reporting_Period'[Month_Year_Abbr]="Feb 2020"
                        )
                      )

Var BaseLineWorkDays= CALCULATE(sum('Monthly_Reporting_Period'[Period_Workday_Cnt]),
                         filter(all('Monthly_Reporting_Period'[Month_Year_Abbr]),
                             'Monthly_Reporting_Period'[Month_Year_Abbr]="Jan 2020" ||
                             'Monthly_Reporting_Period'[Month_Year_Abbr]="Feb 2020"
                         )
                     )
return divide(BaseLineUnits ,BaseLineWorkDays)
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 01 Mar 2021 07:30:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline/m-p/1695342#M34883</guid>
      <dc:creator>rfigtree</dc:creator>
      <dc:date>2021-03-01T07:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Static Baseline</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline/m-p/1696236#M34901</link>
      <description>&lt;P&gt;The same thing is occuring that occured with my measures.&amp;nbsp; I need a static number, so for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jan Sales 100 Units, 22 work days&lt;/P&gt;&lt;P&gt;Feb Sales 90 Units, 20 Work Days&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jan Sales per day= 100/22= 4.55 Units per day&lt;/P&gt;&lt;P&gt;Feb Sales per day= 90/20= 4.5 Units per day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4.55+4.5=9.05/2= 4.523 Units per day Baseline&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the 4.523 to show as my baseline and use it as my&amp;nbsp; baseline for % of baseline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 14:09:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline/m-p/1696236#M34901</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-01T14:09:08Z</dc:date>
    </item>
  </channel>
</rss>

