<?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 formula filtered by Selected Value Slicer ? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-filtered-by-Selected-Value-Slicer/m-p/3893489#M151772</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like, but if you have a sort order column for&amp;nbsp;&lt;SPAN&gt;ReportingMonth, please try something like below whether it suits your requirement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;new forecast previous measure =
CALCULATE (
    SUM ( '3503 Working Data'[Month Value] ),
    '3503 Working Data'[Baseline / Forecast] = "Forecast",
    OFFSET (
        -1,
        ALL (
            '3503 Working Data'[ReportingMonth],
            '3503 Working Data'[ReportingMonthSortOrder]
        ),
        ORDERBY ( '3503 Working Data'[ReportingMonthSortOrder], ASC )
    )
)
&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 06 May 2024 02:50:00 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2024-05-06T02:50:00Z</dc:date>
    <item>
      <title>DAX formula filtered by Selected Value Slicer ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-filtered-by-Selected-Value-Slicer/m-p/3893287#M151769</link>
      <description>&lt;P&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;I have created the below measure which is calculating previous forecast and is directing to my previous report indexed as -1 in RelativeMonth. However, I now want to be able to go back to any previous report and not only the most recent indexed as -1.&lt;BR /&gt;&lt;BR /&gt;Is it possible to add a slicer for "ReportingMonth" and update my measure to calculate based on the "ReportingMonth" Selected?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;new forecast previous &lt;/SPAN&gt;&lt;SPAN&gt;measure&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;('3503 Working Data'[Month Value]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; '3503 Working Data'[Baseline / Forecast]=&lt;/SPAN&gt;&lt;SPAN&gt;"Forecast"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; '3503 Working Data'[RelativeMonth]=-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 May 2024 01:29:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-filtered-by-Selected-Value-Slicer/m-p/3893287#M151769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-06T01:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula filtered by Selected Value Slicer ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-filtered-by-Selected-Value-Slicer/m-p/3893489#M151772</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like, but if you have a sort order column for&amp;nbsp;&lt;SPAN&gt;ReportingMonth, please try something like below whether it suits your requirement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;new forecast previous measure =
CALCULATE (
    SUM ( '3503 Working Data'[Month Value] ),
    '3503 Working Data'[Baseline / Forecast] = "Forecast",
    OFFSET (
        -1,
        ALL (
            '3503 Working Data'[ReportingMonth],
            '3503 Working Data'[ReportingMonthSortOrder]
        ),
        ORDERBY ( '3503 Working Data'[ReportingMonthSortOrder], ASC )
    )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 May 2024 02:50:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-filtered-by-Selected-Value-Slicer/m-p/3893489#M151772</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-05-06T02:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula filtered by Selected Value Slicer ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-filtered-by-Selected-Value-Slicer/m-p/3907280#M152206</link>
      <description>&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Hi&amp;nbsp; Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;If these also don't help, please share more detailed information and description to help us clarify your scenario to test.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;&lt;A href="http://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&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 05:18:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-filtered-by-Selected-Value-Slicer/m-p/3907280#M152206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-10T05:18:00Z</dc:date>
    </item>
  </channel>
</rss>

