<?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 Next item of the base field in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-item-of-the-base-field/m-p/3769505#M147219</link>
    <description>&lt;P&gt;I got that with that measure :&amp;nbsp;CALCULATE(sum(BalanceVerification[MENSUEL]),'Dim_rubriquecptes'[Type compte]="REVENUS",&lt;BR /&gt;ALLEXCEPT(BalanceVerification,BalanceVerification[EXERCICE_Name]))&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;How to get That ?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 17 Mar 2024 17:43:03 GMT</pubDate>
    <dc:creator>ssaintlouis</dc:creator>
    <dc:date>2024-03-17T17:43:03Z</dc:date>
    <item>
      <title>Next item of the base field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-item-of-the-base-field/m-p/3769505#M147219</link>
      <description>&lt;P&gt;I got that with that measure :&amp;nbsp;CALCULATE(sum(BalanceVerification[MENSUEL]),'Dim_rubriquecptes'[Type compte]="REVENUS",&lt;BR /&gt;ALLEXCEPT(BalanceVerification,BalanceVerification[EXERCICE_Name]))&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;How to get That ?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2024 17:43:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-item-of-the-base-field/m-p/3769505#M147219</guid>
      <dc:creator>ssaintlouis</dc:creator>
      <dc:date>2024-03-17T17:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Next item of the base field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-item-of-the-base-field/m-p/3769878#M147234</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="426302" data-lia-user-login="ssaintlouis" class="lia-mention lia-mention-user"&gt;ssaintlouis&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the SAMEPERIODLASTYEAR() function.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure2 =CALCULATE (
            [Measure],
            SAMEPERIODLASTYEAR ( 'Date'[Date] ) &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;In order to use any time intelligence calculation, you need a well-formed date table.&amp;nbsp;&lt;/SPAN&gt;For more details, please refer:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dax.guide/sameperiodlastyear/" target="_blank"&gt;SAMEPERIODLASTYEAR – DAX Guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/differences-between-dateadd-and-parallelperiod-in-dax/" target="_blank"&gt;Differences between DATEADD and PARALLELPERIOD in DAX - SQLBI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in your tables (&lt;STRONG&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/STRONG&gt;) with&amp;nbsp;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;pbix file.&amp;nbsp;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 02:52:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-item-of-the-base-field/m-p/3769878#M147234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-18T02:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Next item of the base field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-item-of-the-base-field/m-p/3772287#M147389</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No, I don't have date field. The field&amp;nbsp;&lt;SPAN&gt;BalanceVerification[EXERCICE_Name] is in text format. I want to show the next category for each item category in the field BalanceVerification[EXERCICE_Name] (Ex. 2022-2023, Ex. 2021-2022, Ex. 2020-2021, etc.) as I said.&amp;nbsp;&lt;BR /&gt;What can I change in this measure?&lt;BR /&gt;ContRev :=&amp;nbsp;CALCULATE(sum(BalanceVerification[MENSUEL]),'Dim_rubriquecptes'[Type compte]="REVENUS",&lt;BR /&gt;ALLEXCEPT(BalanceVerification,BalanceVerification[EXERCICE_Name]))&lt;BR /&gt;&lt;BR /&gt;I work with Power Pivot in Excel 365.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 17:32:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-item-of-the-base-field/m-p/3772287#M147389</guid>
      <dc:creator>ssaintlouis</dc:creator>
      <dc:date>2024-03-18T17:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Next item of the base field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-item-of-the-base-field/m-p/3774248#M147495</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="426302" data-lia-user-login="ssaintlouis" class="lia-mention lia-mention-user"&gt;ssaintlouis&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can create measures.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 1 = INT(RIGHT(MAX(BalanceVerification[EXERCICE_Name]),4))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure 2 = var a=[Measure 1]-1
return CALCULATE([ContRev],FILTER(ALLSELECTED(BalanceVerification),[Measure 1]=a))&lt;/LI-CODE&gt;
&lt;P&gt;Then the result is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 08:41:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-item-of-the-base-field/m-p/3774248#M147495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-19T08:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Next item of the base field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-item-of-the-base-field/m-p/3777053#M147624</link>
      <description>&lt;P&gt;I got Test1 with this measure&lt;BR /&gt;Test1:&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;([ContFact],&lt;/SPAN&gt;&lt;SPAN class=""&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Table1,Table1[Item]))&lt;/SPAN&gt;&lt;!--  EndFragment   --&gt;&lt;BR /&gt;How about Test2&lt;BR /&gt;Test1 is the total of each item. I want in Test2 the total of the next Item like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 05:02:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-item-of-the-base-field/m-p/3777053#M147624</guid>
      <dc:creator>ssaintlouis</dc:creator>
      <dc:date>2024-03-20T05:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Next item of the base field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-item-of-the-base-field/m-p/3777305#M147641</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="426302" data-lia-user-login="ssaintlouis" class="lia-mention lia-mention-user"&gt;ssaintlouis&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my test data. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;We can create two measures.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index = RANKX(ALLSELECTED('Table1'),[Item],MAX('Table1'[Item]),ASC,Dense)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Test2 = var a=[index]+1
return CALCULATE([Test1],FILTER(ALLSELECTED(Table1),[index]=a))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 06:49:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-item-of-the-base-field/m-p/3777305#M147641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-20T06:49:17Z</dc:date>
    </item>
  </channel>
</rss>

