Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Table.InsertRow - Sum one Column to cell

Hi, i got this table:

 

Shkr_0-1619527810261.png

 

The last row is a step where i have used this code to create the the step. 

 

#"Grouped Rows" = Table.Group(#"Changed Type", {"Source.Name"}, {{"Count", each Table.InsertRows(_,Table.RowCount(_),{[Source.Name="", Kontoart=39100, Stedsart="", #"Beskrivelse - Prognose"="Tekst", År=2020, Periode=1, Beløp=5]})}}),

 

In inserted rows column "Beløp" i want to sum all the values above.  What code do i put in instead og "5"? 

 

 

Bonus task: I also want to use an "if" statement to sum only if Column "Stedsart" is "47700"   

1 ACCEPTED SOLUTION
Anonymous
Not applicable

prova questa:

 

#"Grouped Rows" = Table.Group(#"Changed Type", {"Source.Name"}, {{"Count", each Table.InsertRows(_,Table.RowCount(_),{[Source.Name="", Kontoart=39100, Stedsart="", #"Beskrivelse - Prognose"="Tekst", År=2020, Periode=1, Beløp=List.Sum([Belop])]})}}),

 

Bonus task: quale riga della colonna Stedsart deve essere controllata?

View solution in original post

1 REPLY 1
Anonymous
Not applicable

prova questa:

 

#"Grouped Rows" = Table.Group(#"Changed Type", {"Source.Name"}, {{"Count", each Table.InsertRows(_,Table.RowCount(_),{[Source.Name="", Kontoart=39100, Stedsart="", #"Beskrivelse - Prognose"="Tekst", År=2020, Periode=1, Beløp=List.Sum([Belop])]})}}),

 

Bonus task: quale riga della colonna Stedsart deve essere controllata?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.