<?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 measure CALCULATE budget context in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-CALCULATE-budget-context/m-p/3588335#M138507</link>
    <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reaching out for assistance, I appreciate that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Detailed explaination of desired output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The process for the projects is that they can have multiple re-baselines during it's lifetime. Example when a project is initiated, we get two datasets "Current" in one table 'CurrentBudget' and copy of this dataset as "CCE1" to another table 'Baseline'. When there is no re-baseline (e.g only "CCE1"), the desired output will always be "Current" or first baseline regardless of what reporting period is selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When creating first baseline ("2023-01") for &lt;STRONG&gt;PRO10&lt;/STRONG&gt;, we have two same datasets ("CCE1"="Current") until next re-baseline is being created. Store all previous baseline's with period "yyyy-mm" and baseline "CCEx" as reference. Since there are two baseline (e.g "Current" &amp;lt;&amp;gt; "CCE1"), this mean desired output when select report period "2023-01", "2023-02", "2023-03", "2023-04", "2023-05" will then be "CCE1" from first baseline with the value 10,000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When report period "2023-06" is selected or after the desired output is "Current" (ref. "CCE2") with value 15,000 . After the last re-baseline (e.g "2023-06", "CCE2"), we always want desired output to be "Current" which is the same/copy to "Baselineof "CCE2".&amp;nbsp;&lt;/P&gt;&lt;P&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The project "PRO11" has only one baseline, therefore from "2023-03" the desired output of this project is "Current" from "2023-03" to "2023-12". The table 'Baseline' includes baseline for several projects with the same process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully, this is useful information on how we need desired output to be. Thank you for any tips of how to make this possible in a Power BI DAX measure.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2023 08:04:50 GMT</pubDate>
    <dc:creator>geirselvag</dc:creator>
    <dc:date>2023-12-18T08:04:50Z</dc:date>
    <item>
      <title>DAX measure CALCULATE budget context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-CALCULATE-budget-context/m-p/3587097#M138406</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm looking for the correct DAX measure of how to return the correct budget by having following condition.&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;One slicer "Report Period" always required.&lt;/LI&gt;&lt;LI&gt;Relevant budget need to be returned, based on selected period.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This is an example of the report period and expected corresponding budget value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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;&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;&lt;LI-CODE lang="markup"&gt;...&lt;/LI-CODE&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;&lt;P&gt;I'm grateful for any tips on how I can get this PowerBI DAX measure to work, on these expected conditions.&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>Mon, 18 Dec 2023 08:04:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-CALCULATE-budget-context/m-p/3587097#M138406</guid>
      <dc:creator>geirselvag</dc:creator>
      <dc:date>2023-12-18T08:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure CALCULATE budget context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-CALCULATE-budget-context/m-p/3587879#M138488</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="340229" data-lia-user-login="geirselvag" class="lia-mention lia-mention-user"&gt;geirselvag&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The data you gave is not comprehensive enough, I hope you can explain to me your desired output. For example, the data for 2023-03 is clearly only PRO 10,how did you get PRO 11? And why does Current value exist in baseline of 2023-06?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;BR /&gt;Community Support Team _ Rongtie&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&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>Mon, 18 Dec 2023 01:29:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-CALCULATE-budget-context/m-p/3587879#M138488</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-18T01:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure CALCULATE budget context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-CALCULATE-budget-context/m-p/3588335#M138507</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reaching out for assistance, I appreciate that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Detailed explaination of desired output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The process for the projects is that they can have multiple re-baselines during it's lifetime. Example when a project is initiated, we get two datasets "Current" in one table 'CurrentBudget' and copy of this dataset as "CCE1" to another table 'Baseline'. When there is no re-baseline (e.g only "CCE1"), the desired output will always be "Current" or first baseline regardless of what reporting period is selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When creating first baseline ("2023-01") for &lt;STRONG&gt;PRO10&lt;/STRONG&gt;, we have two same datasets ("CCE1"="Current") until next re-baseline is being created. Store all previous baseline's with period "yyyy-mm" and baseline "CCEx" as reference. Since there are two baseline (e.g "Current" &amp;lt;&amp;gt; "CCE1"), this mean desired output when select report period "2023-01", "2023-02", "2023-03", "2023-04", "2023-05" will then be "CCE1" from first baseline with the value 10,000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When report period "2023-06" is selected or after the desired output is "Current" (ref. "CCE2") with value 15,000 . After the last re-baseline (e.g "2023-06", "CCE2"), we always want desired output to be "Current" which is the same/copy to "Baselineof "CCE2".&amp;nbsp;&lt;/P&gt;&lt;P&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The project "PRO11" has only one baseline, therefore from "2023-03" the desired output of this project is "Current" from "2023-03" to "2023-12". The table 'Baseline' includes baseline for several projects with the same process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully, this is useful information on how we need desired output to be. Thank you for any tips of how to make this possible in a Power BI DAX measure.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 08:04:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-CALCULATE-budget-context/m-p/3588335#M138507</guid>
      <dc:creator>geirselvag</dc:creator>
      <dc:date>2023-12-18T08:04:50Z</dc:date>
    </item>
  </channel>
</rss>

