ABSYZ ABSYZ

  • Home

    Home

  • 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

Tableau CRM: Compute Relative Functionality In Recipe

Home / Article & Blogs / Salesforce / Tableau CRM: Compute Relative Functionality In Recipe
By Sravanthi Boga inSalesforce, Tableau

In Tableau CRM we have a compute relative node in dataflow where we can get Current, First, Next, Previous values of a grouping/partition and perform operations.

In order to achieve the same Compute Relative Functionality in Recipe we need to follow the below steps:

Example

Create a dataset using a recipe to show the recently created contact of an account. In order to achieve this in dataflow we can use a compute relative node. We can achieve same in recipe by following these steps:

Create a Recipe

πŸ‘‰ Create a recipe and add input data Contact object from SFDC_LOCAL connection. Select the columns from the contact object.

Join Related Object

πŸ‘‰ Click on the Related Objects tab and join the Account Object using Account Id.

Add Transform Node

πŸ‘‰ Click on Custom Formula and switch on Multiple row formula.

πŸ‘‰ Scroll down and add Partition By Account ID and Order By Created Date of contact. Select Sort Direction as Descending and Output Type as Number with default value as 0. Show results in the New Column.

Enter the formula

πŸ‘‰ In Window functions you have

First_Value – Returns the value from the First record in the partition.

Lag – Returns the value from the Previous record in the partition.

Current – Returns the value from the Current record in the partition.

Lead – Returns the value from the Next record in the partition.

Last_Value – Returns the value from the Last record in the partition.

πŸ‘‰ Functions to get the first value, previous value, current value, next value and last value of a grouping/partition respectively.

πŸ‘‰ Enter the formula in formula editor

case when first_value(Id) = current(Id) then 1 else 0 end 

πŸ‘‰ Apply the changes. 

❝Here Id refers to contact id.❞

Here first_value(Id) returns the contact id from the first contact record in grouping/partition.

Here current(Id) returns the contact id from the current contact record in grouping/partition.

πŸ‘‰ It checks for the matching of contact id and returns 1 if matched else 0 and as it is sorted by created date of contact in descending order, we get the recently created contact record of an account. New formula field First Value is created and results are stored in the field.

Add Filter Node

πŸ‘‰ Filter the data with the First Value field equals to 1. Data is filtered with only recently created contact for each account.

Add Output Node

πŸ‘‰ Write the results to a dataset. Name of the Dataset here is Latest Contacts. Save and run the recipe.

πŸ‘‰ After successfully running the recipe in Jobs Monitor explore the dataset.

Explore the dataset

πŸ‘‰ Lens shows only the recently created contact for each account. 

πŸ“ By following the above steps you can achieve compute relative functionality in the recipe in Tableau CRM.

get in touch
Eistein AnalyticsSalesforceSalesforce releaseTableau CRM
44
Like this post
3 Posts
Sravanthi Boga

Search Posts

Archives

Categories

Recent posts

All About The OmniStudio FlexCards

All About The OmniStudio FlexCards

Boost Customer Experience With Repeater Widget in CRM Analytics

Boost Customer Experience With Repeater Widget in CRM Analytics

Enhance Insights Using Custom Tooltips In CRM Analytics

Enhance Insights Using Custom Tooltips In CRM Analytics

Net zero as a Service In CPG Industry

Net zero as a Service In CPG Industry

How Do We Import an External Library into Salesforce Lightning?

How Do We Import an External Library into Salesforce Lightning?

  • Salesforce CRM Analytics For Retail Industry
    Previous PostSalesforce CRM Analytics For Retail Industry
  • Next PostData Retriever using Metadata API in Salesforce
    Salesforce CRM Analytics For Retail Industry

Related Posts

All About The OmniStudio FlexCards
OmniStudio Salesforce

All About The OmniStudio FlexCards

Boost Customer Experience With Repeater Widget in CRM Analytics
CRM Analytics Salesforce

Boost Customer Experience With Repeater Widget in CRM Analytics

Enhance Insights Using Custom Tooltips In CRM Analytics
CRM Analytics Salesforce

Enhance Insights Using Custom Tooltips In CRM Analytics

How Do We Import an External Library into Salesforce Lightning?
Lightning Salesforce

How Do We Import an External Library into Salesforce Lightning?

Leave a Reply (Cancel reply)

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

*
*

ABSYZ Logo

INDIA | USA | UAE

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

Copyright Β©2022 Absyz Inc. All Rights Reserved.

youngsoft
Copy
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking β€œACCEPT ALL”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent. Privacy Policy
Cookie SettingsREJECT ALLACCEPT ALL
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled

Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.

CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.

Functional

Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.

Performance

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

Analytics

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.

Advertisement

Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.

Others

Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.

SAVE & ACCEPT