<?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 rows in a fact table based on a column and a column in a dat table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4617330#M176708</link>
    <description>&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;COUNTROWS (table),&lt;/P&gt;&lt;P&gt;Table[status] = 1,&lt;/P&gt;&lt;P&gt;Date[Year] = 2023&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;This assumes the date dimension is joined to the main table on ticket's close date/month. Otherwise will need a inactive relation to close date, and use USERELATIONSHIP to activate it in the measure&lt;/P&gt;</description>
    <pubDate>Thu, 20 Mar 2025 00:23:04 GMT</pubDate>
    <dc:creator>Deku</dc:creator>
    <dc:date>2025-03-20T00:23:04Z</dc:date>
    <item>
      <title>Count rows in a fact table based on a column and a column in a dat table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4617253#M176697</link>
      <description>&lt;P&gt;have an IT helpdesk table that has one of its colums as Status(closed as ID 1 , open as ID 2, Inprogress as ID 3).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a date table with Year(2020, 2021, 2022, 2023), Qtr and month columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate how many Closed tickets we have based on the ticket status and year 2023.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried CALCULATE(COUNT(table[status]), FILTER (Table, Table[status]] = 1 &amp;amp;&amp;amp; Date[Year] = 3 but it's not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My model looks okay, it's all 1 to many relationships.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone pls help me and also explain the concept as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 22:17:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4617253#M176697</guid>
      <dc:creator>Ojesim</dc:creator>
      <dc:date>2025-03-19T22:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows in a fact table based on a column and a column in a dat table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4617330#M176708</link>
      <description>&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;COUNTROWS (table),&lt;/P&gt;&lt;P&gt;Table[status] = 1,&lt;/P&gt;&lt;P&gt;Date[Year] = 2023&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;This assumes the date dimension is joined to the main table on ticket's close date/month. Otherwise will need a inactive relation to close date, and use USERELATIONSHIP to activate it in the measure&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 00:23:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4617330#M176708</guid>
      <dc:creator>Deku</dc:creator>
      <dc:date>2025-03-20T00:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows in a fact table based on a column and a column in a dat table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4617343#M176709</link>
      <description>&lt;LI-CODE lang="markup"&gt;I created a date table with Year(2020, 2021, 2022, 2023), Qtr and month columns.&lt;/LI-CODE&gt;
&lt;P&gt;a date table needs a date column.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 00:20:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4617343#M176709</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-03-20T00:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows in a fact table based on a column and a column in a dat table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4617614#M176719</link>
      <description>&lt;P&gt;It has a date column which is connected to the date column on the Fact table&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 06:51:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4617614#M176719</guid>
      <dc:creator>Ojesim</dc:creator>
      <dc:date>2025-03-20T06:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows in a fact table based on a column and a column in a dat table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4617615#M176720</link>
      <description>&lt;P&gt;Thank you, when I do this, it doesn't work, says my date table is not an actual table&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 06:54:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4617615#M176720</guid>
      <dc:creator>Ojesim</dc:creator>
      <dc:date>2025-03-20T06:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows in a fact table based on a column and a column in a dat table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4617642#M176723</link>
      <description>&lt;P&gt;Can we see some examples data to get a better idea of how to help&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 07:27:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4617642#M176723</guid>
      <dc:creator>Deku</dc:creator>
      <dc:date>2025-03-20T07:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows in a fact table based on a column and a column in a dat table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4618650#M176755</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;These are screenshots of some columns in the data, not sure what i am doing wrong please. Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 17:06:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4618650#M176755</guid>
      <dc:creator>Ojesim</dc:creator>
      <dc:date>2025-03-20T17:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows in a fact table based on a column and a column in a dat table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4618701#M176758</link>
      <description>&lt;P&gt;I found where the error is. Your solution is correct&amp;nbsp; thanks for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 17:39:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4618701#M176758</guid>
      <dc:creator>Ojesim</dc:creator>
      <dc:date>2025-03-20T17:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows in a fact table based on a column and a column in a dat table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4618867#M176770</link>
      <description>&lt;P&gt;Not sure your first images has uploaded correctly&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 21:31:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-in-a-fact-table-based-on-a-column-and-a-column-in-a/m-p/4618867#M176770</guid>
      <dc:creator>Deku</dc:creator>
      <dc:date>2025-03-20T21:31:49Z</dc:date>
    </item>
  </channel>
</rss>

