Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
41 | |
19 | |
19 | |
16 | |
15 |
User | Count |
---|---|
49 | |
26 | |
22 | |
17 | |
16 |