• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Need help with the formula to calculate the actual balance amount of the Dealer against the invoices

Chandrakant

New Member
Hi,
Need help with the formula to calculate the actual balance amount of the Dealer against the invoices.

In have calculated the same but my formula works only for 1 Dealer, when there are multiple Dealers it goes wrong.

My calculation is in Result ( H ) Column and what i want is in Expected Result ( I ) Column.

any help would be greatly appreciated.

Have attache the sample file for your reference.
 

Attachments

  • Book2.xlsb
    11.9 KB · Views: 8
With Power Query

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Grouped Rows" = Table.Group(Source, {"Dealer Name"}, {{"DEBITS", each List.Sum([Debit]), type nullable number}, {"CREDITS", each List.Sum([Credit]), type nullable number}, {"OPENING", each List.Sum([Opening Balance]), type nullable number}}),
    #"Inserted Addition" = Table.AddColumn(#"Grouped Rows", "DEBIT", each [OPENING] + [DEBITS], type number),
    #"Inserted Subtraction" = Table.AddColumn(#"Inserted Addition", "Totals", each [DEBIT] - [CREDITS], type number),
    #"Removed Other Columns" = Table.SelectColumns(#"Inserted Subtraction",{"Dealer Name", "DEBIT", "CREDITS", "Totals"})
in
    #"Removed Other Columns"
 

Attachments

  • Book2.xlsb
    20.1 KB · Views: 4
Back
Top