Dashboards commonly have repeating elements such as tiles that show brand awareness across a variety of demographic splits, or levels of agreement with a variety of statements. It’s possible to create and then customize each of these visualizations via saving them to the tray and then modifying them in the edit panel, but this can sometimes involve a lot of duplicated effort. As an alternative, Crunch offers the ability to quickly and easily duplicate either a tile or a tab, which can then be tweaked via edits to its script or in the GUI.
Duplicating a Tab
To duplicate a tab in a Crunch dashboard, first enter Edit mode and then select the tab you want to duplicate. Once it’s the active tab, it will show a down chevron to indicate it has a dropdown menu. Open that menu and choose “Duplicate tab”…
This will create a copy of the tab which will appear just to the right of the original. Once you have this duplicated tab, you will likely want to modify it. See the later section called “Modifying a duplicated tab/tile” for an introduction to this topic.
Duplicating a Tile
To duplicate a tile in a Crunch dashboard, first enter Edit mode and then hover over the tile you want to duplicate. A three-dots icon will appear in the top right corner. Click this to open the tile’s context menu, then select “Duplicate tile”…
This will create a copy of the tile which will appear XXXXXXXXX. Once you have this duplicated tile, you will likely want to modify it. See the following section called “Modifying a duplicated tab/tile” for an introduction to this topic.
Modifying a duplicated tab/tile
It is rarely helpful to have a 100% duplicate of a tab or tile. Far more common is to want a near-duplicate - a tab or tile that varies by having a different filter or features a different question, for example. Making these modifications means editing the script of a tab or tile, and this is done via the "Edit script” panels. To edit the script of a tab, return to the tab’s context menu and choose “Edit script”. To edit the script of an individual tile, hover over the tile and choose “Edit script” (unless it’s a very small tile, in which case those options get moved to the tile’s 3-dots menu instead).
Once the panel opens, you will see the current script for the tab or tile. You can find everything you need to know about dashboard scripts in our comprehensive documentation, but as a quick guide, we recommend you copy and paste the script into a text editor of your choosing where you will be able to perform find-and-replace operations on things like variable aliases and filters. For example, you might want to do a search for “awareness_brand_x” and replace it with “awareness_brand_y”, or you might want to swap a filter of “FILTER_NAME("Germany")” with “FILTER_NAME("France")” etc. You can then paste this script back into the Edit script panel and choose “Update script”. Crunch will then perform checks on your script to ensure it is valid. If it fails the validation, Crunch will provide explanations of what it found and what was expected so that you can fix it. If it passes validation, you will have those changes applied to your tab or tile.