<?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 Not able get last year complete number for current financial year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-get-last-year-complete-number-for-current-financial/m-p/4018807#M158510</link>
    <description>&lt;P&gt;Hi Every &amp;nbsp;I am trying to get the previous&amp;nbsp; Year running total for the next fiscal year.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;However I am not able to get it for the current fiscal year.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;The formula I used:&lt;BR /&gt;&lt;BR /&gt;=VAR _date=&lt;/P&gt;&lt;P&gt;MAXX(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAMEPERIODLASTYEAR(DATESYTD(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 'Calendar'[Date]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Calendar'[Date]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;CALCULATE (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Total_Employee Count ],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILTER (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALL('Calendar'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Calendar'[Date] &amp;lt;= _date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2024 15:01:54 GMT</pubDate>
    <dc:creator>Madhu155154</dc:creator>
    <dc:date>2024-07-01T15:01:54Z</dc:date>
    <item>
      <title>Not able get last year complete number for current financial year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-get-last-year-complete-number-for-current-financial/m-p/4018807#M158510</link>
      <description>&lt;P&gt;Hi Every &amp;nbsp;I am trying to get the previous&amp;nbsp; Year running total for the next fiscal year.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;However I am not able to get it for the current fiscal year.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;The formula I used:&lt;BR /&gt;&lt;BR /&gt;=VAR _date=&lt;/P&gt;&lt;P&gt;MAXX(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAMEPERIODLASTYEAR(DATESYTD(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 'Calendar'[Date]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Calendar'[Date]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;CALCULATE (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Total_Employee Count ],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILTER (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALL('Calendar'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Calendar'[Date] &amp;lt;= _date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 15:01:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-get-last-year-complete-number-for-current-financial/m-p/4018807#M158510</guid>
      <dc:creator>Madhu155154</dc:creator>
      <dc:date>2024-07-01T15:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Not able get last year complete number for current financial year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-get-last-year-complete-number-for-current-financial/m-p/4018951#M158522</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="602415" data-lia-user-login="Madhu155154" class="lia-mention lia-mention-user"&gt;Madhu155154&lt;/a&gt;&amp;nbsp;You may find this helpful - &lt;A href="https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 16:44:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-get-last-year-complete-number-for-current-financial/m-p/4018951#M158522</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-07-01T16:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Not able get last year complete number for current financial year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-get-last-year-complete-number-for-current-financial/m-p/4018953#M158523</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Source Data&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Calculating Prev FY column&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Calculating Prev FY Value&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Calculating Current FY running total&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Calculating Prev FY running total&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Creating FY Table&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Creating relationship between FY[FY] and table[FY]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Required table is ready.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 16:45:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-get-last-year-complete-number-for-current-financial/m-p/4018953#M158523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-01T16:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Not able get last year complete number for current financial year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-get-last-year-complete-number-for-current-financial/m-p/4019365#M158558</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;, Thank you for replying, the issue is, i&amp;nbsp; have further granularity of months.&lt;BR /&gt;&lt;BR /&gt;if you see below pic,&amp;nbsp; for cureent year, i have months till october,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Because of that, it is taking previous year data&amp;nbsp; till october, showing it for&amp;nbsp; current year.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But what i want is, to ignore the&amp;nbsp; month's,&amp;nbsp; show me entire value of last year to current year&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;i want 186 instead of 145&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 01:28:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-get-last-year-complete-number-for-current-financial/m-p/4019365#M158558</guid>
      <dc:creator>Madhu155154</dc:creator>
      <dc:date>2024-07-02T01:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Not able get last year complete number for current financial year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-get-last-year-complete-number-for-current-financial/m-p/4019857#M158580</link>
      <description>&lt;P&gt;Hi all,Thank you for your quick reply, I will add more.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="602415" data-lia-user-login="Madhu155154" class="lia-mention lia-mention-user"&gt;Madhu155154&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The Table data is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please follow these steps:&lt;/P&gt;
&lt;P&gt;1.Use the following DAX expression to create a date table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Calendar = 
VAR _table = CALENDAR(DATE(2022,1,1),DATE(2024,12,31))
RETURN 
ADDCOLUMNS(_table,
"Column",
    SWITCH(TRUE(),
    YEAR([Date]) = 2022,"2022-2023",
    YEAR([Date]) = 2023,"2023-2024",
    YEAR([Date]) = 2024,"2024-2025"
    ),
"Month",
    SWITCH(TRUE(),
    MONTH([Date]) = 1 ,"Jan",
    MONTH([Date]) = 2 ,"Feb",
    MONTH([Date]) = 3 ,"Mar",
    MONTH([Date]) = 4 ,"Apr",
    MONTH([Date]) = 5 ,"May",
    MONTH([Date]) = 6 ,"Jun",
    MONTH([Date]) = 7 ,"Jul",
    MONTH([Date]) = 8 ,"Aug",
    MONTH([Date]) = 9 ,"Sep",
    MONTH([Date]) = 10 ,"Oct",
    MONTH([Date]) = 11 ,"Nov",
    MONTH([Date]) = 12 ,"Dec"
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2.Use the following DAX expression to create measures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;_Value = SUM('Table'[Value])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Prev_Year_Value = CALCULATE([_Value],SAMEPERIODLASTYEAR('Calendar'[Date]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3.Final output&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&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;If I understand wrongly, please share simple data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&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>Tue, 02 Jul 2024 08:38:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-get-last-year-complete-number-for-current-financial/m-p/4019857#M158580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-02T08:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Not able get last year complete number for current financial year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-get-last-year-complete-number-for-current-financial/m-p/4020907#M158637</link>
      <description>&lt;P&gt;Hi I guess I have solved as per your requirement. Pls check the below snap.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;For detail pls check the full video from the link below&lt;BR /&gt;&lt;A title="Previous Year Running Total in Power Bi" href="https://youtu.be/9C0DkJVq_zQ" target="_blank" rel="noopener"&gt;Previous Year Running Total&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 15:54:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-get-last-year-complete-number-for-current-financial/m-p/4020907#M158637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-02T15:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Not able get last year complete number for current financial year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-get-last-year-complete-number-for-current-financial/m-p/4022838#M158733</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,i was&amp;nbsp; your video it was good&amp;nbsp; but my requirement was different,&amp;nbsp; from the below, code, i was able to achieve the result&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;CALCULATE (&lt;BR /&gt;[Running_Total_Employees],&lt;BR /&gt;FILTER (&lt;BR /&gt;ALL ( 'Calendar' ),&lt;BR /&gt;'Calendar'[Fiscal Year] &amp;lt;MAX ( 'Calendar'[Fiscal&amp;nbsp;Year]&amp;nbsp;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 11:59:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-get-last-year-complete-number-for-current-financial/m-p/4022838#M158733</guid>
      <dc:creator>Madhu155154</dc:creator>
      <dc:date>2024-07-03T11:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Not able get last year complete number for current financial year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-get-last-year-complete-number-for-current-financial/m-p/4022840#M158734</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;, i was able achieve my result by below code.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;CALCULATE (&lt;BR /&gt;[Running_Total_Employees],&lt;BR /&gt;FILTER (&lt;BR /&gt;ALL ( 'Calendar' ),&lt;BR /&gt;'Calendar'[Fiscal Year] &amp;lt;MAX ( 'Calendar'[Fiscal&amp;nbsp;Year]&amp;nbsp;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 12:01:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-able-get-last-year-complete-number-for-current-financial/m-p/4022840#M158734</guid>
      <dc:creator>Madhu155154</dc:creator>
      <dc:date>2024-07-03T12:01:06Z</dc:date>
    </item>
  </channel>
</rss>

