<?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: Consider period between two columns in the slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consider-period-between-two-columns-in-the-slicer/m-p/3157787#M113310</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="446601" data-lia-user-login="PBI_alma" class="lia-mention lia-mention-user"&gt;PBI_alma&lt;/a&gt;&amp;nbsp;Great, I'm glad it works!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you have to import the table and relate it via a unique ID, in this way you can get the information you need. If you have any detailed doubts, write to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BBF&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2023 07:19:41 GMT</pubDate>
    <dc:creator>BeaBF</dc:creator>
    <dc:date>2023-03-28T07:19:41Z</dc:date>
    <item>
      <title>Consider period between two columns in the slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consider-period-between-two-columns-in-the-slicer/m-p/3155680#M113192</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue here that I really need some help with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables, one containing the IDs that have a certain status in a certain time-period (red, green, blue). The time period is defined by a column startdate and a column enddate. In the other table, the revenue of the IDs at a certain point in time. Now, depending on a date filter (presumably via an extra date table), I need to know how much revenue was generated in the filtered period with the individual colour statuses:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The two tables are joined via a third one within the IDs, in this third table the IDs are unique.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I set the date filter of the revenue to 01.02.23 - 31.03.23, I would like to see the results of the yellow cells:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;red: 1.100&lt;/P&gt;&lt;P&gt;blue: 1.000&lt;/P&gt;&lt;P&gt;green: 900&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any idea how to solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you and best regards,&lt;/P&gt;&lt;P&gt;Alma&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 10:00:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consider-period-between-two-columns-in-the-slicer/m-p/3155680#M113192</guid>
      <dc:creator>PBI_alma</dc:creator>
      <dc:date>2023-03-27T10:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Consider period between two columns in the slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consider-period-between-two-columns-in-the-slicer/m-p/3155944#M113200</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="446601" data-lia-user-login="PBI_alma" class="lia-mention lia-mention-user"&gt;PBI_alma&lt;/a&gt;&amp;nbsp; Hi!&lt;BR /&gt;Try this:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Revenue by Status = &lt;BR /&gt;SUMX(&lt;BR /&gt;VALUES('ID Status'[Status]), &lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Revenue'[Revenue]), &lt;BR /&gt;FILTER(&lt;BR /&gt;'Revenue', &lt;BR /&gt;'Revenue'[Date] &amp;gt;= MIN('ID Status'[Start Date]) &amp;amp;&amp;amp; 'Revenue'[Date] &amp;lt;= MAX('ID Status'[End Date]) &amp;amp;&amp;amp; &lt;BR /&gt;RELATED('ID Status'[ID]) = 'Revenue'[ID]&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;BBF&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 12:06:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consider-period-between-two-columns-in-the-slicer/m-p/3155944#M113200</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2023-03-27T12:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Consider period between two columns in the slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consider-period-between-two-columns-in-the-slicer/m-p/3157783#M113309</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202311" data-lia-user-login="BeaBF" class="lia-mention lia-mention-user"&gt;BeaBF&lt;/a&gt;&amp;nbsp;that works, thank you very much!&lt;BR /&gt;&lt;BR /&gt;I still have the challenge that I have to insert a third table with unique IDs in between - do I then need two related functions? Can you help me here as well?&lt;BR /&gt;&lt;BR /&gt;Thanks a million and best regards&lt;/P&gt;&lt;P&gt;Alma&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 07:16:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consider-period-between-two-columns-in-the-slicer/m-p/3157783#M113309</guid>
      <dc:creator>PBI_alma</dc:creator>
      <dc:date>2023-03-28T07:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Consider period between two columns in the slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consider-period-between-two-columns-in-the-slicer/m-p/3157787#M113310</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="446601" data-lia-user-login="PBI_alma" class="lia-mention lia-mention-user"&gt;PBI_alma&lt;/a&gt;&amp;nbsp;Great, I'm glad it works!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you have to import the table and relate it via a unique ID, in this way you can get the information you need. If you have any detailed doubts, write to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BBF&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 07:19:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consider-period-between-two-columns-in-the-slicer/m-p/3157787#M113310</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2023-03-28T07:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Consider period between two columns in the slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consider-period-between-two-columns-in-the-slicer/m-p/3158213#M113341</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi BBF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;at first, thank you very much for your great support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had used the function you gave me and it worked fine, only I still generated wrong values because I didn't have a third table 'unique' with unique IDs between the first ones to link these two via [ID].&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I include this, the previous formula no longer works, as there is no longer a direct connection between the two columns in the Related function. Unfortunately, the attempt to write a second Related function behind it did not work either. how can I adjust the corresponding formula? A thousand thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revenue by Status =&lt;BR /&gt;SUMX(&lt;BR /&gt;VALUES('ID Status'[Status]),&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Revenue'[Revenue]),&lt;BR /&gt;FILTER(&lt;BR /&gt;'Revenue',&lt;BR /&gt;'Revenue'[Date] &amp;gt;= MIN('ID Status'[Start Date]) &amp;amp;&amp;amp; 'Revenue'[Date] &amp;lt;= MAX('ID Status'[End Date]) &amp;amp;&amp;amp;&lt;BR /&gt;&lt;FONT color="#000000"&gt;RELATED('ID Status'[ID]) = 'Revenue'[ID]&lt;/FONT&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best, Alma&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Mar 2023 10:42:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consider-period-between-two-columns-in-the-slicer/m-p/3158213#M113341</guid>
      <dc:creator>PBI_alma</dc:creator>
      <dc:date>2023-03-28T10:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Consider period between two columns in the slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consider-period-between-two-columns-in-the-slicer/m-p/3158401#M113352</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="446601" data-lia-user-login="PBI_alma" class="lia-mention lia-mention-user"&gt;PBI_alma&lt;/a&gt;&amp;nbsp;Try with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revenue by Status = &lt;BR /&gt;SUMX(&lt;BR /&gt;VALUES('ID Status'[Status]),&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Revenue'[Revenue]),&lt;BR /&gt;FILTER(&lt;BR /&gt;'Revenue',&lt;BR /&gt;'Revenue'[Date] &amp;gt;= MIN('ID Status'[Start Date]) &amp;amp;&amp;amp;&lt;BR /&gt;'Revenue'[Date] &amp;lt;= MAX('ID Status'[End Date]) &amp;amp;&amp;amp;&lt;BR /&gt;RELATEDTABLE('Unique')[ID] = RELATED('ID Status'[ID]) &amp;amp;&amp;amp;&lt;BR /&gt;RELATED('Unique'[ID]) = 'Revenue'[ID]&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In this formula, we use the RELATEDTABLE('Unique')[ID] expression to get the ID column from the third table, and compare it with the ID in the ID Status table using the RELATED function. We then use the second RELATED function to compare the ID from the Revenue table with the ID in the third table. This way, we can filter the Revenue table based on the ID Status table, even though there is no direct relationship between them.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BBF&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 12:10:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consider-period-between-two-columns-in-the-slicer/m-p/3158401#M113352</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2023-03-28T12:10:25Z</dc:date>
    </item>
  </channel>
</rss>

