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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ganchevd
Helper I
Helper I

Accounts Receivable Closing

Hello,

 

I am stuck in preparying an Accounts Receivable report by customer and by invoice. I have two columns "Invoice Amount" and "Closing Amount". What I want to do is to match the amount in the column Closing Amount with the Invoice amount and to add another column which to give me as a result only the remaining Invoice Amount. I import the information in Power BI from Dynamics NAV database, where each payment is posted with a number totally different from the invoice number, I have a couple of columns which I think may help me but still stuck cannot think of an approach. The columns are: "Entry No._" and "Closed by Entry No._" but I still cannot figure out how to match these. I am thinking something like: IF "a number from column Closed by Entry No._" is FOUND in column "Entry No._" then RETURN the "value from column Payments"; OTHERWISE "Leave blank". Can anyone help me to convert this in formula?

1 ACCEPTED SOLUTION

Can you try a new column in Payments Table:

IF (Payments_Table[Closed_by] IN Values(Sales[Entry_No]), Payments_Table[Payments],0)

View solution in original post

9 REPLIES 9
anandav
Skilled Sharer
Skilled Sharer

Can you post some sample data please (not real data but proper columns)?

Here is some data, but i was only available to share it as PNG, not table format.

Sample Data.png

 

 

 

@ganchevd,

 

There is lot more details missing in your data like no Payments or Invoiced Amount columns.

 

But based on your your IF condition, you can achieve that as below.

Example1.JPG

 

Without understanding more details of the data and the expected output I'm unable to add more value.

Thanks. I've noticed what you mean and I see that there is no Invoiced Amount Column, which is in another table, which I obtain from the database. The Payments column is in the attached snapshot but it's called Closed by amount (LCY). So now it is becoming more chalenging. The formula I need is: IF (Payments_Table[Closed_by] is found in (Sales[Entry_No]), Payments_Table[Payments],0).

I still try to find it with no success neither as a "New Column", nor as "New Measure".

@ganchevd,

How is Payments_Table and Sales table related (which is one and which is many)? Is this relationship in Power BI as well?

 

They are related "One to One", "Both"

Can you try a new column in Payments Table:

IF (Payments_Table[Closed_by] IN Values(Sales[Entry_No]), Payments_Table[Payments],0)

Works! Works! Thanks!

Enjoy Power BI  Man Happy

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors