<?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: Show YTD Months in Column (Matrix) based selected Month in Slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-YTD-Months-in-Column-Matrix-based-selected-Month-in-Slicer/m-p/4026932#M159031</link>
    <description>&lt;P&gt;Hi yiruan,&lt;/P&gt;&lt;P&gt;when we used percentage field&amp;nbsp; in sub total just shows sum of percentage,its not show correctly&lt;/P&gt;&lt;P&gt;Show YTD Months in Column (Matrix) based selected Month in Slicer(Updated2) you shared this file example here created margin %=sales/profit as you mentioned formula individually coming correctly but total is wrong because final formula used sumx tried with averagex but not getting correct result&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2024 13:39:23 GMT</pubDate>
    <dc:creator>sanjaymithran</dc:creator>
    <dc:date>2024-07-05T13:39:23Z</dc:date>
    <item>
      <title>Show YTD Months in Column (Matrix) based selected Month in Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-YTD-Months-in-Column-Matrix-based-selected-Month-in-Slicer/m-p/4007231#M156921</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I need to create Matrix visual like below based on Month-Year slicer selection need to display YTD&lt;/P&gt;&lt;P&gt;Ex:1 Slicer&amp;nbsp; selection is Feb-24 then show as below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Ex:2 Slicer selection is&amp;nbsp; Dec-23 then Jan-23 to Dec-23 to show in column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried some logic its working in table but not in Matrix&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 15:23:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-YTD-Months-in-Column-Matrix-based-selected-Month-in-Slicer/m-p/4007231#M156921</guid>
      <dc:creator>sanjaymithran</dc:creator>
      <dc:date>2024-06-24T15:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Show YTD Months in Column (Matrix) based selected Month in Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-YTD-Months-in-Column-Matrix-based-selected-Month-in-Slicer/m-p/4007223#M156923</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I need to create Matrix visual like below based on Month-Year slicer selection need to display YTD&lt;/P&gt;&lt;P&gt;Ex:1 Slicer&amp;nbsp; selection is Feb-24 then show as below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Ex:2 Slicer selection is&amp;nbsp; Dec-23 then Jan-23 to Dec-23 to show in column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried some logic its working in table but not in Matrix&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 15:21:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-YTD-Months-in-Column-Matrix-based-selected-Month-in-Slicer/m-p/4007223#M156923</guid>
      <dc:creator>sanjaymithran</dc:creator>
      <dc:date>2024-06-24T15:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Show YTD Months in Column (Matrix) based selected Month in Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-YTD-Months-in-Column-Matrix-based-selected-Month-in-Slicer/m-p/4008003#M157173</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="598893" data-lia-user-login="sanjaymithran" class="lia-mention lia-mention-user"&gt;sanjaymithran&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can follow the steps below to get it:&lt;/P&gt;
&lt;P&gt;1. Create a separate date dimension table(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;DO NOT&lt;/STRONG&gt;&lt;/FONT&gt; create any relationship with your fact table)&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create a measure as below to get YTD&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;YTD =
VAR _yearmonth =
    SELECTEDVALUE ( 'Date'[YearMonth] )
VAR _year =
    VALUE ( RIGHT ( _yearmonth, 4 ) )
VAR _month =
    SWITCH (
        LEFT ( _yearmonth, 3 ),
        "Jan", 1,
        "Feb", 2,
        "Mar", 3,
        "Apr", 4,
        "May", 5,
        "Jun", 6,
        "Jul", 7,
        "Aug", 8,
        "Sep", 9,
        "Oct", 10,
        "Nov", 11,
        "Dec", 12
    )
RETURN
    CALCULATE (
        SUM ( 'Table'[Value] ),
        FILTER (
            'Table',
            YEAR ( 'Table'[Date] ) = _year
                &amp;amp;&amp;amp; MONTH ( 'Table'[Date] ) &amp;lt;= _month
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 02:02:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-YTD-Months-in-Column-Matrix-based-selected-Month-in-Slicer/m-p/4008003#M157173</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-25T02:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Show YTD Months in Column (Matrix) based selected Month in Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-YTD-Months-in-Column-Matrix-based-selected-Month-in-Slicer/m-p/4008161#M157248</link>
      <description>&lt;P&gt;Hi Yirvuan,&lt;/P&gt;&lt;P&gt;Thanks for your suggesstion, But Sales and Profit is separate measure (Calculated field)&lt;/P&gt;&lt;P&gt;Sales=Price*qty and Profit=selling price- cost price&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sanjay.&lt;/P&gt;&lt;DIV class=""&gt;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-YTD-Months-in-Column-Matrix-based-selected-Month-in-Slicer/m-p/4008003#" target="_blank" rel="noopener"&gt;PREVIEW&lt;/A&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&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&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jun 2024 04:00:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-YTD-Months-in-Column-Matrix-based-selected-Month-in-Slicer/m-p/4008161#M157248</guid>
      <dc:creator>sanjaymithran</dc:creator>
      <dc:date>2024-06-25T04:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Show YTD Months in Column (Matrix) based selected Month in Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-YTD-Months-in-Column-Matrix-based-selected-Month-in-Slicer/m-p/4008334#M157362</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="598893" data-lia-user-login="sanjaymithran" class="lia-mention lia-mention-user"&gt;sanjaymithran&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I updated my sample pbix file(see &lt;EM&gt;&lt;STRONG&gt;the attachment&lt;/STRONG&gt;&lt;/EM&gt;), please check if that is what you want. You can&lt;FONT color="#FF0000"&gt; toggle on&lt;/FONT&gt; the option "&lt;STRONG&gt;&lt;EM&gt;Switch values to rows&lt;/EM&gt;&lt;/STRONG&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;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 06:14:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-YTD-Months-in-Column-Matrix-based-selected-Month-in-Slicer/m-p/4008334#M157362</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-25T06:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Show YTD Months in Column (Matrix) based selected Month in Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-YTD-Months-in-Column-Matrix-based-selected-Month-in-Slicer/m-p/4008737#M157392</link>
      <description>&lt;P&gt;Hi Yiruvan,&lt;/P&gt;&lt;P&gt;This is working fine but column sub total is not displaying,&lt;/P&gt;&lt;P&gt;is there any way apply filter date column only because have 8 measures and each measure has already 100 lines&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 08:48:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-YTD-Months-in-Column-Matrix-based-selected-Month-in-Slicer/m-p/4008737#M157392</guid>
      <dc:creator>sanjaymithran</dc:creator>
      <dc:date>2024-06-25T08:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Show YTD Months in Column (Matrix) based selected Month in Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-YTD-Months-in-Column-Matrix-based-selected-Month-in-Slicer/m-p/4010061#M157767</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="598893" data-lia-user-login="sanjaymithran" class="lia-mention lia-mention-user"&gt;sanjaymithran&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please create another 2 new measures as below and replace the original measure [Sales] and [Profit] on the matrix:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New_Sales = SUMX(VALUES('Table'[Date]),[Sales])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;New_Profit = SUMX(VALUES('Table'[Date]),[Profit])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 01:39:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-YTD-Months-in-Column-Matrix-based-selected-Month-in-Slicer/m-p/4010061#M157767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-26T01:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Show YTD Months in Column (Matrix) based selected Month in Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-YTD-Months-in-Column-Matrix-based-selected-Month-in-Slicer/m-p/4026932#M159031</link>
      <description>&lt;P&gt;Hi yiruan,&lt;/P&gt;&lt;P&gt;when we used percentage field&amp;nbsp; in sub total just shows sum of percentage,its not show correctly&lt;/P&gt;&lt;P&gt;Show YTD Months in Column (Matrix) based selected Month in Slicer(Updated2) you shared this file example here created margin %=sales/profit as you mentioned formula individually coming correctly but total is wrong because final formula used sumx tried with averagex but not getting correct result&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 13:39:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-YTD-Months-in-Column-Matrix-based-selected-Month-in-Slicer/m-p/4026932#M159031</guid>
      <dc:creator>sanjaymithran</dc:creator>
      <dc:date>2024-07-05T13:39:23Z</dc:date>
    </item>
  </channel>
</rss>

