<?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: Dimension table to Filter Measure - Data Model Help? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dimension-table-to-Filter-Measure-Data-Model-Help/m-p/4297457#M170619</link>
    <description>&lt;P&gt;Thank you for your response.&amp;nbsp; Unfortunately, this solution is not working (I corrected the red filter text in it had [Status] in twice.&lt;/P&gt;&lt;P&gt;It gives me too low a count. To get the correct backlog count, I can't filter the RS_Cases table to only include cases sent to the Region (primary key) to the month selected, or to only cases with a Due By date in the month selected. I need to filter the entire table to get the correct counts.&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2024 14:17:37 GMT</pubDate>
    <dc:creator>Txtcher</dc:creator>
    <dc:date>2024-11-22T14:17:37Z</dc:date>
    <item>
      <title>Dimension table to Filter Measure - Data Model Help?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dimension-table-to-Filter-Measure-Data-Model-Help/m-p/4296273#M170550</link>
      <description>&lt;P&gt;I think this is simple, but I am new to DAX and data modeling. I am using Excel &amp;amp; Power Query.&lt;/P&gt;&lt;P&gt;I have 2 tables: RS_Cases (fact table) and Date_Table (dimension table).&lt;/P&gt;&lt;P&gt;The goal is to create a power pivot with slicers for dates and programs to track backlog cases. The following measure calculates the total backlog:&lt;/P&gt;&lt;P&gt;&lt;!--  StartFragment   --&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Backlog:=&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN class=""&gt;(RS_Cases),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;FILTER&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;ALL&lt;/SPAN&gt;&lt;SPAN class=""&gt;(RS_Cases),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;(RS_Cases[Due By]&amp;lt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;MAX&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Date_Table[Date]) &amp;amp;&amp;amp; RS_Cases[Status]=&lt;/SPAN&gt;&lt;SPAN class=""&gt;"OPEN"&lt;/SPAN&gt;&lt;SPAN class=""&gt;) ||&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;(RS_Cases[Due By]&amp;lt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;MAX&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Date_Table[Date]) &amp;amp;&amp;amp; RS_Cases[Entrance Date]&amp;gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Max&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Date_Table[Date])) ||&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;(RS_Cases[Due By]&amp;lt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;MAX&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Date_Table[Date]) &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN class=""&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN class=""&gt;(RS_Cases[Entrance Date]) &amp;amp;&amp;amp; RS_Cases[Status]=&lt;/SPAN&gt;&lt;SPAN class=""&gt;"CLOSED"&lt;/SPAN&gt;&lt;SPAN class=""&gt; &amp;amp;&amp;amp; RS_Cases[Status Change Date]&amp;gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;MAX&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Date_Table[Date]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;But now I want this measure to give me the total backlog based on the program (field in RS_Cases) selected in the pivot table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I tried building a 2nd dimension table for Program, creating a relationship with the fact table. Then tried to alter the measure above like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;!--  StartFragment   --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;Backlog:=&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN class=""&gt;(RS_Cases),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;USERELATIONSHIP&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Programs[Program],RS_Cases[Program]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;FILTER&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;ALL&lt;/SPAN&gt;&lt;SPAN class=""&gt;(RS_Cases),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;(RS_Cases[Due By]&amp;lt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;MAX&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Date_Table[Date]) &amp;amp;&amp;amp; RS_Cases[Status]=&lt;/SPAN&gt;&lt;SPAN class=""&gt;"OPEN"&lt;/SPAN&gt;&lt;SPAN class=""&gt;) ||&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;(RS_Cases[Due By]&amp;lt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;MAX&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Date_Table[Date]) &amp;amp;&amp;amp; RS_Cases[Entrance Date]&amp;gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Max&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Date_Table[Date])) ||&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;(RS_Cases[Due By]&amp;lt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;MAX&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Date_Table[Date]) &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN class=""&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN class=""&gt;(RS_Cases[Entrance Date]) &amp;amp;&amp;amp; RS_Cases[Status]=&lt;/SPAN&gt;&lt;SPAN class=""&gt;"CLOSED"&lt;/SPAN&gt;&lt;SPAN class=""&gt; &amp;amp;&amp;amp; RS_Cases[Status Change Date]&amp;gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;MAX&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Date_Table[Date]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;!--  EndFragment   --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I used the program field from the dimension table when I built the pivot, but the measure does not change when I filter the pivot table by program.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Where am I going wrong here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 02:42:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dimension-table-to-Filter-Measure-Data-Model-Help/m-p/4296273#M170550</guid>
      <dc:creator>Txtcher</dc:creator>
      <dc:date>2024-11-22T02:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension table to Filter Measure - Data Model Help?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dimension-table-to-Filter-Measure-Data-Model-Help/m-p/4296350#M170555</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="740960" data-lia-user-login="Txtcher" class="lia-mention lia-mention-user"&gt;Txtcher&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try like:&lt;/P&gt;
&lt;P&gt;Backlog:=CALCULATE(&lt;BR /&gt;COUNTROWS(RS_Cases),&lt;BR /&gt;USERELATIONSHIP(Programs[Program],RS_Cases[Program]),&lt;BR /&gt;FILTER(&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;LL&lt;/FONT&gt;(RS_Cases[Due By], RS_Cases[Status], RS_Cases[Entrance Date], RS_Cases[Status],RS_Cases[Status Change Date]),&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;(RS_Cases[Due By]&amp;lt;=MAX(Date_Table[Date]) &amp;amp;&amp;amp; RS_Cases[Status]="OPEN") ||&lt;BR /&gt;(RS_Cases[Due By]&amp;lt;=MAX(Date_Table[Date]) &amp;amp;&amp;amp; RS_Cases[Entrance Date]&amp;gt;Max(Date_Table[Date])) ||&lt;BR /&gt;(RS_Cases[Due By]&amp;lt;=MAX(Date_Table[Date]) &amp;amp;&amp;amp; ISBLANK(RS_Cases[Entrance Date]) &amp;amp;&amp;amp; RS_Cases[Status]="CLOSED" &amp;amp;&amp;amp; RS_Cases[Status Change Date]&amp;gt;MAX(Date_Table[Date]))&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 03:41:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dimension-table-to-Filter-Measure-Data-Model-Help/m-p/4296350#M170555</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2024-11-22T03:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension table to Filter Measure - Data Model Help?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dimension-table-to-Filter-Measure-Data-Model-Help/m-p/4297457#M170619</link>
      <description>&lt;P&gt;Thank you for your response.&amp;nbsp; Unfortunately, this solution is not working (I corrected the red filter text in it had [Status] in twice.&lt;/P&gt;&lt;P&gt;It gives me too low a count. To get the correct backlog count, I can't filter the RS_Cases table to only include cases sent to the Region (primary key) to the month selected, or to only cases with a Due By date in the month selected. I need to filter the entire table to get the correct counts.&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 14:17:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dimension-table-to-Filter-Measure-Data-Model-Help/m-p/4297457#M170619</guid>
      <dc:creator>Txtcher</dc:creator>
      <dc:date>2024-11-22T14:17:37Z</dc:date>
    </item>
  </channel>
</rss>

