<?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: Need Help in Creating the chart as per explained below in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-in-Creating-the-chart-as-per-explained-below/m-p/4008552#M157380</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;, thanks for your concern about this case. I tried to create a sample data myself based on the user's requirement and implemented the result. Please check if there is anything that can be improved. Here is my solution:&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="587386" data-lia-user-login="Sanmaya1" class="lia-mention lia-mention-user"&gt;Sanmaya1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 =
var _table1=
DISTINCT('Table'[Year])
var _table2=
{"Late Backlog"}
var _table3=
CROSSJOIN(

    _table1,_table2)

var _table4=
SUMMARIZE('Table',[Year],[Month])
var _table5=
UNION(
    _table4,_table3)
return
ADDCOLUMNS(
    _table5,"Date",
    IF(
        [Month]="Late Backlog",BLANK(),
        MINX(FILTER(ALL('Table'),
        [Year]=EARLIER('Table'[Year])&amp;amp;&amp;amp;[Month]=EARLIER('Table'[Month])),[Date])))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
VAR _today =
    TODAY ()
VAR _startdate =
    EOMONTH ( _today, 0 )
VAR _enddate =
    EOMONTH ( _today, 3 )
VAR _nextenddate =
    DATE ( YEAR ( _enddate ) + 1, MONTH ( _enddate ), 1 )
RETURN
    IF (
        MAX ( 'Table 2'[Month] ) = "Late Backlog"
            || MAX ( 'Table 2'[Date] ) &amp;gt; _startdate
                &amp;amp;&amp;amp; MAX ( 'Table 2'[Date] ) &amp;lt;= _enddate
            || MAX ( 'Table 2'[Date] ) &amp;gt; _nextenddate,
        1,
        0
    )
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Value_Measure =
VAR _today =
    TODAY ()
VAR _startdate =
    EOMONTH ( _today, 0 )
VAR _enddate =
    EOMONTH ( _today, 3 )
RETURN
    IF (
        MAX ( 'Table 2'[Month] ) = "Late Backlog",
        SUMX (
            FILTER (
                ALL ( 'Table' ),
                [Year] = MAX ( 'Table 2'[Year] )
                    &amp;amp;&amp;amp; 'Table'[Date] &amp;lt;= _enddate
            ),
            [Value]
        ),
        SUMX (
            FILTER (
                ALL ( 'Table' ),
                [Year] = MAX ( 'Table 2'[Year] )
                    &amp;amp;&amp;amp; [Month] = MAX ( 'Table 2'[Month] )
            ),
            [Value]
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;3. Place [Flag]in Filters, set is=1, apply filter.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;4. Because Power BI's default sorting is alphabetical, we need to create a sort table if we want to show the desired effect.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 3 =
SUMMARIZE(
    'Table 2',[Month],
    "date",
    IF(
        [Month]="Late Backlog",MINX(ALL('Table 2'),[Date])-1,
    MINX(FILTER(ALL('Table 2'),[Month]=EARLIER('Table 2'[Month])),[Date])))&lt;/LI-CODE&gt;
&lt;P&gt;Select [Month] – Column tools – Sort by column – [date]&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;5. Joining two tables.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;6. Result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;Because&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2024 07:38:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-25T07:38:02Z</dc:date>
    <item>
      <title>Need Help in Creating the chart as per explained below</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-in-Creating-the-chart-as-per-explained-below/m-p/4005516#M156464</link>
      <description>&lt;P&gt;Need to Create a chart which shows LateBacklock and month from next month onwards with fiscal year. Lateback log Quantities are the quantity which are pervious months Quantity and current Month Quantity. below is the Chart for reference and my fiscal month starts from October till September. hence for fiscal year 2025 the Month start from Oct instead of Jan, feb etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 11:32:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-in-Creating-the-chart-as-per-explained-below/m-p/4005516#M156464</guid>
      <dc:creator>Sanmaya1</dc:creator>
      <dc:date>2024-06-23T11:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help in Creating the chart as per explained below</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-in-Creating-the-chart-as-per-explained-below/m-p/4005604#M159450</link>
      <description>&lt;P&gt;Hi, Need help in Creating as chart as the x axis will so the&amp;nbsp; fiscal month and Year. and condition is that my fiscal year start from October of every year. Take the example no i am in June then the chart will show all past value as Late and the Value from July 2024 it will show the late quantities till September, when calendar&amp;nbsp; month&amp;nbsp; October will show as Oct-2025 instead of Oct-2024.&lt;/P&gt;&lt;P&gt;below is the example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 14:51:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-in-Creating-the-chart-as-per-explained-below/m-p/4005604#M159450</guid>
      <dc:creator>Sanmaya1</dc:creator>
      <dc:date>2024-06-23T14:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help in Creating the chart as per explained below</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-in-Creating-the-chart-as-per-explained-below/m-p/4005725#M156607</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 18:10:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-in-Creating-the-chart-as-per-explained-below/m-p/4005725#M156607</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-06-23T18:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help in Creating the chart as per explained below</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-in-Creating-the-chart-as-per-explained-below/m-p/4008552#M157380</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;, thanks for your concern about this case. I tried to create a sample data myself based on the user's requirement and implemented the result. Please check if there is anything that can be improved. Here is my solution:&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="587386" data-lia-user-login="Sanmaya1" class="lia-mention lia-mention-user"&gt;Sanmaya1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 =
var _table1=
DISTINCT('Table'[Year])
var _table2=
{"Late Backlog"}
var _table3=
CROSSJOIN(

    _table1,_table2)

var _table4=
SUMMARIZE('Table',[Year],[Month])
var _table5=
UNION(
    _table4,_table3)
return
ADDCOLUMNS(
    _table5,"Date",
    IF(
        [Month]="Late Backlog",BLANK(),
        MINX(FILTER(ALL('Table'),
        [Year]=EARLIER('Table'[Year])&amp;amp;&amp;amp;[Month]=EARLIER('Table'[Month])),[Date])))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
VAR _today =
    TODAY ()
VAR _startdate =
    EOMONTH ( _today, 0 )
VAR _enddate =
    EOMONTH ( _today, 3 )
VAR _nextenddate =
    DATE ( YEAR ( _enddate ) + 1, MONTH ( _enddate ), 1 )
RETURN
    IF (
        MAX ( 'Table 2'[Month] ) = "Late Backlog"
            || MAX ( 'Table 2'[Date] ) &amp;gt; _startdate
                &amp;amp;&amp;amp; MAX ( 'Table 2'[Date] ) &amp;lt;= _enddate
            || MAX ( 'Table 2'[Date] ) &amp;gt; _nextenddate,
        1,
        0
    )
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Value_Measure =
VAR _today =
    TODAY ()
VAR _startdate =
    EOMONTH ( _today, 0 )
VAR _enddate =
    EOMONTH ( _today, 3 )
RETURN
    IF (
        MAX ( 'Table 2'[Month] ) = "Late Backlog",
        SUMX (
            FILTER (
                ALL ( 'Table' ),
                [Year] = MAX ( 'Table 2'[Year] )
                    &amp;amp;&amp;amp; 'Table'[Date] &amp;lt;= _enddate
            ),
            [Value]
        ),
        SUMX (
            FILTER (
                ALL ( 'Table' ),
                [Year] = MAX ( 'Table 2'[Year] )
                    &amp;amp;&amp;amp; [Month] = MAX ( 'Table 2'[Month] )
            ),
            [Value]
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;3. Place [Flag]in Filters, set is=1, apply filter.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;4. Because Power BI's default sorting is alphabetical, we need to create a sort table if we want to show the desired effect.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 3 =
SUMMARIZE(
    'Table 2',[Month],
    "date",
    IF(
        [Month]="Late Backlog",MINX(ALL('Table 2'),[Date])-1,
    MINX(FILTER(ALL('Table 2'),[Month]=EARLIER('Table 2'[Month])),[Date])))&lt;/LI-CODE&gt;
&lt;P&gt;Select [Month] – Column tools – Sort by column – [date]&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;5. Joining two tables.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;6. Result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;Because&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 07:38:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-in-Creating-the-chart-as-per-explained-below/m-p/4008552#M157380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-25T07:38:02Z</dc:date>
    </item>
  </channel>
</rss>

