<?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: Ignore slicer that works on a column from one table, but apply Filter function on a another in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignore-slicer-that-works-on-a-column-from-one-table-but-apply/m-p/3051617#M105128</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;@&lt;SPAN&gt;amitchandak. Those Time Intelligence function are very useful, and got me where I needed!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2023 03:06:58 GMT</pubDate>
    <dc:creator>arielspalter</dc:creator>
    <dc:date>2023-01-31T03:06:58Z</dc:date>
    <item>
      <title>Ignore slicer that works on a column from one table, but apply Filter function on a another</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignore-slicer-that-works-on-a-column-from-one-table-but-apply/m-p/3051356#M105109</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have a situation, which I am going to greatly simplify below. I have 2 tables:&lt;/P&gt;&lt;P&gt;The 1st, with the main data:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;+-------------+-----------+--------+--------+
| Month Index | Month End | City   | Counts |
+-------------+-----------+--------+--------+
| 1           | 30-Jan    | City 1 | 11     |
+-------------+-----------+--------+--------+
| 1           | 30-Jan    | City 2 | 12     |
+-------------+-----------+--------+--------+
| 1           | 30-Jan    | City 3 | 13     |
+-------------+-----------+--------+--------+
| 2           | 28-Feb    | City 1 | 22     |
+-------------+-----------+--------+--------+
| 2           | 28-Feb    | City 2 | 23     |
+-------------+-----------+--------+--------+
| 2           | 28-Feb    | City 3 | 24     |
+-------------+-----------+--------+--------+
| 3           | 31-Mar    | City 1 | 34     |
+-------------+-----------+--------+--------+
| 3           | 31-Mar    | City 2 | 35     |
+-------------+-----------+--------+--------+
| 3           | 31-Mar    | City 3 | 36     |
+-------------+-----------+--------+--------+
|             |           |        |        |
+-------------+-----------+--------+--------+&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the 2nd is a date table with relationship set between the two tables based on the shared column Month End:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;+-----------+
| Month End |
+-----------+
| 30-Jan    |
+-----------+
| 28-Feb    |
+-----------+
| 31-Mar    |
+-----------+&lt;/LI-CODE&gt;&lt;P&gt;I have 2 slicers:&lt;/P&gt;&lt;P&gt;The date (from date table) and the city (from main table) - so each slicer is coming from a different table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now onto the issue - I need to show the value of any selected city for the last 3 months (as separate measures on 3 different cards), &lt;STRONG&gt;from the selected date&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;So for example, if the current slicer selection is "city 2" and March 31, one measure should show 35, the second 23 and the third 12.&lt;/P&gt;&lt;P&gt;I was trying to work with:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Previous Month = CALCULATE(
SUM(TABLE[City]),
FILTER(TABLE,TABLE[Month Index] = MAX(TABLE[Month Index])-1)
) &lt;/LI-CODE&gt;&lt;P&gt;The issue that because Month filter always shows the most recent month only (this code works):&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MAX(TABLE[Month Index])&lt;/LI-CODE&gt;&lt;P&gt;The previous months is retuned as Blank, since it gets filtered out (this code returns Blank):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MAX(TABLE[Month Index])-1&lt;/LI-CODE&gt;&lt;P&gt;I need to be able to show the value for the selected city for the last 3 months, from the selected date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope the question is clear and thanks in advance for the help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 00:00:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignore-slicer-that-works-on-a-column-from-one-table-but-apply/m-p/3051356#M105109</guid>
      <dc:creator>arielspalter</dc:creator>
      <dc:date>2023-01-31T00:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore slicer that works on a column from one table, but apply Filter function on a another</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignore-slicer-that-works-on-a-column-from-one-table-but-apply/m-p/3051476#M105114</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="506986" data-lia-user-login="arielspalter" class="lia-mention lia-mention-user"&gt;arielspalter&lt;/a&gt; , As you have date , make you use date table and time intelligence for that &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example measures&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))&lt;BR /&gt;last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))&lt;BR /&gt;last month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth('Date'[Date]))&lt;BR /&gt;MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))&lt;BR /&gt;last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))&lt;BR /&gt;last month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth('Date'[Date]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Time Intelligence, Part of learn Power BI &lt;A href="https://youtu.be/cN8AO3_vmlY?t=27510" target="_blank"&gt;https://youtu.be/cN8AO3_vmlY?t=27510&lt;/A&gt;&lt;BR /&gt;Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period, &lt;BR /&gt;Custom Period till date: &lt;A href="https://youtu.be/aU2aKbnHuWs&amp;amp;t=145s" target="_blank"&gt;https://youtu.be/aU2aKbnHuWs&amp;amp;t=145s&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Why Time Intelligence Fails&lt;/STRONG&gt; - Powerbi 5 Savior Steps for TI :&lt;A href="https://youtu.be/OBf0rjpp5Hw" target="_blank"&gt;https://youtu.be/OBf0rjpp5Hw&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4" target="_blank"&gt;https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 01:51:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignore-slicer-that-works-on-a-column-from-one-table-but-apply/m-p/3051476#M105114</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-01-31T01:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore slicer that works on a column from one table, but apply Filter function on a another</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignore-slicer-that-works-on-a-column-from-one-table-but-apply/m-p/3051617#M105128</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;@&lt;SPAN&gt;amitchandak. Those Time Intelligence function are very useful, and got me where I needed!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 03:06:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignore-slicer-that-works-on-a-column-from-one-table-but-apply/m-p/3051617#M105128</guid>
      <dc:creator>arielspalter</dc:creator>
      <dc:date>2023-01-31T03:06:58Z</dc:date>
    </item>
  </channel>
</rss>

