<?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 Challenge with measure not correctly applying filters from visual - Why!?? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Challenge-with-measure-not-correctly-applying-filters-from/m-p/4392399#M174366</link>
    <description>&lt;P&gt;Cant get my head around why this doesnt work but here goes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table "Customers" with the following columns:&lt;/P&gt;&lt;P&gt;Company&lt;/P&gt;&lt;P&gt;Customer&lt;/P&gt;&lt;P&gt;Churn period&lt;/P&gt;&lt;P&gt;Final MRR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Churn period is the month in which the customer churned&lt;/P&gt;&lt;P&gt;Final MRR is the MRR at the point they churned&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measure MRR_Churned_In_Period =&lt;/P&gt;&lt;P&gt;CALCULATE( SUM( Customers[FinalMRR]), Customer[Churn period] &amp;gt;= MIN (DateTable[EoM], Customers[Churn period]&amp;lt;= MAX (DateTable[EoM])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i apply this to a matrix table visual with DateTable[EoM] down the left (31/01/24, 28/02/24 and so on) and Companies across the top (Company A, Company B and so on) the output is the sum of all Final MRR across all companies for that month. How do i fix it so it only includes churn from the relevant company&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if Company A churns in Dec-24 with total final MRR (for all customers of company A that churned that month) of 100 and Company B churns in Dec-24 with total final MRR of 200 the table should be as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&amp;nbsp; &amp;nbsp; &amp;nbsp;B&lt;/P&gt;&lt;P&gt;Dec-24&amp;nbsp; &amp;nbsp;100&amp;nbsp; &amp;nbsp;200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead I get&lt;/P&gt;&lt;P&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&amp;nbsp; &amp;nbsp; &amp;nbsp;B&lt;/P&gt;&lt;P&gt;Dec-24&amp;nbsp; &amp;nbsp;300&amp;nbsp; &amp;nbsp;300&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whats going on?&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2025 11:51:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-02-03T11:51:54Z</dc:date>
    <item>
      <title>Challenge with measure not correctly applying filters from visual - Why!??</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Challenge-with-measure-not-correctly-applying-filters-from/m-p/4392399#M174366</link>
      <description>&lt;P&gt;Cant get my head around why this doesnt work but here goes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table "Customers" with the following columns:&lt;/P&gt;&lt;P&gt;Company&lt;/P&gt;&lt;P&gt;Customer&lt;/P&gt;&lt;P&gt;Churn period&lt;/P&gt;&lt;P&gt;Final MRR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Churn period is the month in which the customer churned&lt;/P&gt;&lt;P&gt;Final MRR is the MRR at the point they churned&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measure MRR_Churned_In_Period =&lt;/P&gt;&lt;P&gt;CALCULATE( SUM( Customers[FinalMRR]), Customer[Churn period] &amp;gt;= MIN (DateTable[EoM], Customers[Churn period]&amp;lt;= MAX (DateTable[EoM])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i apply this to a matrix table visual with DateTable[EoM] down the left (31/01/24, 28/02/24 and so on) and Companies across the top (Company A, Company B and so on) the output is the sum of all Final MRR across all companies for that month. How do i fix it so it only includes churn from the relevant company&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if Company A churns in Dec-24 with total final MRR (for all customers of company A that churned that month) of 100 and Company B churns in Dec-24 with total final MRR of 200 the table should be as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&amp;nbsp; &amp;nbsp; &amp;nbsp;B&lt;/P&gt;&lt;P&gt;Dec-24&amp;nbsp; &amp;nbsp;100&amp;nbsp; &amp;nbsp;200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead I get&lt;/P&gt;&lt;P&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&amp;nbsp; &amp;nbsp; &amp;nbsp;B&lt;/P&gt;&lt;P&gt;Dec-24&amp;nbsp; &amp;nbsp;300&amp;nbsp; &amp;nbsp;300&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whats going on?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 11:51:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Challenge-with-measure-not-correctly-applying-filters-from/m-p/4392399#M174366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-03T11:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge with measure not correctly applying filters from visual - Why!??</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Challenge-with-measure-not-correctly-applying-filters-from/m-p/4392431#M174368</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, Try using&lt;/P&gt;
&lt;P&gt;MRR_Churned_In_Period =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(Customers[Final MRR]),&lt;BR /&gt;Customers[Churn period] &amp;gt;= MIN(DateTable[EoM]),&lt;BR /&gt;Customers[Churn period] &amp;lt;= MAX(DateTable[EoM]),&lt;BR /&gt;Customers[Company] = SELECTEDVALUE(Customers[Company])&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 12:15:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Challenge-with-measure-not-correctly-applying-filters-from/m-p/4392431#M174368</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-02-03T12:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge with measure not correctly applying filters from visual - Why!??</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Challenge-with-measure-not-correctly-applying-filters-from/m-p/4392470#M174370</link>
      <description>&lt;P&gt;With that change i just get a completely blank table with no data....&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 12:41:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Challenge-with-measure-not-correctly-applying-filters-from/m-p/4392470#M174370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-03T12:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge with measure not correctly applying filters from visual - Why!??</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Challenge-with-measure-not-correctly-applying-filters-from/m-p/4393735#M174424</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the information you provided, your current matrix does not classify the results by company. I suggest you check whether the company column in your matrix comes from the customer table. If it comes from a separate company table, please make sure there is a relationship between the company table and the customer table, such as&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;company [company] - customer[company]: One to Many&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above method do not solve the problem, it is best to provide sample data, screenshots and pbix files (excluding private data).&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;——————————————————————————————————————————————————&lt;/P&gt;
&lt;P&gt;&lt;I&gt;If my answer helps you solve the problem,&amp;nbsp;please accept my answer as a solution and let it be seen by more people in need.&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;Best regards,&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;Mengmeng Li&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 07:37:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Challenge-with-measure-not-correctly-applying-filters-from/m-p/4393735#M174424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-04T07:37:34Z</dc:date>
    </item>
  </channel>
</rss>

