Sum one Line Item based on the value of another Line Item
Comments
-
gordon_sneddon Member, ALL USERS, GroupMember, Community Member, Community Pioneer Posts: 4 Master Anaplanner of the Year
Hi Anirudh,
Thanks for your replay..
The current set up is more like the following.
Where the data store has 'Branch', 'Division', 'Time Period', 'Description' and 'Amount' line items, it then also has number of other line items which will only be populated with a value (from the Amount line item) when the description is meets a criteria (i.e. If the Description is Product1 then Line item Cat1 is populated with the value from the Amount line item and all other Catx line items contain zero, when the description is Product2 then line item Cat2 is populated with the value from the amount line item and all other Catx line items contain zero.
The module that is looking up the Data Store looks like:
And the Blueprint for this is:
Which uses a formula of:
'Data Store - Current'.'Cat1'[SUM: 'Data Store - Current'.Branch, SUM: 'Data Store - Current'.Division, SUM: 'Data Store - Current'.Time Period]
With only the 'Catx' number before the opening square bracket changing for the line item formula's.
I'd like to reduce the size of the data store module by turning changing it to something like:
Where I have 1 Category Line Item, containing the Category and I get the value from "Amount" Line Item.
However when I use a similar formula to the one above, I get:
As I'm not able to get the formula to distinguish between the individual categories (The formula is only in the Cat1 line item (that's why the others show zero) the amount is summed up no matter what the Category is ? (i.e. you see in the current report that the total for all 4 categories added together in May is 550, however in the improved report each line item with the formula would contain 550.
I can use an intermediate module, which would turn Category into a Dimension however this would use more cells that the extra line items in the Data Store.
And where the result is to end up is in a current module and is a line item.
Hope that make a little more sense and once again, thanks for your assistance.
0 -
gordon_sneddon Member, ALL USERS, GroupMember, Community Member, Community Pioneer Posts: 4 Master Anaplanner of the Year
Hi Anirudh and David,
Thank you both for your reply's.
Anirudh - I was implementing your suggestions from your reply when I realised I have category as list in my actual modules, however did not have it as a list in the samples I placed here (as also pointed out by David). However using Anirudh's logic and a slight modification I've been able to make it work. Obviously I couldn't post the actual modules due to the data they contain.
David - I'm offsite today, however will look into your suggestions also and provide feedback and accept as solutions over the next two days.
Appreciate both your help. And will get back to you...
0 -
gordon_sneddon Member, ALL USERS, GroupMember, Community Member, Community Pioneer Posts: 4 Master Anaplanner of the Year
David,
Anirudh's answer allowed me to solve my immediate issue and reduced the modules cell count by slightly over 35%. I saying that though, I have slotted time in the near future to look further into your recommendations and reviewing your blog.
Thank you both for your help.
0
Categories
- All Categories
- 2.3K Anaplan Community
- Academy
- Anaplan Talent Builder
- Model Design Course
- The Anaplan Way
- Archive
- 2 Idea exchange
- 62 Enterprise Scale
- 1.1K Extensibility
- 21 Intelligence
- 1.6K Planning & Modeling
- 331 Security
- Community Connections
- Connections
- Experiences
- Groups
- Personas
- Employees
- CS Toolkit
- Customer Care Center
- Forums
- Academy & Training
- Community Feedback & Updates
- Japan
- Anaplan Community Japan
- Anaplan Community Japan Knowledge Base
- HyperCare Japan
- JP-Central
- Support-Japanese
- Partners
- Partner Leadership Council
- Partner Product Council
- 724 Platform
- Anapedia
- App Hub
- Centers Of Excellence
- Extensions
- Planual
- Platform Updates
- 724 User Experience
- Profile Builder
- Resources
- Anaplan Advocates
- Anaplan Live!
- Community
- Community Advancement
- Community Connections
- Partner Program
- The Official Master Anaplanner Program
- Videos
- Welcome to the Anaplan Community!
- Success Central
- Support
- Case Portal Link
- Common Support Questions
- HyperCare Redirect
- Known Issues and Workarounds
- Support test page
- SupportFAQ
- Survey
- 2 Training Day Takeaways