This tip below appears in the latest CSP newsletter! Does it work when you try it? Got any thoughts to share about this tip? Let us know in the space below!
When updating a template and changing a member, has this ever happened to you? You change one member and your formatting and/or formula is changed, and you must redo this work?
The reason behind this is that the formatting and formula references are inherently connected to a dimension member. In “replacing” a member, you first remove the original member. This removes the reference to the formatting/formula related to it. Then you add a new dimension member. On the template this new member has no reference to the formatting and/or formula that existed previously.
Step by step it works like this…
- Percentage of Sales from the West Region is calculated in cell C6 with formula C5/C4, and Cell B5 is highlighted in red.
- Building out the template I notice the wrong dimension member is selected in B5. “East Region Sales” is selected but I really meant to select “West Region Sales”. I go to edit layout to remove “East Region Sales”.
Notice the red highlighted cell has been removed with the removal of “East Region Sales” and the formula reference to the cell that contained “East Region Sales” is now 0
- I now add “West Region Sales” in place of “East Region Sales”. This new member selection is treated as a brand-new row. Formatting is set to the default (no formatting).
So, what do you do if you need to update your template but don’t want to worry about shifting or disappearing formatting or formula references? Great question! There is a setting in each data view within a template (in design mode) that will ‘lock’ the formatting and/formula to a cell rather than a dimension member. ‘Map row/column member on selection change’ is found in the properties of the data view.
To enable this setting:
- In Template Studio, select the data view’s drawer, click on the cog icon and select ‘Properties’
- Go to the ‘Settings’ tab
- De-select the two ‘map’ options under ‘Design Mode’.
With these setting de-selected, if I repeat my initial steps…
- Remove “East Region Sales”. Notice the red highlighted cell and formula reference remain.
- Add “West Region Sales”.