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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MRodriguez
Regular Visitor

Calculating / Compare Data Difference without ID number

Hi,

 

I have two sets of data in one table.  One data comes from Point of Sale Report, the other one comes from the Bank Statement.

 

The problem I have is that Point of Sale list “date” and “amount” for each transaction individually while the merchant (bank statement)  list payments for one transaction, two, three or more at the time by date.

 

I would like  to be able to create a  column (please see the example below) where I could reconcile the amount.  But the column “Difference” shows positive and negative amount when all results should be zero since  ($55 + $64 = $119)   ($24.50 + $150.00 + $26.50 = $201)

 

PoS DATE

BANK DATE

POS AMOUNT

BANK AMOUNT

DIFFERENCE

1/2/2017

1/5/2017

$890.00

$890.00

$0.00

1/2/2017

1/7/2017

$100.00

$100.00

$0.00

1/5/2017

 

$55.00

 

$55.00

1/6/2017

 

$64.00

 

$64.00

1/9/2017

1/12/2017

$64.00

$64.00

$0.00

1/10/2017

 

$24.50

 

$24.50

1/11/2017

 

$150.00

 

$150.00

1/12/2017

 

$26.50

 

$26.50

 

1/8/2017

 

$119.00

-$119.00

 

1/15/2017

 

$201.00

-$201.00

 

Any ideas or tips? 

 

Thank you very much. 

2 REPLIES 2
Anonymous
Not applicable

@MRodriguez

The problem in your solution is, that your bank statments works on different granularity than the data of your POS statement.

Your POS statement (24.50+150+26.50) spans over 3 days, the bank statement provides the whole amount in 1 amount on a different day.

Do you have any further details in the bank statement which you may use?

 

First of all, thank you very much for replying to my msg.    I work as bookkepper and bank reconciliation is a hard job and time consuming (I'm trying to automate the process a little bit).  Watching videos and reading some blogs about power query, M language, and power bi I've realized that it is possible.

 

Let me show the details I get from:

 

BANK STATEMENT (There is no ID or transaction number. Amount and date is the only reference I get)

 

Account| ChkRef| Debit| Credit |Balance| Date |Description
xxxxxxxxxxx| $890.00 |xxx| 1/5/2017 |AMERICAN EXPRESS SETTLEMENT - merchant # xxxxxxx
xxxxxxxxxxx| $100.00 |xxx| 1/7/2017 |AMERICAN EXPRESS SETTLEMENT - merchant # xxxxxxx
xxxxxxxxxxx| $119.00 |xxx| 1/8/2017 |AMERICAN EXPRESS SETTLEMENT - merchant # xxxxxxx
xxxxxxxxxxx| $64.00 |xxx| 1/12/2017 |AMERICAN EXPRESS SETTLEMENT - merchant # xxxxxxx
xxxxxxxxxxx| $201.00 |xxx| 1/13/2017 |AMERICAN EXPRESS SETTLEMENT - merchant # xxxxxxx

 

PoS REPORT (Also there is no ID or trnsaction number)

 

Date |Withdrawal| Deposit |Type |Description
1/2/2017 | | $890.00 |Credit Card : Amex |Daily Report Credit Card Deposit
1/4/2017 | | $100.00 |Credit Card : Amex |Daily Report Credit Card Deposit
1/5/2017 | | $55.00 |Credit Card : Amex |Daily Report Credit Card Deposit
1/6/2017 | | $64.00 |Credit Card : Amex |Daily Report Credit Card Deposit
1/9/2017 | | $64.00 |Credit Card : Amex |Daily Report Credit Card Deposit
1/10/2017 | | $24.50 |Credit Card : Amex |Daily Report Credit Card Deposit
1/11/2017 | | $150.00 |Credit Card : Amex |Daily Report Credit Card Deposit
1/12/2017 | | $26.50 |Credit Card : Amex |Daily Report Credit Card Deposit

 

with Power Query ... I was able to transform to following:

 

IDDESCRIPTIONPoS DATEBANK DATEPoS AMOUNTBANK AMOUNTDIFFERENCEComment
Amex - 890.00Amex Deposit1/2/20171/5/2017 $890.00  $890.00 0match
Amex - 100.00Amex Deposit1/4/20171/7/2017 $100.00  $100.00 0match
Amex - 55.00Amex Deposit1/5/2017  $55.00   $55.00 not match
Amex - 64.00Amex Deposit1/6/2017  $64.00   $64.00 not match
Amex - 64.00Amex Deposit1/9/20171/12/2017 $64.00  $64.00  0match
Amex - 24.50Amex Deposit1/10/2017  $24.50   $24.50 not match
Amex - 150.00Amex Deposit1/11/2017  $150.00   $150.00 not match
Amex - 26.50Amex Deposit1/12/2017  $26.50   $26.50 not match
Amex -119.00Amex Deposit 1/8/2017 $-    $119.00  $(119.00)not match
Amex - 201.00Amex Deposit 1/13/2017 $-    $201.00  $(201.00)not match

 

What is my goal :

 

To find a way using Dax Formula or M Language where "the difference amount" match

 

Hope I was able to make a little more clear the problem.  Thanks

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.