The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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!
@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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
20 | |
19 | |
18 | |
18 | |
14 |
User | Count |
---|---|
40 | |
35 | |
23 | |
20 | |
20 |