<?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: Income Statement that shows Current Month and YTD columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Income-Statement-that-shows-Current-Month-and-YTD-columns/m-p/3303371#M123303</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="205599" data-lia-user-login="H_insight" class="lia-mention lia-mention-user"&gt;H_insight&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your sample pbix file first!&lt;/P&gt;
&lt;P&gt;According to your description, you want to create a custom matrix in Power BI Desktop.&lt;/P&gt;
&lt;P&gt;For this need , you need to create a dimension table like this:(the index column is used for sorting the Title column)&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;And then you can put the fields on the visual and we can get this :&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;For your needs, I don't know your specific calculation logic, you can use the MAX() function to get the column title, and then use the IF() or SWITCH() function to return the corresponding value according to different situations to achieve your needs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jun 2023 01:40:20 GMT</pubDate>
    <dc:creator>v-yueyunzh-msft</dc:creator>
    <dc:date>2023-06-27T01:40:20Z</dc:date>
    <item>
      <title>Income Statement that shows Current Month and YTD columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Income-Statement-that-shows-Current-Month-and-YTD-columns/m-p/3301024#M123125</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am aiming to create the following table or matrix in Power BI and would greatly appreciate your assistance. Depending on the chosen Year and Month, I would like to show In Month / YTS &amp;amp; Full Year values. The column headers, need to show Revenue vs Expenses dynamically and display the corresponding values. Below is the required output layout.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Attached sample model, where&amp;nbsp;Scenario's means ( BU = Budget, AC = Actual, FC = Forcast).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A title="Sample File" href="https://we.tl/t-1p2wX08Nkf" target="_self"&gt;Sample File&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2023 08:31:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Income-Statement-that-shows-Current-Month-and-YTD-columns/m-p/3301024#M123125</guid>
      <dc:creator>H_insight</dc:creator>
      <dc:date>2023-06-25T08:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Income Statement that shows Current Month and YTD columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Income-Statement-that-shows-Current-Month-and-YTD-columns/m-p/3303371#M123303</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="205599" data-lia-user-login="H_insight" class="lia-mention lia-mention-user"&gt;H_insight&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your sample pbix file first!&lt;/P&gt;
&lt;P&gt;According to your description, you want to create a custom matrix in Power BI Desktop.&lt;/P&gt;
&lt;P&gt;For this need , you need to create a dimension table like this:(the index column is used for sorting the Title column)&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;And then you can put the fields on the visual and we can get this :&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;For your needs, I don't know your specific calculation logic, you can use the MAX() function to get the column title, and then use the IF() or SWITCH() function to return the corresponding value according to different situations to achieve your needs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 01:40:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Income-Statement-that-shows-Current-Month-and-YTD-columns/m-p/3303371#M123303</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-06-27T01:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Income Statement that shows Current Month and YTD columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Income-Statement-that-shows-Current-Month-and-YTD-columns/m-p/3303900#M123344</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433015" data-lia-user-login="v-yueyunzh-msft" class="lia-mention lia-mention-user"&gt;v-yueyunzh-msft&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Out of interest, what about the values and variance? do I need a special Dax to achieve it?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 09:18:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Income-Statement-that-shows-Current-Month-and-YTD-columns/m-p/3303900#M123344</guid>
      <dc:creator>H_insight</dc:creator>
      <dc:date>2023-06-27T09:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Income Statement that shows Current Month and YTD columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Income-Statement-that-shows-Current-Month-and-YTD-columns/m-p/4201919#M166697</link>
      <description>&lt;P&gt;Can you write 1 of the switch measures ? Also&amp;nbsp;Can you try to achieve this with a calculation column to reduce the Dax measures?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 16:35:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Income-Statement-that-shows-Current-Month-and-YTD-columns/m-p/4201919#M166697</guid>
      <dc:creator>Ferrol40</dc:creator>
      <dc:date>2024-09-30T16:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Income Statement that shows Current Month and YTD columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Income-Statement-that-shows-Current-Month-and-YTD-columns/m-p/5225363#M188223</link>
      <description>&lt;P class=""&gt;The SWITCH + dimension table approach is the standard pattern for this layout. One thing to add for the multi-scenario version (BU/AC/FC): you need one SWITCH measure per scenario per time period, so for 3 scenarios × 3 time periods = 9 measures minimum. Add variance columns and it doubles.&lt;/P&gt;&lt;P class=""&gt;Pattern for the YTD with scenario filter:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;PRE&gt;YTD Actual =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(FactTable[Amount]),&lt;BR /&gt;FactTable[Scenario] = "AC",&lt;BR /&gt;DATESYTD('Date'[Date])&lt;BR /&gt;)&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class=""&gt;Replicate for BU and FC, then add variance measures between them.&lt;/P&gt;&lt;P class=""&gt;For Finance teams where this matrix needs to stay flexible (stakeholders switching between In Month / QTD / YTD themselves), &lt;STRONG&gt;Flexa Tables&lt;/STRONG&gt; on AppSource handles period switching as built-in buttons&amp;nbsp; no additional measures needed&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2026 04:23:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Income-Statement-that-shows-Current-Month-and-YTD-columns/m-p/5225363#M188223</guid>
      <dc:creator>PBIdashboards</dc:creator>
      <dc:date>2026-06-22T04:23:48Z</dc:date>
    </item>
  </channel>
</rss>

