<?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: Visualise Amount over Months between dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualise-Amount-over-Months-between-dates/m-p/4172980#M165732</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="626251" data-lia-user-login="JB_AT" class="lia-mention lia-mention-user"&gt;JB_AT&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It's been a while since I heard back from you and I wanted to follow up. Have you had a chance to try the solutions that have been offered? If the issue has been resolved, can you mark the post as resolved? If you're still experiencing challenges, please feel free to let us know and we'll be happy to continue to help!&lt;BR /&gt;Looking forward to your response!&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 06:50:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-09-25T06:50:27Z</dc:date>
    <item>
      <title>Visualise Amount over Months between dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualise-Amount-over-Months-between-dates/m-p/4142657#M164643</link>
      <description>&lt;P&gt;I have a table with the below data. StartDate has an active relationship with Calendar[Date] column&lt;BR /&gt;&lt;BR /&gt;I want to visualise the Monthly Revenue in a matrix/table where the Month and Year columns of the Calendar table are being used where the startdate and enddate are valid. So from Feb 2024 to Feb 2025. I need the Total column to sum up based on whatever context is in the visual.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 11:38:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualise-Amount-over-Months-between-dates/m-p/4142657#M164643</guid>
      <dc:creator>JB_AT</dc:creator>
      <dc:date>2024-09-10T11:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Visualise Amount over Months between dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualise-Amount-over-Months-between-dates/m-p/4142810#M164648</link>
      <description>&lt;P&gt;You need to create a DAX measure that will calculate the monthly revenue between the StartDate and EndDate. This measure will be filtered based on the context of the year and month columns from your calendar table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a Date Filter Measure&lt;/P&gt;&lt;P&gt;IsDateValid =&lt;BR /&gt;VAR SelectedDate = MAX(Calendar[Date])&lt;BR /&gt;RETURN&lt;BR /&gt;IF(SELECTEDVALUE(Table[StartDate]) &amp;lt;= SelectedDate &amp;amp;&amp;amp; SelectedValue(Table[EndDate]) &amp;gt;= SelectedDate, 1, 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a Monthly Revenue Measure&lt;/P&gt;&lt;P&gt;MonthlyRevenue =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(Table[Revenue]),&lt;BR /&gt;FILTER(&lt;BR /&gt;Calendar,&lt;BR /&gt;Calendar[Date] &amp;gt;= SELECTEDVALUE(Table[StartDate]) &amp;amp;&amp;amp;&lt;BR /&gt;Calendar[Date] &amp;lt;= SELECTEDVALUE(Table[EndDate])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a &lt;STRONG&gt;Matrix visual&lt;/STRONG&gt; to your report.&lt;/LI&gt;&lt;LI&gt;Drag the &lt;STRONG&gt;Year&lt;/STRONG&gt; and &lt;STRONG&gt;Month&lt;/STRONG&gt; columns from the Calendar table into the &lt;STRONG&gt;Rows&lt;/STRONG&gt; section of the matrix.&lt;/LI&gt;&lt;LI&gt;Drag your newly created MonthlyRevenue measure into the &lt;STRONG&gt;Values&lt;/STRONG&gt; section.&lt;/LI&gt;&lt;LI&gt;Ensure the &lt;STRONG&gt;StartDate&lt;/STRONG&gt; and &lt;STRONG&gt;EndDate&lt;/STRONG&gt; are used as filters on your report to show data between the valid dates.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;To display the total at the bottom of the matrix, ensure the &lt;STRONG&gt;Totals&lt;/STRONG&gt; option is enabled. You can manage totals in the format settings of the matrix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The matrix will automatically calculate totals based on the visible months and years due to the context in the visual. No additional logic for the total is needed since Power BI will sum the visible rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If you want to calculate a specific kind of total outside the regular summing process, you may need to modify the MonthlyRevenue measure to include additional filtering or aggregations based on your needs.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This approach will give you a dynamic table/matrix visual that calculates and sums up monthly revenues based on the given start and end dates. Let me know if you need further clarification!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 12:49:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualise-Amount-over-Months-between-dates/m-p/4142810#M164648</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2024-09-10T12:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Visualise Amount over Months between dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualise-Amount-over-Months-between-dates/m-p/4172980#M165732</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="626251" data-lia-user-login="JB_AT" class="lia-mention lia-mention-user"&gt;JB_AT&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It's been a while since I heard back from you and I wanted to follow up. Have you had a chance to try the solutions that have been offered? If the issue has been resolved, can you mark the post as resolved? If you're still experiencing challenges, please feel free to let us know and we'll be happy to continue to help!&lt;BR /&gt;Looking forward to your response!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 06:50:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualise-Amount-over-Months-between-dates/m-p/4172980#M165732</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-25T06:50:27Z</dc:date>
    </item>
  </channel>
</rss>

