Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Team ,
I need to add a new row in a table using sum formula , is it possible to achieve in power bi?
Solved! Go to Solution.
Solution uploaded to https://1drv.ms/x/s!Akd5y6ruJhvhuUOWen72PIQ9RqBY?e=y6yIoA
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Added Index" = Table.AddIndexColumn(Source, "Index", 0, 1, Number.Type),
#"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Added Index", {"Country"}, "Attribute", "Value"),
#"Filtered Rows" = Table.SelectRows(#"Unpivoted Other Columns", each ([Attribute] <> "Category" and [Attribute] <> "Index")),
#"Grouped Rows" = Table.Group(#"Filtered Rows", {"Country", "Attribute"}, {{"Temp", each List.Sum([Value]), type number}}),
#"Pivoted Column" = Table.Pivot(#"Grouped Rows", List.Distinct(#"Grouped Rows"[Attribute]), "Attribute", "Temp"),
#"Added Custom" = Table.AddColumn(#"Pivoted Column", "Category", each "Cuts"),
#"Added Custom1" = Table.AddColumn(#"Added Custom", "Index", each List.Max(Table.SelectRows(#"Added Index", (x)=> x[Country]=[Country])[Index])+0.1),
#"Appended Query" = Table.Combine({#"Added Index", #"Added Custom1"}),
#"Sorted Rows" = Table.Sort(#"Appended Query",{{"Index", Order.Ascending}}),
#"Removed Columns" = Table.RemoveColumns(#"Sorted Rows",{"Index"})
in
#"Removed Columns"
Solution uploaded to https://1drv.ms/x/s!Akd5y6ruJhvhuUOWen72PIQ9RqBY?e=y6yIoA
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Added Index" = Table.AddIndexColumn(Source, "Index", 0, 1, Number.Type),
#"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Added Index", {"Country"}, "Attribute", "Value"),
#"Filtered Rows" = Table.SelectRows(#"Unpivoted Other Columns", each ([Attribute] <> "Category" and [Attribute] <> "Index")),
#"Grouped Rows" = Table.Group(#"Filtered Rows", {"Country", "Attribute"}, {{"Temp", each List.Sum([Value]), type number}}),
#"Pivoted Column" = Table.Pivot(#"Grouped Rows", List.Distinct(#"Grouped Rows"[Attribute]), "Attribute", "Temp"),
#"Added Custom" = Table.AddColumn(#"Pivoted Column", "Category", each "Cuts"),
#"Added Custom1" = Table.AddColumn(#"Added Custom", "Index", each List.Max(Table.SelectRows(#"Added Index", (x)=> x[Country]=[Country])[Index])+0.1),
#"Appended Query" = Table.Combine({#"Added Index", #"Added Custom1"}),
#"Sorted Rows" = Table.Sort(#"Appended Query",{{"Index", Order.Ascending}}),
#"Removed Columns" = Table.RemoveColumns(#"Sorted Rows",{"Index"})
in
#"Removed Columns"
Thanks for the response,
My Source is an excel file where it contains country , category(order, ship only), Months (Jan , Feb , so on ) as columns , i need to create a tabular report like for each country data need to add a new row at the end called "cuts" with formula (sum of order - sum of ship) for that country. hope this helps
Hi,
it's not clear to me what you need, can you explain again and make an exemple?
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |