Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi Team,
I have below screenshot for my data Table and Final output expected table.
Thanks,
KV's
Solved! Go to Solution.
HI @Anonymous,
I'd like to suggest you add a variable to summary these records and use the iterator function(sumx) on this variable to apply second aggregations.
Measure =
VAR summary =
SUMMARIZE (
Table,
[Month],
"Diff",
LOOKUPVALUE ( RawTable[Target], RawTable[VALUES], [Month] )
- LOOKUPVALUE ( RawTable[Target], RawTable[VALUES], "Total " & [Month] )
)
RETURN
SUMX ( summary, [Diff] )
The 'table' is a new calculate table with all month names, they are used as the category of table visual.
Regards,
Xiaoxin Sheng
HI @Anonymous,
I'd like to suggest you add a variable to summary these records and use the iterator function(sumx) on this variable to apply second aggregations.
Measure =
VAR summary =
SUMMARIZE (
Table,
[Month],
"Diff",
LOOKUPVALUE ( RawTable[Target], RawTable[VALUES], [Month] )
- LOOKUPVALUE ( RawTable[Target], RawTable[VALUES], "Total " & [Month] )
)
RETURN
SUMX ( summary, [Diff] )
The 'table' is a new calculate table with all month names, they are used as the category of table visual.
Regards,
Xiaoxin Sheng
@Anonymous , Create a new column and use in visual with new measure suggested below
new column = SUBSTITUTE([Values] ,"Total ","")
measure =
var _1 = calculate(sum(Table[Target]) , filter(Table, search("Total",Table[value],,0)= 0)) - calculate(sum(Table[Target]) , filter(Table, search("Total",Table[value],,0)>0))
Var _2 = calculate(sum(Table[Target]) , filter(Table, search("Total",Table[value],,0)>0))
return
sumx(Values(Table[New column]), if(_2=0, 0, _1))
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.