<?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 Creating measure to count ids based on a filter previously applied in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-to-count-ids-based-on-a-filter-previously/m-p/2654369#M78366</link>
    <description>&lt;P&gt;Hi all!&lt;BR /&gt;&lt;BR /&gt;I have the following scenario:&lt;BR /&gt;Table A has 4&amp;nbsp;Columns&lt;BR /&gt;ID, Product ID, Salesnumber, CreatedDateTime&lt;BR /&gt;&lt;BR /&gt;I'll have to filter the report by one specific ID initially, so we will be seeing the visuals for one specific ID always and of course I will have the name of the Product for that ID and the salenumber showing on simple card visuals (as result of the filter applied). Now, based on that filter applied initially, I would like to have:&lt;BR /&gt;1- A measure that would show me the count of IDs for past 5 days(for instance) - that are associated to the Product ID that is showing (as we filtered by one specific ID )&lt;BR /&gt;&lt;BR /&gt;Let me know if the above is clear, I would be more than happy to share an example if required. I've been struggling with this and I can't find an answer on how to do it.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2022 22:51:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-07-21T22:51:20Z</dc:date>
    <item>
      <title>Creating measure to count ids based on a filter previously applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-to-count-ids-based-on-a-filter-previously/m-p/2654369#M78366</link>
      <description>&lt;P&gt;Hi all!&lt;BR /&gt;&lt;BR /&gt;I have the following scenario:&lt;BR /&gt;Table A has 4&amp;nbsp;Columns&lt;BR /&gt;ID, Product ID, Salesnumber, CreatedDateTime&lt;BR /&gt;&lt;BR /&gt;I'll have to filter the report by one specific ID initially, so we will be seeing the visuals for one specific ID always and of course I will have the name of the Product for that ID and the salenumber showing on simple card visuals (as result of the filter applied). Now, based on that filter applied initially, I would like to have:&lt;BR /&gt;1- A measure that would show me the count of IDs for past 5 days(for instance) - that are associated to the Product ID that is showing (as we filtered by one specific ID )&lt;BR /&gt;&lt;BR /&gt;Let me know if the above is clear, I would be more than happy to share an example if required. I've been struggling with this and I can't find an answer on how to do it.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 22:51:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-to-count-ids-based-on-a-filter-previously/m-p/2654369#M78366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-21T22:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating measure to count ids based on a filter previously applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-to-count-ids-based-on-a-filter-previously/m-p/2654375#M78369</link>
      <description>&lt;P&gt;&lt;SPAN&gt;count of IDs means DISTINCTCOUNT of IDs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;past 5 days means the Latest of&amp;nbsp;CreatedDateTime&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;IDs for past 5 days =&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; DISTINCTCOUNT([ID],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Filter(ALL('Table A'),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;'Table A'[CreatedDateTime]&amp;gt;MAX('Table A'[CreatedDateTime]) -5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 23:00:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-to-count-ids-based-on-a-filter-previously/m-p/2654375#M78369</guid>
      <dc:creator>vapid128</dc:creator>
      <dc:date>2022-07-21T23:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating measure to count ids based on a filter previously applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-to-count-ids-based-on-a-filter-previously/m-p/2663256#M79040</link>
      <description>&lt;P&gt;This doesn't cover the part that this distinct count would be for the specific product ID that was filtered in the beginning.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;ID 8 gets selected -&amp;gt; Product ID is 101 -&amp;gt; what is required is the count distinct of Ids for that specific Product ID in last 5 days.&lt;BR /&gt;Is it possible?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 21:21:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-to-count-ids-based-on-a-filter-previously/m-p/2663256#M79040</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-26T21:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating measure to count ids based on a filter previously applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-to-count-ids-based-on-a-filter-previously/m-p/2663288#M79041</link>
      <description>&lt;P&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; DISTINCTCOUNT([Product ID],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Filter(ALL('Table A'),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;'Table A'[CreatedDateTime]&amp;gt;MAX('Table A'[CreatedDateTime]) -5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 21:55:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-to-count-ids-based-on-a-filter-previously/m-p/2663288#M79041</guid>
      <dc:creator>vapid128</dc:creator>
      <dc:date>2022-07-26T21:55:47Z</dc:date>
    </item>
  </channel>
</rss>

