<?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: How to create index within a grouping in a matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-index-within-a-grouping-in-a-matrix/m-p/4056858#M161000</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="596641" data-lia-user-login="AudiencesQuesti" class="lia-mention lia-mention-user"&gt;AudiencesQuesti&lt;/a&gt;&amp;nbsp;Hi! You need to calculate a new column like:&lt;BR /&gt;&lt;BR /&gt;Index =&lt;BR /&gt;VAR CurrentRegion = 'YourTable'[Region]&lt;BR /&gt;VAR CurrentSubRegion = 'YourTable'[SubRegion]&lt;BR /&gt;VAR CurrentFiscalYear = 'YourTable'[FiscalYear]&lt;BR /&gt;RETURN&lt;BR /&gt;RANKX(&lt;BR /&gt;FILTER(&lt;BR /&gt;'YourTable',&lt;BR /&gt;'YourTable'[Region] = CurrentRegion &amp;amp;&amp;amp;&lt;BR /&gt;'YourTable'[SubRegion] = CurrentSubRegion &amp;amp;&amp;amp;&lt;BR /&gt;'YourTable'[FiscalYear] = CurrentFiscalYear&lt;BR /&gt;),&lt;BR /&gt;'YourTable'[Accounts],&lt;BR /&gt;,&lt;BR /&gt;ASC,&lt;BR /&gt;DENSE&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you paste sample data under your example, i can detail better the formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2024 15:23:30 GMT</pubDate>
    <dc:creator>BeaBF</dc:creator>
    <dc:date>2024-07-23T15:23:30Z</dc:date>
    <item>
      <title>How to create index within a grouping in a matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-index-within-a-grouping-in-a-matrix/m-p/4056305#M160976</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hi, I'm trying to create a measure that results in the Index column above. Assume that there is a matrix with a few layers in it, Region, SubRegion, Fiscal Year, and then Accounts. I would like the Index to start at the Fiscal Year Level. See above for reference. Repetition across the level below (Accounts) may or may not be needed. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 11:58:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-index-within-a-grouping-in-a-matrix/m-p/4056305#M160976</guid>
      <dc:creator>AudiencesQuesti</dc:creator>
      <dc:date>2024-07-23T11:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create index within a grouping in a matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-index-within-a-grouping-in-a-matrix/m-p/4056858#M161000</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="596641" data-lia-user-login="AudiencesQuesti" class="lia-mention lia-mention-user"&gt;AudiencesQuesti&lt;/a&gt;&amp;nbsp;Hi! You need to calculate a new column like:&lt;BR /&gt;&lt;BR /&gt;Index =&lt;BR /&gt;VAR CurrentRegion = 'YourTable'[Region]&lt;BR /&gt;VAR CurrentSubRegion = 'YourTable'[SubRegion]&lt;BR /&gt;VAR CurrentFiscalYear = 'YourTable'[FiscalYear]&lt;BR /&gt;RETURN&lt;BR /&gt;RANKX(&lt;BR /&gt;FILTER(&lt;BR /&gt;'YourTable',&lt;BR /&gt;'YourTable'[Region] = CurrentRegion &amp;amp;&amp;amp;&lt;BR /&gt;'YourTable'[SubRegion] = CurrentSubRegion &amp;amp;&amp;amp;&lt;BR /&gt;'YourTable'[FiscalYear] = CurrentFiscalYear&lt;BR /&gt;),&lt;BR /&gt;'YourTable'[Accounts],&lt;BR /&gt;,&lt;BR /&gt;ASC,&lt;BR /&gt;DENSE&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you paste sample data under your example, i can detail better the formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 15:23:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-index-within-a-grouping-in-a-matrix/m-p/4056858#M161000</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2024-07-23T15:23:30Z</dc:date>
    </item>
  </channel>
</rss>

