<?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 How to pass custom Measure value to table filter via DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-pass-custom-Measure-value-to-table-filter-via-DAX/m-p/4697540#M179918</link>
    <description>&lt;P&gt;I have an existing table that has a date filter that I have set up manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is pass a value from a custom measure ( a single month number of 1 or 2 etc up to 12 )&lt;/P&gt;&lt;P&gt;to the existing filter thats on the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the performance analyzer, I can see the date value in the DAX code for the table&amp;nbsp; &amp;nbsp;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; VAR __DS0FilterTable2 = &lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TREATAS({DATE(2024, 3, 1)}, 'Calendar'[month])&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If I had a custom measure called [Custom_month] that produced say a numeric value of "2" for the month&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;how would I modify the code above to replace the "3" with a "2" from the custom measure please?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Also, if I create dax and run it in DAX query view against the model, will it store the DAX code forever in the model?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 19 May 2025 04:04:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-05-19T04:04:21Z</dc:date>
    <item>
      <title>How to pass custom Measure value to table filter via DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-pass-custom-Measure-value-to-table-filter-via-DAX/m-p/4697540#M179918</link>
      <description>&lt;P&gt;I have an existing table that has a date filter that I have set up manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is pass a value from a custom measure ( a single month number of 1 or 2 etc up to 12 )&lt;/P&gt;&lt;P&gt;to the existing filter thats on the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the performance analyzer, I can see the date value in the DAX code for the table&amp;nbsp; &amp;nbsp;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; VAR __DS0FilterTable2 = &lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TREATAS({DATE(2024, 3, 1)}, 'Calendar'[month])&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If I had a custom measure called [Custom_month] that produced say a numeric value of "2" for the month&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;how would I modify the code above to replace the "3" with a "2" from the custom measure please?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Also, if I create dax and run it in DAX query view against the model, will it store the DAX code forever in the model?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 19 May 2025 04:04:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-pass-custom-Measure-value-to-table-filter-via-DAX/m-p/4697540#M179918</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-19T04:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass custom Measure value to table filter via DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-pass-custom-Measure-value-to-table-filter-via-DAX/m-p/4698088#M179953</link>
      <description>&lt;P&gt;You could create a calculation group to apply the filter. Create a couple of calculation items like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;No Change = SELECTEDMEASURE()&lt;/LI-CODE&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Add custom filter =
CALCULATE (
    SELECTEDMEASURE (),
    TREATAS ( { DATE ( 2024, [Custom_month], 1 ) }, 'Calendar'[month] )
)
&lt;/LI-CODE&gt;
&lt;P&gt;Then add the calculation group as a filter on the visuals you want to be affected, and choose "Add custom filter" as the only value.&lt;/P&gt;
&lt;P&gt;With regards to DAX in DAX Query View, the query will be stored whenever you save the file. If you publish it to the service and then subsequently download it, the query will still be available.&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 09:03:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-pass-custom-Measure-value-to-table-filter-via-DAX/m-p/4698088#M179953</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-05-19T09:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass custom Measure value to table filter via DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-pass-custom-Measure-value-to-table-filter-via-DAX/m-p/4699434#M180015</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi Anonymous&lt;/LI-USER&gt;,&lt;BR /&gt;I wanted to check if you had the opportunity to review the information provided by &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;. Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 06:44:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-pass-custom-Measure-value-to-table-filter-via-DAX/m-p/4699434#M180015</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-05-20T06:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass custom Measure value to table filter via DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-pass-custom-Measure-value-to-table-filter-via-DAX/m-p/4702904#M180124</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 06:55:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-pass-custom-Measure-value-to-table-filter-via-DAX/m-p/4702904#M180124</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-05-22T06:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass custom Measure value to table filter via DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-pass-custom-Measure-value-to-table-filter-via-DAX/m-p/4706618#M180253</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We haven’t heard back from you regarding your issue. If it has been resolved, please mark the helpful response as the solution and give a ‘Kudos’ to assist others. If you still need support, let us know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 04:54:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-pass-custom-Measure-value-to-table-filter-via-DAX/m-p/4706618#M180253</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-05-26T04:54:29Z</dc:date>
    </item>
  </channel>
</rss>

