Building a Query that will return Project Distributions
Good morning:
I wonder if anyone has come up with how to build a A/P query that will provide not just account distributions, but project distributions further splitting charges to accounts. See below example, if you debit your expense account on an invoice and the charge itself is split between multiple project codes, how do I build a query that will return all of those distributions?
Example in A/P)
$100 invoice
100$ debited to telephone expenses
>>$50 to Project 1 << Query target these charges
>>$50 to Project 2 << Query target these charges
Unfortunately, my experimentation has only let me use a query to return the account distributions, but not the individual project charges that further distribute the account charges.
As this feature is available and used in multiple sections of Blackbaud, if anyone has figured out how to properly do this I would be interested in learning how.
Comments
-
@Tyler Lester
in output, go to account distribution section. it has other fields like the projects, t codes , etc.0 -
@Kevin Brazell
Unfortunately, that seems to return the Project ID output that are associated with the large account charges, but not the distributions that are applied to further divide the charges to the accounts. It seems to produce duplicate values noting that project ID's were indeed used on the charge, but not what amount was charged under their umbrella.0 -


@Tyler Lester, Not sure if you were trying to build the query in webview, but if that's the case, the project distribution is not quite available on new queries in webview. There's a message on that area for an Invoice query under Invoice account distribution > Project ID that states ‘Support for this field will be available in a future release.’
In database view, however, this is still accessible – you just have to remember that the query will produce a line for each line of distribution so it will show the same invoice for however many lines of distribution there are. You'd want to create an Invoice (not vendor) query, set whatever criteria you want for the invoices you want to see (for example, invoice status = pending). Then move to the Output tab and expand on ‘Invoice account distribution’ and you'd want to include Account number, amount, and/or percent and then you'd also want to select Project ID and another amount/percent. Your results will look like my screenshot (results tab) for an invoice with multiple lines of distribution – in this example some of the lines have a Project distribution and some don't but the total equals out to the amount of the invoice.
So in just focusing on the expense side (could filter to the type of account I want to see if you don't want to see both the lines of liability and expense) in my screenshot. You'll see Invoice #0707 with a total of $150. Account 01-5250-00 for $25 hitting project ID ‘Art Club’, account 01-5000-00 for $50 hitting project ID 1001, and 01-5200-00 for $75 hitting project ID 1002. In my sample data, projects are not required on the liability side, so again, I could filter to only include the expense type if this creates too much to filter through. Hope this helps but let me know if you have questions!0 -
@Nikki Baldwin
This seems to describe the issue I run into. In your example, each Project ID distribution is tied to a single account.We utilize Project IDs within a distribution set charged to a single account for most of our invoices, which ends up looking like below:
Account Number --------Debit------- Project ID
5070 ------------------------$ 100
----------------------------------$50------------- 1
----------------------------------$25 -------------2
----------------------------------$25 -------------3
This is a distribution set applied to a single line - so the individual amounts are broken out into each Project ID below the total charge.
This is what I'm struggling to target with a query. I could probably tweak a General Ledger query to return some of this information, but an A/P query that returns various information associated with A/P records is what I'm trying to pull.
If that makes sense.
0 -
@Tyler Lester, yeah the query is definitely going to show a different line for each change in the distribution rather than summarizing it like you have written out. I'm thinking you'd need more than one addition of the amount/percent listed under the Project ID to show if there are several projects associated with one account line of distribution. For example, in looking at the previous screenshots I shared, you'd want to have the account distribution listed so ‘account’ and amount/percent and then select project ID/amount multiple times to showcase any projects distributed to the same account line of distribution. That would show as amount, amount (1), amount (2) etc. so that you know it's a different line of distribution. As a query, it won't summarize that information to sort of wrap up into the full amount, though, and will show them on separate lines as if they're duplicated.


I was checking out a report that might help you get this summarized view, though, instead of doing the query which will always duplicate the invoice line per change in distribution. With the Invoice expense allocation report, you can select on the Content section to ‘Show distribution for these characteristics’ and select Project ID. So when the invoice in my example above has the same account for a total of $400, but it's split 50/50 between two projects, this view on the report showcases the full distribution with the account number repeated and the different project IDs it was distributed to.
Let me know if I'm misunderstanding your goal here or if you have additional questions!0
Categories
- All Categories
- 6 Blackbaud Community Help
- 206 bbcon®
- 1.4K Blackbaud Altru®
- 394 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 357 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 646 Blackbaud Grantmaking™
- 561 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 934 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.4K Blackbaud Raiser's Edge NXT®
- 3.6K SKY Developer
- 242 ResearchPoint™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 238 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 28 PowerUp Challenges
- 3 (Open) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 778 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)

