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
MC13
New Member

Vendor report including GL cost code

I am trying to write a report in Power BI that lists Vendor activity but also includes the GL codes the invoices have been posted to.  I have managed to create a report but it only shows the GL as accounts payable.  When I look at this it is because the purchase invoice lines entries are not recorded in the Vendor Ledger Entries table.  They are in the General ledger entries table and I have tried to find a way of linking the General Ledger Entries to the Vendor but without success. 

 

Does anyone know how I can do this? 

3 REPLIES 3
Anonymous
Not applicable

Hi @MC13 ,

Not very clearly...... Could you  make up some fictitious data based on the columns in the table and the relationship between the tables and describe the expected output?

 

Best regards, 

Eyelyn Qin 

amitchandak
Super User
Super User

@MC13 ,

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I am not sure how to send it to you removing sensitive data.  Basically I am pulling through into Power BI the General Ledger Entries Table and the VendorLedgerEntries table.  I have also tried the Vendor_Ledger_Entries table.  

 

The VendorLedgerEntries table do not include the cost posting lines from the invoice by the looks of it just the accounts payable line.  I have compared the entries with the General Ledger Entries table whch has both.  The tables are linked by enry number so as the entry no line with the cost code is not in the VendorLedgerEntries table it does not show the vendor name.  If I try and llnk by say document number this works but it is a many to many link and then values get lumped together so I do not see the correct value.

 

I think my problem is undestanding how to link the correct tables together to show the vendor name.  I don't undesrtand why I cannot pull through a table with the purchase invoice lines showing the vendor. 

 

 

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.