<?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: To Date trends based on global report filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Date-trends-based-on-global-report-filter/m-p/4393668#M174420</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332082" data-lia-user-login="arnavn961" class="lia-mention lia-mention-user"&gt;arnavn961&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can take :&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;Create a Reporting Month Slicer (Project Selection Screen)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Make sure to sync slicers if you have slicers on different pages or apply this as page level filter if needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; you might have a &lt;STRONG&gt;Date Table&lt;/STRONG&gt; that includes columns like Date, Month, Year, Month-Year, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Make sure the reporting month is used in a slicer, and you have the Month-Year&amp;nbsp;or Monthcolumn from the&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Date Table available for users to select the reporting month.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;Create a Measure to Filter Data Based on Reporting Month&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;This measure will check the selected reporting month from the slicer and only display data up to that&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;month.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Example&amp;nbsp; : Suppose&amp;nbsp;you want to calculate a cost measure, such as &lt;STRONG&gt;Total Cost&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Total Cost Up to Reporting Month = &lt;BR /&gt;&amp;nbsp; &amp;nbsp; VAR ReportingMonth = MAX('ReportingMonth'[Month]) -- Get the selected reporting month&lt;BR /&gt;&amp;nbsp; &amp;nbsp; RETURN&lt;BR /&gt;&amp;nbsp; &amp;nbsp; CALCULATE(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; SUM('CostData'[Cost]), -- Sum of cost data&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'Date'[Month] &amp;lt;= ReportingMonth -- Filter data for months less than or equal to the reporting month&lt;BR /&gt;&amp;nbsp; &amp;nbsp; )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3&amp;nbsp;Handle Slicers and Filters Effectively :&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;If you're using multiple slicers (e.g., project, cost type, etc.), be sure that your measures are also accounting&amp;nbsp; &amp;nbsp;for those selections. Hence I would recommend to create measure accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this help.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Did I answer your query ? Mark this as solution if this helps, kudos are appreciated.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;/P&gt;
&lt;P&gt;Neeraj&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2025 07:15:02 GMT</pubDate>
    <dc:creator>divyed</dc:creator>
    <dc:date>2025-02-04T07:15:02Z</dc:date>
    <item>
      <title>To Date trends based on global report filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Date-trends-based-on-global-report-filter/m-p/4393445#M174410</link>
      <description>&lt;P&gt;Hey guys,&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I'm designing a dashboard in Power BI for a mining company. I have several tabs within that dashboard, one for a project summary, one for cost performance, one for schedule performance, etc. I will be building in a project selection screen at the start of the dashboard, which allows the user to filter the visuals in each tab to represent a particular project and data from or up to a particular reporting month for that project. Id like to create a measure that :&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Filters a visual with months on its X-axis to show data only up to the reporting month chosen in the project selection screen, e.g. if my date slicer is set to March 2025, I'd like the monthly cost values for each month up to March 2025 to be visible in the visual for that page. Note that the month selected would not necessarily be the latest month within the data.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 04 Feb 2025 04:58:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Date-trends-based-on-global-report-filter/m-p/4393445#M174410</guid>
      <dc:creator>arnavn961</dc:creator>
      <dc:date>2025-02-04T04:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: To Date trends based on global report filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Date-trends-based-on-global-report-filter/m-p/4393476#M174411</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332082" data-lia-user-login="arnavn961" class="lia-mention lia-mention-user"&gt;arnavn961&lt;/a&gt;&amp;nbsp;First create a date table&lt;/P&gt;
&lt;P&gt;DateTable = CALENDAR(MIN(YourData[Date]), MAX(YourData[Date]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create the Measure:&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;FilteredCost = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(YourData[Cost]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL(YourData),&lt;BR /&gt;YourData[Date] &amp;lt;= MAX(DateTable[Date])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add a slicer to your report.&lt;BR /&gt;Use the Date column from the DateTable in the slicer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add a visual (e.g., line chart) to your report.&lt;BR /&gt;Use the Date column from the DateTable on the X-axis.&lt;BR /&gt;Use the FilteredCost measure for the values.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 05:29:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Date-trends-based-on-global-report-filter/m-p/4393476#M174411</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-02-04T05:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: To Date trends based on global report filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Date-trends-based-on-global-report-filter/m-p/4393569#M174414</link>
      <description>&lt;P&gt;That would work if the latest month in my data was the selected month in the slicer, but the max value in my date column could go to a couple of years later than the selected date as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 06:20:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Date-trends-based-on-global-report-filter/m-p/4393569#M174414</guid>
      <dc:creator>arnavn961</dc:creator>
      <dc:date>2025-02-04T06:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: To Date trends based on global report filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Date-trends-based-on-global-report-filter/m-p/4393668#M174420</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332082" data-lia-user-login="arnavn961" class="lia-mention lia-mention-user"&gt;arnavn961&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can take :&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;Create a Reporting Month Slicer (Project Selection Screen)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Make sure to sync slicers if you have slicers on different pages or apply this as page level filter if needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; you might have a &lt;STRONG&gt;Date Table&lt;/STRONG&gt; that includes columns like Date, Month, Year, Month-Year, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Make sure the reporting month is used in a slicer, and you have the Month-Year&amp;nbsp;or Monthcolumn from the&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Date Table available for users to select the reporting month.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;Create a Measure to Filter Data Based on Reporting Month&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;This measure will check the selected reporting month from the slicer and only display data up to that&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;month.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Example&amp;nbsp; : Suppose&amp;nbsp;you want to calculate a cost measure, such as &lt;STRONG&gt;Total Cost&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Total Cost Up to Reporting Month = &lt;BR /&gt;&amp;nbsp; &amp;nbsp; VAR ReportingMonth = MAX('ReportingMonth'[Month]) -- Get the selected reporting month&lt;BR /&gt;&amp;nbsp; &amp;nbsp; RETURN&lt;BR /&gt;&amp;nbsp; &amp;nbsp; CALCULATE(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; SUM('CostData'[Cost]), -- Sum of cost data&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'Date'[Month] &amp;lt;= ReportingMonth -- Filter data for months less than or equal to the reporting month&lt;BR /&gt;&amp;nbsp; &amp;nbsp; )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3&amp;nbsp;Handle Slicers and Filters Effectively :&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;If you're using multiple slicers (e.g., project, cost type, etc.), be sure that your measures are also accounting&amp;nbsp; &amp;nbsp;for those selections. Hence I would recommend to create measure accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this help.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Did I answer your query ? Mark this as solution if this helps, kudos are appreciated.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;/P&gt;
&lt;P&gt;Neeraj&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 07:15:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Date-trends-based-on-global-report-filter/m-p/4393668#M174420</guid>
      <dc:creator>divyed</dc:creator>
      <dc:date>2025-02-04T07:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: To Date trends based on global report filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Date-trends-based-on-global-report-filter/m-p/4416992#M175395</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332082" data-lia-user-login="arnavn961" class="lia-mention lia-mention-user"&gt;arnavn961&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask if you have gotten this issue resolved? If it is solved, please share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If it is not resolved, I hope you will provide the full .pbix file via OneDrive or SharePoint. Please be careful to remove all sensitive information and we will do our best to provide ideas for your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fen Ling,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 05:48:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Date-trends-based-on-global-report-filter/m-p/4416992#M175395</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-19T05:48:32Z</dc:date>
    </item>
  </channel>
</rss>

