<?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: How do I count rows that consist of dates into a line graph? And possible even make a forecast? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-count-rows-that-consist-of-dates-into-a-line-graph-And/m-p/2689584#M80943</link>
    <description>&lt;P&gt;Create a proper Date table and then create 2 relationships from the Date table to your current table, one linking to the start date and one linking to the recent start date. You can make both relationships inactive.&lt;/P&gt;&lt;P&gt;Create 2 measures like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Num rows using start date = CALCULATE( COUNTROWS( 'Table' ), USERELATIONSHIP( 'Date'[Date], 'Table'[Start date]) )

Num rows using recent start date = CALCULATE( COUNTROWS( 'Table' ), USERELATIONSHIP( 'Date'[Date], 'Table'[Recent start date]) )&lt;/LI-CODE&gt;&lt;P&gt;Now you can put columns from your Date table into a line chart and add the new measures.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Aug 2022 10:50:25 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2022-08-09T10:50:25Z</dc:date>
    <item>
      <title>How do I count rows that consist of dates into a line graph? And possible even make a forecast?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-count-rows-that-consist-of-dates-into-a-line-graph-And/m-p/2687858#M80829</link>
      <description>&lt;P&gt;I would like to have the start date (the amount of the same dates, counting) in a line graph as well as the recent start date (the amcount of the same dates, counting)&lt;/P&gt;&lt;P&gt;For example, in the line graph I would like to have all the dates that relate tot september 2020 in one point of the graph, as well as the other months. Do I make an index column to give the rows a number in order to make the graph? How do I make this graph?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Note: I am new to Power BI and English is not my first language. Thank you in advance.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 16:17:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-count-rows-that-consist-of-dates-into-a-line-graph-And/m-p/2687858#M80829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-08T16:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I count rows that consist of dates into a line graph? And possible even make a forecast?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-count-rows-that-consist-of-dates-into-a-line-graph-And/m-p/2689584#M80943</link>
      <description>&lt;P&gt;Create a proper Date table and then create 2 relationships from the Date table to your current table, one linking to the start date and one linking to the recent start date. You can make both relationships inactive.&lt;/P&gt;&lt;P&gt;Create 2 measures like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Num rows using start date = CALCULATE( COUNTROWS( 'Table' ), USERELATIONSHIP( 'Date'[Date], 'Table'[Start date]) )

Num rows using recent start date = CALCULATE( COUNTROWS( 'Table' ), USERELATIONSHIP( 'Date'[Date], 'Table'[Recent start date]) )&lt;/LI-CODE&gt;&lt;P&gt;Now you can put columns from your Date table into a line chart and add the new measures.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 10:50:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-count-rows-that-consist-of-dates-into-a-line-graph-And/m-p/2689584#M80943</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-08-09T10:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I count rows that consist of dates into a line graph? And possible even make a forecast?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-count-rows-that-consist-of-dates-into-a-line-graph-And/m-p/2694487#M81235</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition to&amp;nbsp;&lt;SPAN&gt;johnt75's reply, you can try CALENDAR() OR CALENDARAUTO() function to create a DimDate table.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DimDate = 
ADDCOLUMNS( CALENDARAUTO() ,"Year",YEAR([Date]),"Month",MONTH([Date]),"MonthName",FORMAT([Date],"MMMM"))&lt;/LI-CODE&gt;&lt;P&gt;Then create relationships and measures as he mentioned above.&lt;/P&gt;&lt;P&gt;Result is as below.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 08:18:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-count-rows-that-consist-of-dates-into-a-line-graph-And/m-p/2694487#M81235</guid>
      <dc:creator>RicoZhou2</dc:creator>
      <dc:date>2022-08-11T08:18:52Z</dc:date>
    </item>
  </channel>
</rss>

