<?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: DAX calculated column or measure for distinct count based on 2 tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2992435#M100725</link>
    <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) you pasted my code, what code do you have after changed your table and column names?&lt;/P&gt;&lt;P&gt;2) Also please ensure the data type of the DateTime or Snaptime needs to be Date/Time.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2022 01:33:22 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2022-12-29T01:33:22Z</dc:date>
    <item>
      <title>DAX calculated column or measure for distinct count based on 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2989654#M100528</link>
      <description>&lt;P&gt;Hi, I have tried searching the forum for related queries but cant seem to find one that works. Will really appreciate if anyone can help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to calculate the distinct number of vehicles that are ACTIVE for every hourly time stamp.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have Table 1 which has fields Car No, Activity, Job ID, Event Timing. For every unique Job ID, there are several job status (Activity) at different timing. If these vehicle has a job status tagged to it durring the event timing, it means that the vehicle is ACTIVE.&amp;nbsp; The vehicle is considered INACTIVE if it is under "Standby" mode. Whenever the vehicle is issued a new job, it have another new Job ID.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Now I want to calculate at every hourly snap, how many vehicles are ACTIVE (i.e. not under Standby mode). I have Table 2, which has a column of daily hourly snap at 0000hr, 0100hr, 0200hr, etc.&lt;/P&gt;&lt;P&gt;How do i get the Active Vehicle Count column as a column in Table 2? As can be seen from my manual table, Active Vehicle Count for Snaptime 20/12/2022 0100hr is 3 (Car B, C and D) because at 0100hr, these 3 vehicles are ACTIVE (not on standby).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Would really appreciate any help, thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Table 1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Car No&lt;/TD&gt;&lt;TD&gt;Activity&lt;/TD&gt;&lt;TD&gt;Job ID&lt;/TD&gt;&lt;TD&gt;Event Timing&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Car A&lt;/TD&gt;&lt;TD&gt;Status A&lt;/TD&gt;&lt;TD&gt;Job A1234&lt;/TD&gt;&lt;TD&gt;20/12/2022 0:02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Car A&lt;/TD&gt;&lt;TD&gt;Status B&lt;/TD&gt;&lt;TD&gt;Job A1234&lt;/TD&gt;&lt;TD&gt;20/12/2022 0:02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Car A&lt;/TD&gt;&lt;TD&gt;Standby&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;20/12/2022 0:55&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Car A&lt;/TD&gt;&lt;TD&gt;Status A&lt;/TD&gt;&lt;TD&gt;Job C2234&lt;/TD&gt;&lt;TD&gt;20/12/2022 1:05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Car A&lt;/TD&gt;&lt;TD&gt;Status B&lt;/TD&gt;&lt;TD&gt;Job C2234&lt;/TD&gt;&lt;TD&gt;20/12/2022 2:05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Car B&lt;/TD&gt;&lt;TD&gt;Status A&lt;/TD&gt;&lt;TD&gt;Job A2345&lt;/TD&gt;&lt;TD&gt;20/12/2022 0:08&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Car B&lt;/TD&gt;&lt;TD&gt;Status B&lt;/TD&gt;&lt;TD&gt;Job A2345&lt;/TD&gt;&lt;TD&gt;20/12/2022 0:55&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Car B&lt;/TD&gt;&lt;TD&gt;Status C&lt;/TD&gt;&lt;TD&gt;Job A2345&lt;/TD&gt;&lt;TD&gt;20/12/2022 1:21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Car B&lt;/TD&gt;&lt;TD&gt;Standby&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;20/12/2022 1:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Car B&lt;/TD&gt;&lt;TD&gt;Status A&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img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 07:39:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2989654#M100528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-27T07:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculated column or measure for distinct count based on 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2989774#M100537</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try a measure like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure =&lt;/P&gt;
&lt;P&gt;var _max = max(Table2[Snaptime] ) &lt;BR /&gt;var _maxStatus = calculate(lastnonblankvalue( Table[Event Timing]&amp;lt; max(Table[Activity])), filter(allselected(Table), Table[Car No] = max(Table[Car NO]) &amp;amp;&amp;amp;Table[Event Timing] &amp;lt;= -Max))&lt;BR /&gt;return &lt;BR /&gt;countx(Filter(values(Table[Car No]), _maxStatus &amp;lt;&amp;gt; "Standby"), [Car No])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 08:46:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2989774#M100537</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-12-27T08:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculated column or measure for distinct count based on 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2990911#M100622</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to add a column in Table2 like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Active Vehicle Count2 = 
VAR _table = 
FILTER(
    Table1,
    Table1[Event Timing]&amp;gt;=Table2[Snaptime]-1/24
        &amp;amp;&amp;amp;Table1[Event Timing]&amp;lt;=Table2[Snaptime]
)
VAR _table2 =
SUMMARIZE(_table, Table1[Activity])
RETURN
COUNTROWS(_table2)&lt;/LI-CODE&gt;&lt;P&gt;i tried and it worked like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;you may also plot a table visual with the Snaptime column and a measure like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Active Vehicle Count3 = 
VAR _snaptime = MAX( Table2[Snaptime])
VAR _table =
FILTER(
    Table1,
    Table1[Event Timing]&amp;gt;=_snaptime-1/24
        &amp;amp;&amp;amp;Table1[Event Timing]&amp;lt;=_snaptime
)
VAR _table2 =
SUMMARIZE(_table, Table1[Activity])
RETURN
COUNTROWS(_table2)&lt;/LI-CODE&gt;&lt;P&gt;it worked like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Good Luck.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 02:00:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2990911#M100622</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-12-28T02:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculated column or measure for distinct count based on 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2991009#M100633</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;thanks much for the recommended solution. I have a few further queries. Sorry I am not so well-versed with DAX.&amp;nbsp;&lt;BR /&gt;1. for the records with Activity as "Standby" i would like to disregard them as they are not considered ACTIVE when they are under this mode. Which part of your code should i include this portion as noted that your recommended code did not include this portion.&lt;BR /&gt;&lt;BR /&gt;2. For the custom column formula, am i counting the distinct number of Car No for every hourly snap when i SUMMARIZE by Table1[Activity]?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Can i also ask which method process faster? I am trying out your custom column code and it has been running for 30 mins and still have yet to produce the output. for reference, i have ~15mil rows for Table1 and it is growing everyday.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks much for your advice!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 02:57:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2991009#M100633</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-28T02:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculated column or measure for distinct count based on 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2991030#M100638</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) see below.&lt;/P&gt;&lt;P&gt;2) yes, distinct count. So disregarding "Active" in question 1 is not relevant to the needed calculation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) measures is better. Actually in DAX, custom column is used only when a measure is not possible, like when you need the added column to slice/filter the data. But if you have the chance to add the custom column in your datasource or in PQ, do so.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 03:32:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2991030#M100638</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-12-28T03:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculated column or measure for distinct count based on 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2991400#M100664</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately i am not able to find out what exactly is wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 09:00:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2991400#M100664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-28T09:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculated column or measure for distinct count based on 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2991459#M100667</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what code do you have for the measure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;p.s. if you need further suggestion, please consider&amp;nbsp;@ me in the reply.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 09:24:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2991459#M100667</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-12-28T09:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculated column or measure for distinct count based on 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2992403#M100720</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;sorry missed out the&amp;nbsp;@ on previous reply.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;i have used the code that you have provided for measure (below). is there anything that i may be doing wrong?&lt;/P&gt;&lt;PRE&gt;Active Vehicle Count3 = 
VAR _snaptime = MAX( Table2[Snaptime])
VAR _table =
FILTER(
    Table1,
    Table1[Event Timing]&amp;gt;=_snaptime-1/24
        &amp;amp;&amp;amp;Table1[Event Timing]&amp;lt;=_snaptime
)
VAR _table2 =
SUMMARIZE(_table, Table1[Activity])
RETURN
COUNTROWS(_table2)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 00:44:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2992403#M100720</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-29T00:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculated column or measure for distinct count based on 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2992435#M100725</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) you pasted my code, what code do you have after changed your table and column names?&lt;/P&gt;&lt;P&gt;2) Also please ensure the data type of the DateTime or Snaptime needs to be Date/Time.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 01:33:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-column-or-measure-for-distinct-count-based-on-2/m-p/2992435#M100725</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-12-29T01:33:22Z</dc:date>
    </item>
  </channel>
</rss>

