<?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: Limit Parameter slicer to be applied to a specific measure in Matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Limit-Parameter-slicer-to-be-applied-to-a-specific-measure-in/m-p/3567624#M137539</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="315278" data-lia-user-login="VahidDM" class="lia-mention lia-mention-user"&gt;VahidDM&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first dax worked perfect as the idea was to remove filter from the parameter slicer. Thanks very much, Absolute legend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2023 05:18:59 GMT</pubDate>
    <dc:creator>Rabi</dc:creator>
    <dc:date>2023-12-05T05:18:59Z</dc:date>
    <item>
      <title>Limit Parameter slicer to be applied to a specific measure in Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Limit-Parameter-slicer-to-be-applied-to-a-specific-measure-in/m-p/3567367#M137524</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a matrix visual with MTD and YTD values for expenses with location and account lines. I need MTD&amp;nbsp; to be filtered and i want YTD to remain static, to filter the MTD value i have used a parameter and used slicer from it. How can i limit YTD value to not get affected from the slicer. I also have a relation from table A with the parameter table. The measure for YTD value is as below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YTD = 
VAR n = [EXPENSES]
VAR d = year(today())
RETURN
CALCULATE(
    n,
    ALLEXCEPT('Table A', 'Table A'[Date].[Year]),
    'Table A'[Date].[Year] = d
)&lt;/LI-CODE&gt;&lt;P&gt;Measure for MTD:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MTD-PARAM = 
CALCULATE(
    [EXPENSES],
    'Table A'[Month NO] = SELECTEDVALUE('Parameter Table'[Month NO]) &amp;amp;&amp;amp;
    YEAR('Table A'[Date]) = YEAR(TODAY())
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks For the help.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 01:21:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Limit-Parameter-slicer-to-be-applied-to-a-specific-measure-in/m-p/3567367#M137524</guid>
      <dc:creator>Rabi</dc:creator>
      <dc:date>2023-12-05T01:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Parameter slicer to be applied to a specific measure in Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Limit-Parameter-slicer-to-be-applied-to-a-specific-measure-in/m-p/3567598#M137534</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="609564" data-lia-user-login="Rabi" class="lia-mention lia-mention-user"&gt;Rabi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;YTD = 
VAR CurrentYear = YEAR(TODAY())
RETURN
CALCULATE(
    [EXPENSES],
        REMOVEFILTERS ( 'Parameter Table' ),
        YEAR('Table A'[Date]) = CurrentYear
 
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;LI-CODE lang="php"&gt;YTD = 
VAR CurrentYear = YEAR(TODAY())
RETURN
CALCULATE(
    [EXPENSES],
    FILTER(
        ALL('Table A'), 
        YEAR('Table A'[Date]) = CurrentYear
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider &lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank" rel="noopener noreferrer"&gt;LinkedIn&lt;/A&gt; | &lt;A href="https://twitter.com/VahidDMcom" target="_blank" rel="noopener noreferrer"&gt;Twitter&lt;/A&gt; | &lt;A href="https://www.vahiddm.com/" target="_blank" rel="noopener noreferrer"&gt;Blog&amp;nbsp;&lt;/A&gt;| &lt;A href="https://www.youtube.com/channel/UCF-uQfGF8de-EWnR9b2UQhQ" target="_blank" rel="noopener noreferrer"&gt;YouTube&lt;/A&gt;&lt;A href="https://www.youtube.com/channel/UCF-uQfGF8de-EWnR9b2UQhQ" target="_blank" rel="noopener noreferrer"&gt;&amp;nbsp;&lt;/A&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;</description>
      <pubDate>Tue, 05 Dec 2023 04:56:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Limit-Parameter-slicer-to-be-applied-to-a-specific-measure-in/m-p/3567598#M137534</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2023-12-05T04:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Parameter slicer to be applied to a specific measure in Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Limit-Parameter-slicer-to-be-applied-to-a-specific-measure-in/m-p/3567624#M137539</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="315278" data-lia-user-login="VahidDM" class="lia-mention lia-mention-user"&gt;VahidDM&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first dax worked perfect as the idea was to remove filter from the parameter slicer. Thanks very much, Absolute legend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 05:18:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Limit-Parameter-slicer-to-be-applied-to-a-specific-measure-in/m-p/3567624#M137539</guid>
      <dc:creator>Rabi</dc:creator>
      <dc:date>2023-12-05T05:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Parameter slicer to be applied to a specific measure in Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Limit-Parameter-slicer-to-be-applied-to-a-specific-measure-in/m-p/3567644#M137540</link>
      <description>&lt;P&gt;Glad it fixed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 05:44:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Limit-Parameter-slicer-to-be-applied-to-a-specific-measure-in/m-p/3567644#M137540</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2023-12-05T05:44:40Z</dc:date>
    </item>
  </channel>
</rss>

