- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to create index within a grouping in a matrix
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@AudiencesQuesti Hi! You need to calculate a new column like:
Index =
VAR CurrentRegion = 'YourTable'[Region]
VAR CurrentSubRegion = 'YourTable'[SubRegion]
VAR CurrentFiscalYear = 'YourTable'[FiscalYear]
RETURN
RANKX(
FILTER(
'YourTable',
'YourTable'[Region] = CurrentRegion &&
'YourTable'[SubRegion] = CurrentSubRegion &&
'YourTable'[FiscalYear] = CurrentFiscalYear
),
'YourTable'[Accounts],
,
ASC,
DENSE
)
if you paste sample data under your example, i can detail better the formula.
BBF

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
05-02-2024 04:01 AM | |||
10-08-2024 09:15 PM | |||
04-19-2024 04:02 AM | |||
10-18-2024 08:37 AM | |||
01-25-2024 07:21 AM |
User | Count |
---|---|
13 | |
12 | |
10 | |
10 | |
9 |
User | Count |
---|---|
29 | |
16 | |
14 | |
13 | |
13 |