<?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: Rolling revenu up till selected month shown in Graph in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-revenu-up-till-selected-month-shown-in-Graph/m-p/2347133#M59394</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="266357" data-lia-user-login="DelVosa" class="lia-mention lia-mention-user"&gt;DelVosa&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try to create a measure like below and use the month from fact table as x-axis.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =

var _max = MAX('Date'[Date])
return
CALCULATE(SUM(financials[ Sales]),DATESYTD(('Date'[Date]),"8/31"),'Date'[Date]&amp;lt;=_max)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Feb 2022 08:52:51 GMT</pubDate>
    <dc:creator>V-lianl-msft</dc:creator>
    <dc:date>2022-02-18T08:52:51Z</dc:date>
    <item>
      <title>Rolling revenu up till selected month shown in Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-revenu-up-till-selected-month-shown-in-Graph/m-p/2323303#M58070</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling to display the rolling monthly revenue by clicking a filter linked to the months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the period filter (right top) I focus on the results of that specific month and the year to date results. The monthly and ytd revenue is calculated as follows and works fine (red circle):&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rev = &lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'AS$Projects'[Opbrengsten]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rev ytd = &lt;/SPAN&gt;&lt;SPAN&gt;TOTALYTD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Rev]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DatumTabel[DatumParameter]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;all&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DatumTabel[DatumParameter]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"31/08"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I now want to show the rolling revenue mtd and ytd in a graph (yellow circle) based on the selection of the month.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It works when I disable the interaction between the month filter and the graph and I manually select the months I want to show. But this is static! When the user swithes the filter to NOV, the graph doesn't change off course. I want this to be dynamic.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I would like to have the visualization of the rolling revenue linked to the filter. If I click Dec, i would like the graph to show Sep-Dec. If I click Nov, I would like to see Sep-Nov&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is there a way to do this?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;By clicking one filter i would like to see the MTD results, YTD results, rolling MTD up till that month and rolling YTD of the month.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;One important remark: my year starts on first of September and not 01/01&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jordy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 14:33:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-revenu-up-till-selected-month-shown-in-Graph/m-p/2323303#M58070</guid>
      <dc:creator>DelVosa</dc:creator>
      <dc:date>2022-02-07T14:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling revenu up till selected month shown in Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-revenu-up-till-selected-month-shown-in-Graph/m-p/2323375#M58075</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="266357" data-lia-user-login="DelVosa" class="lia-mention lia-mention-user"&gt;DelVosa&lt;/a&gt; , if you want measure switch, You can use measure slicer &lt;/P&gt;
&lt;P&gt;measure slicer &lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=b9352Vxuj-M" target="_blank"&gt;https://www.youtube.com/watch?v=b9352Vxuj-M&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/500115" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/500115&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slicer-parameter-table-pattern" target="_blank"&gt;https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slicer-parameter-table-pattern&lt;/A&gt; &lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=vlnx7QUVYME" target="_blank"&gt;https://www.youtube.com/watch?v=vlnx7QUVYME&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if you want to changes axis column, then you have use bookmarks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Axis Slicer &lt;BR /&gt;Dynamically change chart axis in Power BI &lt;BR /&gt;bookmark -https://blog.crossjoin.co.uk/2018/04/20/dynamically-changing-a-chart-axis-in-power-bi-using-bookmarks-and-buttons/ &lt;BR /&gt;&lt;A href="https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive" target="_blank"&gt;https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 15:11:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-revenu-up-till-selected-month-shown-in-Graph/m-p/2323375#M58075</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-07T15:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling revenu up till selected month shown in Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-revenu-up-till-selected-month-shown-in-Graph/m-p/2347133#M59394</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="266357" data-lia-user-login="DelVosa" class="lia-mention lia-mention-user"&gt;DelVosa&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try to create a measure like below and use the month from fact table as x-axis.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =

var _max = MAX('Date'[Date])
return
CALCULATE(SUM(financials[ Sales]),DATESYTD(('Date'[Date]),"8/31"),'Date'[Date]&amp;lt;=_max)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 08:52:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-revenu-up-till-selected-month-shown-in-Graph/m-p/2347133#M59394</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2022-02-18T08:52:51Z</dc:date>
    </item>
  </channel>
</rss>

