This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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))
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 27 | |
| 25 | |
| 22 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 50 | |
| 45 | |
| 20 | |
| 18 | |
| 18 |