<?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: Countrows regardless of date filter and relationship in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-regardless-of-date-filter-and-relationship/m-p/1187199#M18695</link>
    <description>&lt;P&gt;The following measure counts the orders regardless the date relationship:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;COUNTX(FILTER(ALL(),tblOrder[Status]=16),tblOrder[Order Number])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But it also disables the item master relationship.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How can I solve that?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 28 Jun 2020 12:05:02 GMT</pubDate>
    <dc:creator>joshua1990</dc:creator>
    <dc:date>2020-06-28T12:05:02Z</dc:date>
    <item>
      <title>Countrows regardless of date filter and relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-regardless-of-date-filter-and-relationship/m-p/1186570#M18665</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;I have 3 tables that are linked with a date key or an item key.&lt;/P&gt;&lt;P&gt;The structure is like:&lt;/P&gt;&lt;P&gt;ItemMaster&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Item (key)&lt;/TD&gt;&lt;TD&gt;Description&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Keys&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Tube&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tblOrderState&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Item (key)&lt;/TD&gt;&lt;TD&gt;Order&lt;/TD&gt;&lt;TD&gt;State&lt;/TD&gt;&lt;TD&gt;Date (key)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;A2&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;01.01.2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;A3&lt;/TD&gt;&lt;TD&gt;95&lt;/TD&gt;&lt;TD&gt;01.02.2020&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the tblOrderState is linked with the calendar table.&lt;/P&gt;&lt;P&gt;On the page is a filter for the whole page for the current week.&lt;/P&gt;&lt;P&gt;Now I need to determine the number of orders that have the "50" regardless of the date.&lt;/P&gt;&lt;P&gt;How would you do that?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jun 2020 14:18:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-regardless-of-date-filter-and-relationship/m-p/1186570#M18665</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2020-06-27T14:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows regardless of date filter and relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-regardless-of-date-filter-and-relationship/m-p/1186601#M18666</link>
      <description>&lt;P&gt;Can you show how you are slicing your data? you could try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure =
CALCULATE (
    COUNTROWS ( tblOrderState ),
    FILTER ( ALL ( tblOrderState[OrderState] ), tblOrderState[OrderState] = 50 )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jun 2020 15:00:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-regardless-of-date-filter-and-relationship/m-p/1186601#M18666</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2020-06-27T15:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows regardless of date filter and relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-regardless-of-date-filter-and-relationship/m-p/1187085#M18690</link>
      <description>&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;It is not working since I am using a filter for the week on the whole page.&lt;/P&gt;&lt;P&gt;Filter on this page: week&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I cut the active date relationship?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 08:25:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-regardless-of-date-filter-and-relationship/m-p/1187085#M18690</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2020-06-28T08:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows regardless of date filter and relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-regardless-of-date-filter-and-relationship/m-p/1187199#M18695</link>
      <description>&lt;P&gt;The following measure counts the orders regardless the date relationship:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;COUNTX(FILTER(ALL(),tblOrder[Status]=16),tblOrder[Order Number])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But it also disables the item master relationship.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How can I solve that?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 28 Jun 2020 12:05:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-regardless-of-date-filter-and-relationship/m-p/1187199#M18695</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2020-06-28T12:05:02Z</dc:date>
    </item>
  </channel>
</rss>

