I know I'm doing something dumb here, someone please help me. Using CR9 pro, SQL database.
I have a main report for my sales people (group level 1) where I want to display their Ranking in terms of YTD sales. For several reasons, I can't re-order my main report by their YTD sales volumes, and nobody has been able to help me write a formula to rank them in the main report, so I have chosen to pull that value from a subreport and display it on my main report. Each record in the table has details of a single transaction. Essentially we're only dealing with 2 fields here: SalesPerson and Commission.
Main Rpt - grouped by sales person, sorted alphabetically, with various calculated values displayed in GF1. I want to show their ranking against all other sales people here in this section of GF1 (Ranked most to least in terms of total commission $).
Sub Rpt - Grouped by the same sales person field, placed in GH1. Sum function totals commission $ placed in GH1. GH1 is suppresed. TopN sort All by Decreasing Commission $ Total. Formula @SalesRank = Groupcount, displayed in GF1 (the only field that is not suppressed. Their Rank shows up perfectly on this report, these are the values I want to display in my other report.
Then I insert subreport into my main report, linking by Sales Person field.
Problem: Rank is always = 1 for EACH sales person in the main report! What do I do? Thanks for any help.
I have a main report for my sales people (group level 1) where I want to display their Ranking in terms of YTD sales. For several reasons, I can't re-order my main report by their YTD sales volumes, and nobody has been able to help me write a formula to rank them in the main report, so I have chosen to pull that value from a subreport and display it on my main report. Each record in the table has details of a single transaction. Essentially we're only dealing with 2 fields here: SalesPerson and Commission.
Main Rpt - grouped by sales person, sorted alphabetically, with various calculated values displayed in GF1. I want to show their ranking against all other sales people here in this section of GF1 (Ranked most to least in terms of total commission $).
Sub Rpt - Grouped by the same sales person field, placed in GH1. Sum function totals commission $ placed in GH1. GH1 is suppresed. TopN sort All by Decreasing Commission $ Total. Formula @SalesRank = Groupcount, displayed in GF1 (the only field that is not suppressed. Their Rank shows up perfectly on this report, these are the values I want to display in my other report.
Then I insert subreport into my main report, linking by Sales Person field.
Problem: Rank is always = 1 for EACH sales person in the main report! What do I do? Thanks for any help.