Bar chart with complicated summary field
Hi,
I need add a bar chart report to a system and I having trouble with one of the items.
I have a table, let's call it YearMonthRevenueByContract that has the Year, Month, reference to a Contract table, and a Revenue amount for that month. There are multiple records in this table each month, usually with different contracts. The same contract might have records in more than one month.
The contract table has a Type field.
The bar chart will be total Revenue by contract Type for a given year. The Revenue part is adding up fine. But count of Contracts though is double counting. E.g. if the same contract is in January and February, it is counted twice for the year instead of once. Any idea how I can set this up?
I can definitely create a summary report with the distinct contract count grouping by year, but how do I get that into this bar chart by Type?
Thanks!