<?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: Count all Records of a table using some condition depending on slicer value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-all-Records-of-a-table-using-some-condition-depending-on/m-p/1858052#M39788</link>
    <description>&lt;P&gt;Just go with COUNTROWS(FILTER(yourtable,yourcondition))&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 22 May 2021 11:11:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-05-22T11:11:42Z</dc:date>
    <item>
      <title>Count all Records of a table using some condition depending on slicer value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-all-Records-of-a-table-using-some-condition-depending-on/m-p/1858049#M39787</link>
      <description>&lt;P&gt;I have three tables&lt;/P&gt;&lt;P&gt;Table 1 ( Release)&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Version&lt;/TD&gt;&lt;TD&gt;Start&lt;/TD&gt;&lt;TD&gt;End&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;01-01-2021&lt;/TD&gt;&lt;TD&gt;31-01-2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;51&lt;/TD&gt;&lt;TD&gt;01-02-2021&lt;/TD&gt;&lt;TD&gt;28-02-2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;52&lt;/TD&gt;&lt;TD&gt;01-03-2021&lt;/TD&gt;&lt;TD&gt;31-03-2021&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&g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;15-01-2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;07-01-2021&lt;/TD&gt;&lt;TD&gt;15-02-2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;15-01-2021&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 3 - CalendarTable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CalendarTable Date column is related with CustomerTable Created date&amp;nbsp;&lt;/P&gt;&lt;P&gt;Release Table versioncolumn is related with CustomerTable&amp;nbsp;OpenVersion column&lt;/P&gt;&lt;P&gt;I have Release Version slicer which is selected to 50&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requirement&lt;/P&gt;&lt;P&gt;I want to count the records of customer table where createddate &amp;lt; release 50 startdate and resolveddate &amp;gt; release 50 package date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can add filter for createddate &amp;lt; r50 startdate like count(customer[ticket], calendar[date] &amp;lt; r50 startdate) but since there is no relation with resolved date I can add anything for resolved date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ANy suggestion how to do that? Do I need to create some new relation?&lt;/P&gt;&lt;P&gt;I want to find the number of records for&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2021 10:58:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-all-Records-of-a-table-using-some-condition-depending-on/m-p/1858049#M39787</guid>
      <dc:creator>saurabh1484</dc:creator>
      <dc:date>2021-05-22T10:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count all Records of a table using some condition depending on slicer value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-all-Records-of-a-table-using-some-condition-depending-on/m-p/1858052#M39788</link>
      <description>&lt;P&gt;Just go with COUNTROWS(FILTER(yourtable,yourcondition))&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2021 11:11:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-all-Records-of-a-table-using-some-condition-depending-on/m-p/1858052#M39788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-22T11:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count all Records of a table using some condition depending on slicer value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-all-Records-of-a-table-using-some-condition-depending-on/m-p/1858056#M39789</link>
      <description>&lt;P&gt;I think I don't understand fully your issue. If you want to use a different date to relate with calendar for a certain measure, you should have an inactive relationship between dates and use CALCULATE(..., USERELATIONSHIP('Date' [Date], ticket[resolved Date])) or something similar&lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2021 11:18:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-all-Records-of-a-table-using-some-condition-depending-on/m-p/1858056#M39789</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-22T11:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count all Records of a table using some condition depending on slicer value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-all-Records-of-a-table-using-some-condition-depending-on/m-p/1858130#M39791</link>
      <description>&lt;P&gt;This will not work for me.&lt;/P&gt;&lt;P&gt;My understanding and requirement is&lt;/P&gt;&lt;P&gt;1. User set Slicer to Release 50.&lt;BR /&gt;2. Release 50 start date is 1 Jan 2021 and end date is 31 Jan 2021 {From Release table}.&lt;BR /&gt;3. Since there is a relation bewteen release table and customer table on the basis of version, customer table is filtered to show records where openversion is 50.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However my Requirement is to find records from unfiltered Customer table where createddate &amp;lt; 1 Jan 2021 and (resolved date &amp;gt; 31 Jan 2021 or Blank) which should return 2 records.&lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2021 12:57:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-all-Records-of-a-table-using-some-condition-depending-on/m-p/1858130#M39791</guid>
      <dc:creator>saurabh1484</dc:creator>
      <dc:date>2021-05-22T12:57:53Z</dc:date>
    </item>
  </channel>
</rss>

