<?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 using date problem in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-using-date-problem/m-p/4851770#M185169</link>
    <description>&lt;P&gt;Your relationship is wrong. You linked Calendar to Created Date, but Closed Date needs its own relationship.&lt;/P&gt;
&lt;P&gt;Create an inactive relationship from Calendar[Date] to your tickets table[Closed Date]. Then use this measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Closed Tickets =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS(Tickets),&lt;BR /&gt;USERELATIONSHIP(Calendar[Date], Tickets[Closed Date])&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use this measure in your trend line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this answer helped, please click Kudos or mark as Solution.&lt;BR /&gt;-Kedar&lt;BR /&gt;LinkedIn: &lt;A href="https://www.linkedin.com/in/kedar-pande" target="_blank"&gt;https://www.linkedin.com/in/kedar-pande&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Oct 2025 10:53:54 GMT</pubDate>
    <dc:creator>Kedar_Pande</dc:creator>
    <dc:date>2025-10-16T10:53:54Z</dc:date>
    <item>
      <title>COUNTROWS using date problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-using-date-problem/m-p/4851402#M185155</link>
      <description>&lt;P&gt;I’m trying to create a weekly trend that tracks my job’s issue tickets — specifically the ‘Created Ticket’ and ‘Closed Ticket’ for that week.&lt;BR /&gt;I’ve successfully created a measure for the ‘Created Ticket’, but I’m unable to use the same formula to create the ‘Closed Ticket’ measure.&lt;BR /&gt;&lt;BR /&gt;For background, I have two tables: the First is my calendar table, and the Second contains issue titles, details, created dates, and closed dates for the tickets.&lt;BR /&gt;I’ve created a relationship (One-to-Many) from the first table’s ‘Date’ column to the second table’s ‘Created Ticket’ column.&lt;BR /&gt;&lt;BR /&gt;Here’s what my trend looks like right now:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The ‘Closed Issue’ trend is displayed incorrectly; it should show a higher value and on the most X-axis.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 06:19:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-using-date-problem/m-p/4851402#M185155</guid>
      <dc:creator>Dnssdrs</dc:creator>
      <dc:date>2025-10-16T06:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS using date problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-using-date-problem/m-p/4851554#M185161</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1347360" data-lia-user-login="Dnssdrs" class="lia-mention lia-mention-user"&gt;Dnssdrs&lt;/a&gt;&amp;nbsp;Hi!&lt;/P&gt;
&lt;P&gt;Which are your measures? Have you tried with:&lt;/P&gt;
&lt;P&gt;Closed Tickets = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS(Tickets),&lt;BR /&gt;USERELATIONSHIP(Calendar[Date], Tickets[Closed Date])&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also try with:&lt;/P&gt;
&lt;P&gt;Closed Tickets = &lt;BR /&gt;COUNTROWS(&lt;BR /&gt;FILTER(&lt;BR /&gt;Tickets,&lt;BR /&gt;Tickets[Closed Date] &amp;gt;= MIN(Calendar[Date]) &amp;amp;&amp;amp;&lt;BR /&gt;Tickets[Closed Date] &amp;lt;= MAX(Calendar[Date])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BBF&lt;/P&gt;
&lt;DIV style="font-family: Segoe UI, sans-serif; font-size: 14px; line-height: 1.2;"&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; &lt;STRONG&gt;Did I answer your question?&lt;/STRONG&gt; Mark my post as a solution! &lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; Kudos are appreciated &lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":fire:"&gt;🔥&lt;/span&gt; Proud to be a Super User!&lt;/STRONG&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt; &lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Oct 2025 08:49:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-using-date-problem/m-p/4851554#M185161</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2025-10-16T08:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS using date problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-using-date-problem/m-p/4851770#M185169</link>
      <description>&lt;P&gt;Your relationship is wrong. You linked Calendar to Created Date, but Closed Date needs its own relationship.&lt;/P&gt;
&lt;P&gt;Create an inactive relationship from Calendar[Date] to your tickets table[Closed Date]. Then use this measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Closed Tickets =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS(Tickets),&lt;BR /&gt;USERELATIONSHIP(Calendar[Date], Tickets[Closed Date])&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use this measure in your trend line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this answer helped, please click Kudos or mark as Solution.&lt;BR /&gt;-Kedar&lt;BR /&gt;LinkedIn: &lt;A href="https://www.linkedin.com/in/kedar-pande" target="_blank"&gt;https://www.linkedin.com/in/kedar-pande&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 10:53:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-using-date-problem/m-p/4851770#M185169</guid>
      <dc:creator>Kedar_Pande</dc:creator>
      <dc:date>2025-10-16T10:53:54Z</dc:date>
    </item>
  </channel>
</rss>

