Load the data and open a sheet. Create a new table and add these fields as dimensions:
Customer
SatisfactionScore
Create the following calculated dimension:
=Repeat('☺',(SatisfactionScore)), to calculate and display the score visually with emojis.
Results table
Customer
SatisfactionScore
Repeat('☺',SatisfactionScore)
John
4
☺☺☺☺
Mary
2
☺☺
Peter
5
☺☺☺☺☺
Susan
3
☺☺☺
The output of the Repeat function shows a visual representation of customer satisfaction using smiley face emojis to represent the numerical satisfaction score.
Example - Repeat advanced scenario
Overview
A dataset of customer accounts contains account numbers with varying character lengths. This example demonstrates how to use the Repeat function to standardize the length of account numbers.
Open the Data load editor and add the load script below to a new tab.
The load script contains:
A dataset which is loaded into a data table called Example.