Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Solved! Go to Solution.
Hi @Anonymous ,
Try this measure:
This is the correct code:
// Assumption:
// [Index] column establishes the temporal order
// among the entries.
// T is your table.
[Your Measure] =
var __indexesOfInterest =
SELECTCOLUMNS(
ADDCOLUMNS(
SUMMARIZE(
T,
T[Month],
T[Cat],
T[SubCat]
),
"@index",
CALCULATE( MAX( T[Index] ) )
),
"@index", [@index]
)
var __result =
CALCULATE(
SUM( T[Value] ),
TREATAS(
__indexesOfInterest,
T[Index]
),
ALL( T )
)
return
__result
Best
D
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
25 | |
12 | |
9 | |
9 | |
9 |
User | Count |
---|---|
18 | |
14 | |
13 | |
13 | |
12 |