Discover Which Customers Need More Licenses
In this exercise, you will…
- Group by Account.Name
- Group rows by unique users
- Sort in Descending Order
- Group by Licensed Seats
- Filter by Per User license
- Switch to Compare Tables
- Format the lens
- Sort License usage descending
- Save the lens
Group by Account.Name
- Click the + to add a group to the Bars section
- Select the
LMA.Account__c.Name

Group rows by unique users
- Select “Count of Rows”
- Select “Unique”
- Search and Select
User_id_token

Sort in Descending Order
- Click the down arrow beside “Unique of user_id_token”
- Select “Sort Descending”

Group Columns By Licensed Seats
- In the “bars” section, click the “+”
- Search and Select
LMA.Licensed_Seats__c

Filter by Per User license
You’ll notice we have 2 types of licenses: Site-Wide and Per User.
We’ll start by filtering out the Site License rows so we can focus on the Per User license data.
Filter by licensed seats:
- Click “Filter” on the left
- Click +
- Search and Select
LMA.Licensed_Seats__c

Filter out Site License:
- Then “Does Not Equal”
- Check off
Site License
(at the bottom of the list) - Click “Add”

Switch to Compare Tables
Now we want to switch to compare tables which will allow us to create additional calculations within the dataset.
Change the Table Mode:
- Select Table Mode in the upper right
- Select “Compare Table”

Create Formula for Licensed Seats:
- Go back to “DATA” on the left-hand side
- Click the “+” in the columns section
- Click “Add Formula” (top right of that window)

This will bring you into the Compare Table edit mode with a new column
- Enter “License Seats” in Column Header
- In Functions, select the
string_to_number
formula - In Fields, scroll down and select
LMA.Licensed_Seats__c
- Click Apply and then Close to go back to the Lens

Create Formula for License Usage:
- Click the + to add another formula column
- Enter “License Usage” for the Column Header
- Enter “A/B” in the formula (Make sure to enter as UPPERCASE)
- Scroll Down and Select Percent as the Format
- Click Apply and then Close to go back to the Lens

Format the Lens
- Select the Format icon (the paint roller) to the far right hand side
- Ensure “License Usage” is in the Reference column
- Then select the “Column” subtab
- Click Conditional Formatting and “Add Rule”

- Click “Add Bin” so that you have 3 ranges.
- Lower range is to 0.6 and the background is grey
- Medium range is 0.6 to 0.99
- High range is above 0.99 and the background is red with white text
- Click Apply
- Click the format icon again to shrink the formatting toolbox.

Sort License Usage descending
Click on the downward arrow and select “Sort Descending”

Save the Lens
Save the lens as “License Usage” to your app.
