Let's see if I can explain this so you can help me.
I am trying to create a report that will create a percentage based upon another group's totals. For example, my company creates widgets that are sold to other companies around the world. Some widgets designed for overseas (a market) are being sold in the US while some designed for the US (another market) are sold overseas. My boss want to know what percentage of widgets sold in each state or country based upon the total of widgets sold in a market. I get the data based upon sales date then group my subtotals by market, country, and state where market is the first group and state is the third group.
My formula might look like: (Total_State_Widgets_For_Market1 / Total_Widgets_for_Market1) * 100. My problem is how do I get the Total_Widgets_for_Market1. I've tried using WhileReadingRecords but it gives me bogus numbers. I'm either using it incorrectly or am missing the something.
James P. Cottingham
When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
I am trying to create a report that will create a percentage based upon another group's totals. For example, my company creates widgets that are sold to other companies around the world. Some widgets designed for overseas (a market) are being sold in the US while some designed for the US (another market) are sold overseas. My boss want to know what percentage of widgets sold in each state or country based upon the total of widgets sold in a market. I get the data based upon sales date then group my subtotals by market, country, and state where market is the first group and state is the third group.
My formula might look like: (Total_State_Widgets_For_Market1 / Total_Widgets_for_Market1) * 100. My problem is how do I get the Total_Widgets_for_Market1. I've tried using WhileReadingRecords but it gives me bogus numbers. I'm either using it incorrectly or am missing the something.
James P. Cottingham
When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.