Sum(Collect Calculation giving #Circular Reference Error
=SUM(COLLECT({Forecast Amount}, {Customer}, $Label@row, {Sales Stage}, Qualification$1))
That is the calculation I am using bring forecast sales based on Customer and Sales Stage into a metrics collection sheet. I am going out to the Sales Pipeline sheet for the information, two (2) sheet prints attached for reference.
This is the actual metric collection sheet
This is the Sales Pipeline, some fields are hidden simply to provide better viewing.
I build these metrics all the time, but not with the sum function only with the count function. So what am I missing?
Answers
-
The following formula works.
=SUM(COLLECT({Forecast Amount}, {Customer}, Label@row, {Sales Stage}, "Qualification"))
(Link to published demo sheet)
I could recreate your #CIRCULAR REFERENCE error by referencing Qualification$1 in the first row.
If you want to somehow put "Qualification" at the first row, make the formula a cell formula like the one in [Qualificatin 1].
The correct approach is simply putting the "Qualification" text as the COLLECT condition.
[Qualification] =SUM(COLLECT({Forecast Amount}, {Customer}, Label@row, {Sales Stage}, Qualification$1))
[Qualification 1] =SUM(COLLECT({Forecast Amount}, {Customer}, Label@row, {Sales Stage}, [Qualification 1]$1))
[Qualification 2]=SUM(COLLECT({Forecast Amount}, {Customer}, Label@row, {Sales Stage}, "Qualification"))
[Discovery]=SUM(COLLECT({Forecast Amount}, {Customer}, Label@row, {Sales Stage}, "Discovery"))
Sample Sales Pipeline Data
-
Perfect, thank you!
-
Happy to help!😁
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!