From the course: Tableau and R for Analytics Projects
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Create a calculated field in Tableau
From the course: Tableau and R for Analytics Projects
Create a calculated field in Tableau
- One of the key techniques to integrating Tableau and R is to create a calculated field in Tableau that calls an R function. Rather than jump in and create this advanced type of calculated field. I wanted to show you how to combine two fields to calculate a value that's not included in the original data set. With these techniques in mind you can go forth and create a calculated field that's more complicated when you want to work with R. My sample file is 02_05_calculated and you can find it in the chapter 2 folder of the exercise files collection. In this data set I have information about orders. Customer name, order date, and so on. I currently have a data table broken down by product category, bottle or case, and product name for the different varieties of olive oil sold by this company. Under measures, you'll see that I have price and quantity. Price is the cost of the individual item, either bottle or…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.