<?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 Filter context change - date slicer, measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-context-change-date-slicer-measure/m-p/3691289#M143436</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have two tables [DimDate] and [DataTable]. Both are connected in 1 to many relationship based on date. Next i am building simple slicer and table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Slicer uses columns from [DimDate] table.&lt;BR /&gt;In table visible under slicer only 'Date' column comes from [DimDate], other columns come from [DataTable].&lt;/P&gt;&lt;P&gt;Column 'TotalEvents' is calculated based on following measure:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Denominator =

VAR Denominator =
CALCULATE(
SUM(DataTable[Event]),
ALLEXCEPT(DataTable, DataTable[Date])
)&lt;/LI-CODE&gt;&lt;P&gt;Why filter context is not passed to measure? In column TotalEvents i should get the same values as in 'Events' column but instead i am getting values for total events. Of course i should exclude DataTable[Equipment],&amp;nbsp;DataTable[Type] etc. from the measure in order to get the same values between Events and TotalEvents but the issue is only with Date column - only those are not passed.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Feb 2024 15:08:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-02-09T15:08:43Z</dc:date>
    <item>
      <title>Filter context change - date slicer, measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-context-change-date-slicer-measure/m-p/3691289#M143436</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have two tables [DimDate] and [DataTable]. Both are connected in 1 to many relationship based on date. Next i am building simple slicer and table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Slicer uses columns from [DimDate] table.&lt;BR /&gt;In table visible under slicer only 'Date' column comes from [DimDate], other columns come from [DataTable].&lt;/P&gt;&lt;P&gt;Column 'TotalEvents' is calculated based on following measure:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Denominator =

VAR Denominator =
CALCULATE(
SUM(DataTable[Event]),
ALLEXCEPT(DataTable, DataTable[Date])
)&lt;/LI-CODE&gt;&lt;P&gt;Why filter context is not passed to measure? In column TotalEvents i should get the same values as in 'Events' column but instead i am getting values for total events. Of course i should exclude DataTable[Equipment],&amp;nbsp;DataTable[Type] etc. from the measure in order to get the same values between Events and TotalEvents but the issue is only with Date column - only those are not passed.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 15:08:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-context-change-date-slicer-measure/m-p/3691289#M143436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-09T15:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filter context change - date slicer, measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-context-change-date-slicer-measure/m-p/3692246#M143503</link>
      <description>&lt;P&gt;Can i add something to get an answer? Maybe i am not clear enough?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2024 10:19:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-context-change-date-slicer-measure/m-p/3692246#M143503</guid>
      <dc:creator>UksiDuksiPryw</dc:creator>
      <dc:date>2024-02-10T10:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Filter context change - date slicer, measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-context-change-date-slicer-measure/m-p/3692846#M143549</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="469572" data-lia-user-login="UksiDuksiPryw" class="lia-mention lia-mention-user"&gt;UksiDuksiPryw&lt;/a&gt;&amp;nbsp;,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Adventureworks to simulate your scenario. Please change table/column name accordingly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Denominator =

VAR Denominator =
CALCULATE(
SUM(DataTable[Event]),
ALLEXCEPT(DataTable, DataTable[Date])
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have written ALLEXCEPT(DateTable, DateTable[Date]), it means remove all filter except Date from DataTable.&lt;/P&gt;&lt;P&gt;1. You should use Date from DimDate.&lt;/P&gt;&lt;P&gt;2, Remove all filters coming from table visual which are from DataTable (Equipmet, type, Subtype). Do not write ALL(Table name). Mention ALL(Column names individually).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure&lt;/P&gt;&lt;P&gt;-----------&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MTotalSales =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[MSalesAmount]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DimProductCategory&lt;/SPAN&gt;&lt;SPAN&gt;[EnglishProductCategoryName]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 11 Feb 2024 15:32:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-context-change-date-slicer-measure/m-p/3692846#M143549</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-02-11T15:32:15Z</dc:date>
    </item>
  </channel>
</rss>

