<?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: Filters-DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filters-DAX/m-p/2574644#M73661</link>
    <description>&lt;P&gt;I seems you can change your verbose measure to&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Active rooms = COUNTROWS( FILTER( 'Table_name', NOT 'Table_name'[Inactive] ) )&lt;/LI-CODE&gt;
&lt;P&gt;From your description, it's inferred that&amp;nbsp;'Table_name' table is already filtered by date filter somewhere. Above all, DAX is not Excel worksheet formula; any discussion without date model is nothing but giberrish.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2022 09:18:24 GMT</pubDate>
    <dc:creator>CNENFRNL</dc:creator>
    <dc:date>2022-06-13T09:18:24Z</dc:date>
    <item>
      <title>Filters-DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filters-DAX/m-p/2573663#M73623</link>
      <description>&lt;P&gt;Hi Everyone,&lt;BR /&gt;I will try to make my query short.&lt;BR /&gt;So, we have this table on the server which has got the details of the rooms in each facilities and has a column called 'inactive' (boolean) to let us know if the room is active or not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To know the occupancy rate, I am dividing the total occupied numbers by the total active rooms, and to calculate total active rooms&amp;nbsp;I am using the below formula:&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;Active rooms = &lt;/SPAN&gt;&lt;SPAN&gt;COUNTAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;FONT color="#0000FF"&gt;Table_name&lt;/FONT&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;FONT color="#0000FF"&gt;Table_name'&lt;/FONT&gt;[Inactive]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;FALSE&lt;/SPAN&gt;&lt;SPAN&gt;()),&lt;/SPAN&gt;&lt;SPAN&gt;[Inactive]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;It's working totally fine but my question is, as the number of active rooms changes occassionally, how do I capture the total active rooms that were active in each day?&lt;BR /&gt;&lt;BR /&gt;For eg: if my total occupancy number is 100 today and active rooms are 110, then occupancy rate will be 90.9%, which is fine for today. But if I want to see the occupancy rate for yesterday, where occupied numbers were 100 but the active rooms were 108 (let's say 2 of the rooms were in renovation), here the occupancy rate should be 92.6%. But my formula is calculating the occupancy % = 100 divided by 110 instead of 100 divided by 108. It's taking the current active room numbers. How do I solve this? The active room numbers keep changing on the server and there's no date or anything to let us know how many rooms were active in a particular day.&lt;BR /&gt;&lt;BR /&gt;Sorry for making it long but I'd really appreciate if anyone can help me to solve this.&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Jun 2022 03:04:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filters-DAX/m-p/2573663#M73623</guid>
      <dc:creator>apanta</dc:creator>
      <dc:date>2022-06-13T03:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Filters-DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filters-DAX/m-p/2574644#M73661</link>
      <description>&lt;P&gt;I seems you can change your verbose measure to&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Active rooms = COUNTROWS( FILTER( 'Table_name', NOT 'Table_name'[Inactive] ) )&lt;/LI-CODE&gt;
&lt;P&gt;From your description, it's inferred that&amp;nbsp;'Table_name' table is already filtered by date filter somewhere. Above all, DAX is not Excel worksheet formula; any discussion without date model is nothing but giberrish.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 09:18:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filters-DAX/m-p/2574644#M73661</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2022-06-13T09:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Filters-DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filters-DAX/m-p/2578961#M73941</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="375501" data-lia-user-login="apanta" class="lia-mention lia-mention-user"&gt;apanta&lt;/a&gt;&amp;nbsp;;&lt;/P&gt;
&lt;P&gt;If you are calculating the number of active rooms per day, naturally you need a date column, so can you share what your data model looks like? What columns?&amp;nbsp; do you want the output to show?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yalan Wu&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 02:58:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filters-DAX/m-p/2578961#M73941</guid>
      <dc:creator>v-yalanwu-msft</dc:creator>
      <dc:date>2022-06-15T02:58:03Z</dc:date>
    </item>
  </channel>
</rss>

