<?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: Different Dates based upon 2 different columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459493#M131933</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="218027" data-lia-user-login="antlufc" class="lia-mention lia-mention-user"&gt;antlufc&lt;/a&gt;&amp;nbsp;What is the relationship? As in, what forms the relationship?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2023 12:52:01 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2023-10-04T12:52:01Z</dc:date>
    <item>
      <title>Different Dates based upon 2 different columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459250#M131918</link>
      <description>&lt;P&gt;The table below shows MQLs by latest date and latest event flag.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I would like to show the volume of MQLs that are Not Accepted or Achived using the MQLs - latest date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in my below examples i would like Key 7442051 to be counted and use the date 22/9/2023 and 7085123 to be counted and use 1/9/2023. It may also occur where they are on the same date and some instances where Not Accpted and Archived are either not the latest event or may not appear at all.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I can not add a column or amend the power query so i would like to solve this problem using DAX.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(Column Names as per below, this is only in relation to the table below&lt;/P&gt;&lt;P&gt;Column 1 = Stage Name&lt;BR /&gt;Column 2 = MQLs latest Date&lt;/P&gt;&lt;P&gt;Column 3 = latest event flag&lt;BR /&gt;Colimn 4 = date&lt;/P&gt;&lt;P&gt;Column 5 = Key)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;New&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;22/09/2023&lt;/TD&gt;&lt;TD&gt;7442051&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Working&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;22/09/2023&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;7442051&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Working&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;26/09/2023&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;7442051&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Working&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;27/09/2023&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;7442051&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Accepted&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;27/09/2023&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;7442051&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;New&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;09/08/2023&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;7085123&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;New&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;01/09/2023&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;7085123&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Working&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;01/09/2023&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;7085123&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Working&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;05/09/2023&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;7085123&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Archived&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;05/09/2023&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;7085123&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 10:36:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459250#M131918</guid>
      <dc:creator>antlufc</dc:creator>
      <dc:date>2023-10-04T10:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Different Dates based upon 2 different columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459305#M131921</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="218027" data-lia-user-login="antlufc" class="lia-mention lia-mention-user"&gt;antlufc&lt;/a&gt;&amp;nbsp;Not sure I fully understand but perhaps something like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
  VAR __Table = FILTER('Table', [MQLs latest Date] = 1)
  VAR __MaxDate = MAXX( __Table, [date] )
RETURN
  __MaxDate&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 Oct 2023 11:17:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459305#M131921</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-10-04T11:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Different Dates based upon 2 different columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459373#M131924</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;- i need to take into account if the MQL is Archived / Not Accpeted and take into account the date of the latest MQL.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Would be - provide the count of MQLs latest date where the latest event flag = 1 and the stage name = Not Accpted or Archived.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 11:52:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459373#M131924</guid>
      <dc:creator>antlufc</dc:creator>
      <dc:date>2023-10-04T11:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Different Dates based upon 2 different columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459423#M131928</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="218027" data-lia-user-login="antlufc" class="lia-mention lia-mention-user"&gt;antlufc&lt;/a&gt;&amp;nbsp;OK, how about this? PBIX attached below signature.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
  VAR __Statuses = { "Archived", "Not Accepted" }
  VAR __LatestStatus = MAXX( FILTER( 'Table', [latest event flag] = 1 ), [Stage Name] )
  VAR __MaxDate = MAXX( FILTER('Table', [MQLs latest Date] = 1), [date] )
  VAR __Result = IF( __LatestStatus IN __Statuses, __MaxDate, BLANK() )
RETURN
  __Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 12:21:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459423#M131928</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-10-04T12:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Different Dates based upon 2 different columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459439#M131929</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;sorry forgot to mention stage name is in a different table to latest evcent flag however they linked via a relationship&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 12:27:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459439#M131929</guid>
      <dc:creator>antlufc</dc:creator>
      <dc:date>2023-10-04T12:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Different Dates based upon 2 different columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459493#M131933</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="218027" data-lia-user-login="antlufc" class="lia-mention lia-mention-user"&gt;antlufc&lt;/a&gt;&amp;nbsp;What is the relationship? As in, what forms the relationship?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 12:52:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459493#M131933</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-10-04T12:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Different Dates based upon 2 different columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459499#M131934</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp; - date key based on event date from the fact table to date key in the date dimension.&amp;nbsp; The event date could be associated with events prior and post the MQL latest date&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 12:56:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459499#M131934</guid>
      <dc:creator>antlufc</dc:creator>
      <dc:date>2023-10-04T12:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Different Dates based upon 2 different columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459511#M131937</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="218027" data-lia-user-login="antlufc" class="lia-mention lia-mention-user"&gt;antlufc&lt;/a&gt;&amp;nbsp;I'm not quite following this. So you have a Date dimension and that includes what the Stage is for each Key based on which Date? Maybe post a picture of your data model or at least the relevant tables. I'm not understanding how you are arriving at the correct Stage for a specified Key and Date.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 13:07:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459511#M131937</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-10-04T13:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Different Dates based upon 2 different columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459531#M131938</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;date dimension - which provides the date linked to fact events via date key&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;fact events table -&amp;nbsp; which provides the MQL latest date, key and date key which links to date dimension based on the date an event happened and dim events via the key&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;dim events -&amp;nbsp; which contains the stage name which is linked to fact events via the key.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 13:24:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459531#M131938</guid>
      <dc:creator>antlufc</dc:creator>
      <dc:date>2023-10-04T13:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Different Dates based upon 2 different columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459680#M131953</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="218027" data-lia-user-login="antlufc" class="lia-mention lia-mention-user"&gt;antlufc&lt;/a&gt;&amp;nbsp;So the dim events table also has a date so you know what stage a key was in on a specific date?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 14:12:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3459680#M131953</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-10-04T14:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Different Dates based upon 2 different columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3461185#M132021</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;- no dim events only has the stage name.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The date where the specific event has happened is in fact events.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 07:31:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Dates-based-upon-2-different-columns/m-p/3461185#M132021</guid>
      <dc:creator>antlufc</dc:creator>
      <dc:date>2023-10-05T07:31:45Z</dc:date>
    </item>
  </channel>
</rss>

