ABSYZ ABSYZ

  • Home

    Welcome to ABSYZ

  • About us

    Who We Are

  • Our Expertise

    What We Do

  • Our Approach

    How We Do It

  • Products

    What We Made

  • Industries

    Who We Do It For

  • Clients

    Whom We Did It For.

  • Article & Blogs

    What Experts Think

  • Careers

    Join The Team

  • Get In Touch

    Let’s Get Started

ABSYZ

Einstein Analytics: Creating Date Fields in Recipes for Toggles

Home / Article & Blogs / Salesforce / Einstein Analytics: Creating Date Fields in Recipes for Toggles

Einstein Analytics: Creating Date Fields in Recipes for Toggles

By Pushmitha Babu inSalesforce
Originally Posted on December 4, 2018; Last updated on November 5, 2020.

Einstein Analytics by Salesforce is a cloud-based AI-powered advanced analytics tool that helps in exploring data quickly and with Salesforce Analytics Query Language (SAQL) to query, manage your datasets and customize dashboards programmatically. Formerly known as Wave Analytics Cloud, it integrated very well with the Salesforce platform. We have already covered Wave Analytics in detail in our previous blog post “Introduction to Salesforce Wave Analytics Cloud”

Update: Einstein Analytics has a new name now, Tableau CRM, the tool remains the same. Read about this major update here. 

Einstein Analytics dashboard is built up of many widgets, which is similar to a component over the Salesforce dashboard; however, a date filter or list filter can also be referred to as widgets in EA. For the purpose of our tutorial, we would be using the Toggle widget, which can be used to create a filter for the viewers on Analytics dashboard results based on date or dimension. 

In the following example, we will create a filter for the Users on the date field as Quarterly and Yearly. 

To begin, we will create a Dataset. In EA, a Dataset is a specific view of a data source based on how you’ve customised it. We’ve already covered steps to create a Dataset in “How to create a Dataset, Lens and Dashboard in Wave Analytics”. After creating the dataset, create a Dataset Recipe as shown below. You can find the created recipe in the Dataflows & Recipes from the sidebar menu.

Datasets Einstein Analytics
Datasets in Einstein Analytics / Tableau

 

 

create recipe tableau einstein analytics
Create Recipe Option – Einstein Analytics / Tableau

Recipe Name einstein Analytics
Provide Recipe Name – Einstein Analytics / Tableau

List of Dataflows & Recipes
List of Data Flows & Recipes – Einstein Analytics

Create a Bucket

Click on the Recipe, you will be redirected to a table that shows all the data. We write the filter on the Close Date field in Opportunity. Create a bucket to categorise the fields.

Customising a Recipe
Recipe Editor / Customisation Pane

Selecting the row
Row for the Bucket to be Created

selecting bucket from data fields
Creating Bucket from Data fields – Recipe – Einstein Analytics

You have 2 options shown while creating a Bucket. Choose the Relative option. A drop-down list appears below with the options by Year, Quarter, Month, Week or Day. Below you have another option to choose your range provided namings for the start and end of your selected type.

Customising the Bucket
Bucket Customisation Pane – Select Relative.

analytics9analytics10

Now create two buckets: By Year and By Quarter. Select the range and name each range that you want to display. As you create each bucket, add the bucket to the Dataset and update as shown below. The Dataset Recipe will get updated and can be monitored from the Data Manager. In the left side panel click on the monitor tab, where you can check the status.

adding additional conditions buckets
Additional Conditions – Bucket

 

applying changes bucket remaining values
Select Bucket Remaining Values to Other and Apply changes to Bucket

 

Dataset reciple table preview selected columns

Find Recipe after successful creation

 

steps to update attributes for column in dataset recipe
Steps to update attributes for column in dataset recipe

 

Updating Attributes for Column in Dataset
Updating Attributes for Column in Dataset

 

Saving changes to the Dataset
Saving changes to the Dataset
Select our Derived fields from Close Date
Select our Derived fields from Close Date

 

Running the Recipe
Running the Recipe – One time or Scheduled

 

Find Recipe after succesful creation
Find Recipe after successful creation

 

Create a Dashboard

The Dashboard is where users explore and analyse widgets, So go ahead and create a blank Dashboard and rename it to a more specific and suitable description.

Create a Step

Create a step to add a toggle option. So first click on Create a step and choose the dataset you have created at the start. In the left side panel, under Bars choose Quarterly according to your naming’s saved above. Add a condition under Filters, choosing Quarterly equals to Current Quarter and Last year’s same Quarter. After following the steps as mentioned click on done. On the Dashboard, you can see the created step.

Creating step for a Toggle Einstein Analytics
Creating step for a Toggle Einstein Analytics

"<yoastmark

Add Bars to the Custom Step
Add Bars to the Custom Step

"<yoastmark

Ensure correct Bars are selected
Ensure correct Bars are selected

Select Filters from to Eliminate unnecessary Dimensions
Select Filters from to Eliminate Unnecessary Dimensions

Select the required Dimensions
Select the required Dimensions

Filters for Bar Steps
Click on Done after verifying correct selection of correct Dimensions in Step

Step is visible in the Right pane of Toggle Designer
Step is visible in the Right pane of Toggle Designer

Create Toggle

On the left side panel, select the Toggle option. Drag and drop the created step on the Toggle box. The options that are added to the filter are displayed on the Toggle.

Select Toggle from Left Pane
Select Toggle from Left Pane – Einstein Analytics

Drag toggle to the Designer pane
Drag Toggle to the designer pane and Select the Step Created earlier

Ensure both filter custom dimensions are presentCreate the same toggle for a current year and last year. Follow the same steps given above to create a step for Yearly.

Step - Current Year

"<yoastmark

Create a Step

Now we create a step to show a chart with Account Industry data. Click on create a step and select under bars AccountId.Industry. Under Bar Length add criteria to count already available choosing the option: the sum of the amount. Rename the step and drag it to the Dashboard as shown below. Save your Dashboard and click on the preview to see how the toggle helps out.

default step accountid.industry
Creating a new Step AccountId.Industry selecting our Dataset Recipe

Select Bars - AccountId.Industry
Select Bars – AccountId.Industry

Select Bar Length - Sum of Amount
Select Bar Length – Sum of Amount

Rename Step, ensure the fields are reflecting correct data
Rename Step, ensure the fields are reflecting correct data then hit “Done”

Drag Industry Step onto the Dashboard
Drag Industry Step onto the Dashboard

Save the Toggle Dashboard and Hit Preview
Save the Toggle Dashboard and Hit Preview

On Preview, you can see the output by selecting on the toggle options as shown below.

Preview - Einstein Analytics : Tableau - Current Quarter
Preview – Einstein Analytics – Tableau – Current Quarter

"<yoastmark

"<yoastmark

"<yoastmark

"<yoastmark

So That’s it! If you are still facing problems, you can touch base with us over email team@absyz.com, we ABSYZ are one of the largest Salesforce integrators and a salesforce partner company providing End to End Salesforce implementation services for not just Tableau CRM but also for Salesforce Marketing Cloud and Salesforce Health Cloud. Do reach out to us for any help with integrations.

AnalyticsAnalytics CloudCloudDashboardEinstein AnalyticsEinstein DashboardHealthImplementation ServicesMarketingReportsSalesforceSalesforce IntegratorsTableauToggle WidgetTogglesWave Analytics
54
Like this post
8 Posts
Pushmitha Babu

Search Posts

Archives

Categories

Recent posts

Significance of UI/UX Design

Significance of UI/UX Design

Cyber-security in an uncertain world

Cyber-security in an uncertain world

The world of AR and VR

The world of AR and VR

The in-and-out of ML

The in-and-out of ML

Future of Mobility

Future of Mobility

  • Previous PostSalesforce Deployment Using Ant Migration Tool
  • Next PostIntroduction to ChatBots

Related Posts

REST API call from Einstein Analytics Dashboard
Apex REST Salesforce Salesforce Einstein Wave Analytics

REST API call from Einstein Analytics Dashboard

Create/Update Salesforce Picklist definitions using metadata API
Integration Metadata API Salesforce

Create/Update Salesforce Picklist definitions using metadata API

Leave a Reply (Cancel reply)

Your email address will not be published. Required fields are marked *

*
*

ABSYZ Logo
  • Home
  • About us
  • Article & Blogs
  • Careers
  • Get In Touch
  • Our Expertise
  • Our Approach
  • Products
  • Industries
  • Clients
  • White Papers

ABSYZ Software Consulting Pvt. Ltd.
USA: 49197 Wixom Tech Dr, Wixom, MI 48393, USA
M: +1.415.364.8055

India: 6th Floor, SS Techpark, PSR Prime, DLF Cyber City, Gachibowli, Hyderabad, Telangana – 500032
M: +91 79979 66174

Copyright ©2020 Absyz Inc. All Rights Reserved.

youngsoft
Copy