Ok so my boss wants me to make a query that has Financial Info from basically any year. This includes Revenue, Gross Margin, and EBITDA. So far, I have created a Financial table with 6 fields:
Transaction# (primary key), Autonumber
EntityID, Number
Year, Number
Revenue, Currency
GrossMargin, Currency
EBITDA, Currency
"EntityID" is my primary key in my Entity Table, where I have a relationship with the Financial Table and "enforced referential integrity" so that I can edit info in either table.
I have also made 3 crosstab queries, "qryRevenue, qryGrossMargin, and qryEBITDA". Each query's design includes:
EntityID
EntityName, Total: Group By/ Crosstab:Row Heading/ Sort:Ascending
Year, Total: Group By/ Crosstab:Column Heading
Revenue (or GrossMargin/EBITDA), Total:Sum/ Crosstab:Value
Expression: Total Revenue, Total:Sum/ Crosstab:Row Heading
I want to link these 3 crosstab queries together so I can create a FORM that looks something like this:
Entity Name
2010 2011 2012 2013
Revenue: $$$$ $$$$ $$$$ $$$$
Gross Margin: $$$$ $$$$ $$$$ $$$$
EBITDA: $$$$ $$$$ $$$$ $$$$
I'm guessing that I have to make either another CROSSTAB query between the 3 queries or more likely a UNION query between them. My question is how the hell can I make a form that includes these 3 queries but only displays the entity name and the year once??? I've been trying to figure this out for weeks now but still can't. If anybody has any suggestions feel free to share, thanks a lot.
-Luke