Skip to content

Quick Win's #Learn Grow Evolve

#Tableau CRM Analytics , #Einstein Prediction Builder (EPB) #Einstein Discovery

Dataflow Compute Expression Examples

Posted on November 17, 2020 By Gayatri Sharma

In this article, I will share some Compute expressions examples. As you know Compute expression is basically used to add additional fields, and these additional derived fields preparation formulas are very important for datasets building process.

Below are few very simple expressions to get started with compute expressions and understand different ways of building them.

Arithmetic operators: for creating Measure/Numeric fields

Example:

Numeric Type Measure field created with Arithmetic operations
With Numeric/Measure fields we need to mention the precision and scale. Output example 1000.10.

String operators: for creating Dimension/Text fields

Example 1:

show data in the format: 32-2020

Example 2:

Output: N/A

Example 3:

output: 2020

Example 4:

output number 2020

Date functions: to create Date fields

Example 1:

Output example 17-05-2020

Date Format examples: “yyyy-MM-dd”, “yyyy-MM-dd HH:mm:ss”

Case Statements

Example 1:

Example 2:

Example 3:

num1, num2 are measure fields

Example 4:

Example 5:

Example 6:

Example 7:

multiple condition with “OR” and “AND” operators

Example 8:

Nested Case Statements

Example 1:

Example 2:

Hope this collection of examples help you next time you are building Dataflow/Datasets.

Happy reading šŸ™‚

Thank you.

Gayatri Sharma

Gayatri Sharma

I have 8+ yrs of experience in Sales, Service, Community and Analytics cloud. I love converting business intuition with technical skills into intelligent business analytics. I’m honored to be an Einstein Analytics Champion.
Also writing @Medium: https://medium.com/@gayatrisharma88

Post navigation

Previous Post: Dataflow Compute Expression Transformation in Tableau CRM formerly called Salesforce Einstein Analytics
Next Post: Salesforce Einstein Dataset XMD and Einstein Dashboard JSON file

Blog Authors

avatar for Gayatri SharmaGayatri Sharma (4)
avatar for SivaKrishna MarriSivaKrishna Marri (4)

Visitor Counter

0016345

Latest Posts

  • Dataflow Compute Expression Transformation in Tableau CRM formerly called Salesforce Einstein Analytics
  • History of Dataset/Sobject in Tableau CRM formerly called Salesforce Einstein Analytics- trending of Salesforce Data

Thank You for visiting. Please connect on LinkedIn to stay updated on latest content.

Powered by PressBook WordPress theme