<?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: Dynamic baseline calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-baseline-calculation/m-p/4356592#M172959</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="910036" data-lia-user-login="mikess1281" class="lia-mention lia-mention-user"&gt;mikess1281&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can refer the following links to get it by creating line chart with analytic line.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-analytics-pane" target="_blank"&gt;Use the Analytics pane in Power BI Desktop - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DynamicBaseline = 
CALCULATE(
    AVERAGE(YourTable[EventValue]),
    FILTER(
        YourTable,
        YourTable[Year] IN VALUES(YearTable[Year])
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Dynamic-baseline-and-UOM/m-p/418664" target="_blank"&gt;Solved: Dynamic baseline and UOM - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2025 07:17:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-01-09T07:17:00Z</dc:date>
    <item>
      <title>Dynamic baseline calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-baseline-calculation/m-p/4355719#M172928</link>
      <description>&lt;P&gt;I have a dax cacualtion that currenty finds and averages the baseline for events .&amp;nbsp; I am trying to figure out how to create a dynamcic baseline where I can choose what years are included in the baselines.&amp;nbsp; &amp;nbsp;For example, baseline currently gets the years 2022-2024.&amp;nbsp; What I am trying to figure out a way is to either being able to select invidual years or a range of years for the baseline.&amp;nbsp; &amp;nbsp;I am looking for any adivce or gudiance on how to alcompish this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 19:46:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-baseline-calculation/m-p/4355719#M172928</guid>
      <dc:creator>mikess1281</dc:creator>
      <dc:date>2025-01-08T19:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic baseline calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-baseline-calculation/m-p/4355756#M172929</link>
      <description>&lt;P&gt;We want to help you but your description is too vague. Please write it again clearly.&lt;/P&gt;
&lt;P&gt;Please DON'T copy &amp;amp; paste your DAX that does not work and expect us to fathom what you want to do. That is a bit crazy. &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please just give a simple non technical functional description of what you want, then let us suggest the solution. Thank you.&lt;/P&gt;
&lt;P&gt;Provide example input data as table text (not a screen print) so we can import the data to build a solution for you.&lt;/P&gt;
&lt;P&gt;Remove any unneeded columns which may cause confusion.&lt;/P&gt;
&lt;P&gt;Rename columns to user friendly names.&lt;BR /&gt;Also provide the example desired output, with a clear step-by-step description of calculations the process flow.&lt;BR /&gt;Remember not to share private data ... we don't want you to get into trouble. &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt;&lt;BR /&gt;Take time and care to use the same table and field names in the input, output and description so we can understand your problem and help you.&lt;BR /&gt;Try keep it simple and ask one question per ticket.&lt;BR /&gt;You will get a quick response if you put time, care and effort into writing clear problem descriptions.&lt;BR /&gt;Remember you are gertting free expert help, so please put lots of proper effort to asking questions and providing examples.&lt;/P&gt;
&lt;P&gt;Vaugue descriptions can waste your time and our time.&lt;/P&gt;
&lt;P&gt;Look forward to helping you when the above information is forthcoming&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 19:32:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-baseline-calculation/m-p/4355756#M172929</guid>
      <dc:creator>speedramps</dc:creator>
      <dc:date>2025-01-08T19:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic baseline calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-baseline-calculation/m-p/4356592#M172959</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="910036" data-lia-user-login="mikess1281" class="lia-mention lia-mention-user"&gt;mikess1281&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can refer the following links to get it by creating line chart with analytic line.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-analytics-pane" target="_blank"&gt;Use the Analytics pane in Power BI Desktop - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DynamicBaseline = 
CALCULATE(
    AVERAGE(YourTable[EventValue]),
    FILTER(
        YourTable,
        YourTable[Year] IN VALUES(YearTable[Year])
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Dynamic-baseline-and-UOM/m-p/418664" target="_blank"&gt;Solved: Dynamic baseline and UOM - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 07:17:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-baseline-calculation/m-p/4356592#M172959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-09T07:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic baseline calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-baseline-calculation/m-p/4358583#M173037</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="910036" data-lia-user-login="mikess1281" class="lia-mention lia-mention-user"&gt;mikess1281&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To create a dynamic baseline where you can select specific years or a range of years:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create a Year Selection Table&lt;/STRONG&gt;: Use a table (e.g., Yearselection) with a list of years you want to include. You can use Calender() to create this table.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Use Slicers&lt;/STRONG&gt;: Add a slicer to your report for year selection based on the Yearselection table.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Dynamic DAX Measure&lt;/STRONG&gt;: Modify your DAX calculation to filter the events by the selected years:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DynamicBaseline = 
VAR SelectedYears = VALUES(YearSelection[Year])
RETURN
    AVERAGEX (
        FILTER (
            'EventData', 
            YEAR('EventData'[EventDate]) IN SelectedYears
        ),
        'EventData'[BaselineValue]
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Range Selection (Optional)&lt;/STRONG&gt;: If you want to allow a year range, use two slicers (start year and end year) and adjust the DAX to filter by the selected range.&lt;/LI&gt;&lt;LI&gt;This allows you to dynamically change the baseline based on the years selected in the slicer.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution, this will help others!&lt;/STRONG&gt;&lt;BR /&gt;If my response(s) assisted you in any way, don't forget to drop me a "&lt;STRONG&gt;Kudos&lt;/STRONG&gt;" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Poojara&lt;BR /&gt;Data Analyst | MSBI Developer | Power BI Consultant&lt;BR /&gt;&lt;STRONG&gt;Consider Subscribing my YouTube for Beginners/Advance Concepts:&lt;/STRONG&gt;&amp;nbsp;&lt;A href="https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS" target="_self"&gt;https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 10:14:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-baseline-calculation/m-p/4358583#M173037</guid>
      <dc:creator>Poojara_D12</dc:creator>
      <dc:date>2025-01-10T10:14:01Z</dc:date>
    </item>
  </channel>
</rss>

