Tableau Lab 2 Calculations and Parameters. Data Set The fundraising data set uses a JOIN to combine two worksheets - Funds and Pledges - from one source.

Slides:



Advertisements
Similar presentations
Lesson 3 Working with Formulas.
Advertisements

Formulas, Ranges, and Functions. Formulas n Formulas perform operations such as addition, multiplication, and comparison on worksheet values. n Formulas.
CS&E 1111 Exfunctions Using Functions in Excel Objectives: Using Excel functions l SUM, MIN, MAX, AVERAGE, COUNT, COUNTA l ROUND l COUNTIF, SUMIF, AVERAGEIF.
CSCI 6962: Server-side Design and Programming Input Validation and Error Handling.
Computer Science & Engineering 2111 Text Functions 1CSE 2111 Lecture-Text Functions.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 1 1 Microsoft Office Excel 2003.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
Pre-defined System Functions Simple IF & VLOOKUP.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 2 1 Microsoft Office Excel 2003 Tutorial 2 – Working With Formulas and Functions.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
1 Computing for Todays Lecture 8 Yumei Huo Spring 2006.
Microsoft Excel 2003 Illustrated Complete Excel and Advanced Worksheet Management Customizing.
1 Excel Lesson 3 Using Formulas and Functions Microsoft Office 2010 Fundamentals Story / Walls.
End Show Introduction to Electronic Spreadsheets Unit 3.
Entering Data in Excel. Entering numbers, text, a date, or a time n 1Click the cell where you want to enter data. n 2Type the data and press ENTER or.
Excel Web App By: Ms. Fatima Shannag.
FIRST COURSE Excel Lecture. XP 2 Introducing Excel Microsoft Office Excel 2007 (or Excel) is a computer program used to enter, analyze, and present quantitative.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Exploring Formulas.
Storing data Getting data out Data types Ruby as a foundation Program Variables Click icon to hear comments (the download may take a minute)
Excel 2007 Part (2) Dr. Susan Al Naqshbandi
XP New Perspectives on Microsoft Excel 2002 Tutorial 2 1 Microsoft Excel 2002 Tutorial 2 – Working With Formulas and Functions.
XP Copyright 2003 Peter McDevitt 1 Microsoft Excel 2002 Lecture 2 – Working With Formulas and Functions.
Intro to Excel - Session 7.11 Tutorial 7 - Session 7.1 Developing an Excel Application.
Chapter 06: Lecture Notes (CSIT 104) 1 Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Copyright © 2008 Prentice-Hall. All rights reserved.
Lesson 4 Cell Reference Formulas. Working with Cell References continued… Relative Cell Reference A relative cell reference means that the cell value.
Computer Science 1000 Spreadsheets II Permission to redistribute these slides is strictly prohibited without permission.
Dani Vainstein1 VBScript Session 9. Dani Vainstein2 What we learn last session? VBScript coding conventions. Code convention usage for constants, variables,
WEB DESIGN AND PROGRAMMING Introduction to Javascript.
XP Excel Tutorial 3 Working with Formulas and Functions.
XP Abdul Hameed 1 Microsoft Office Excel 2013 Tutorial 2 – Working With Formulas and Functions.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall1 Exploring Microsoft Office Access Committed to Shaping the Next Generation.
© 2002 ComputerPREP, Inc. All rights reserved. Excel 2000: Database Management and Analysis.
Visual Basic 2010 How to Program © by Pearson Education, Inc. All Rights Reserved.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 6 Value- Returning Functions and Modules.
Class 3 Programming in Visual Basic. Class Objectives Learn about input/output Learn about strings Learn about subroutines Learn about arrays Learn about.
Excel Spreadsheet basics. Excel Sheets and Books  Spreadsheet: tool to analyze, chart and manage data for personal, business and financial use Worksheet:
Copyright © 2008 Pearson Prentice Hall. All rights reserved Chapter 6 Data Tables and Amortization Tables Exploring Microsoft Office Excel 2007.
Lesson 5: Working with Formulas and Functions Logical and 3D Formulas.
WHAT IS A DATABASE? A DATABASE IS A COLLECTION OF DATA RELATED TO A PARTICULAR TOPIC OR PURPOSE OR TO PUT IT SIMPLY A GENERAL PURPOSE CONTAINER FOR STORING.
A Skills Approach Access 2010 Working with Tables © 2012 The McGraw-Hill Companies, Inc. All rights reserved Chapter 2.
Excel Web App By: Ms. Fatima Shannag.
XP 1 Microsoft Office Excel 2003 Working With Formulas and Functions.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
® Microsoft Access 2010 Tutorial 5 Creating Advanced Queries and Enhancing Table Design.
Access Queries Agenda 6/16/14 Review Access Project Part 1, answer questions Discuss queries: Turning data stored in a database into information for decision.
1 Using Conditional Formatting & Data Validation Applications of Spreadsheets.
Part:2.  Keywords are words with special meaning in JavaScript  Keyword var ◦ Used to declare the names of variables ◦ A variable is a location in the.
XP 1 ﴀ New Perspectives on Microsoft Office 2003, Premium Edition Excel Tutorial 2 Microsoft Office Excel 2003 Tutorial 2 – Working With Formulas and Functions.
Excel part 5 Working with Excel Tables, PivotTables, and PivotCharts.
Variables and Strings. Variables  When we are writing programs, we will frequently have to remember a value for later use  We will want to give this.
 Variables can store data of different types, and different data types can do different things.  PHP supports the following data types:  String  Integer.
Variables and Expressions Programming Right from the Start with Visual Basic.NET 1/e 7.
Chapter 10: Working with Large Data Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Microsoft Excel Prepared by the Academic Faculty Members of IT.
Microsoft Access Prepared by the Academic Faculty Members of IT.
COMPREHENSIVE Access Tutorial 11 Using and Writing Visual Basic for Applications Code.
Exporting & Formatting Budgets from FlexGen, NextGen & Zortec into Excel.
Resource Review Excel formula basics Demonstrate how to enter manual formulas Examine some of the available functions and their usage Discuss the.
Making Interactive Programs with Visual Basic .NET
Excel Chapter 1 Creating a Worksheet and an Embedded Chart
Introduction to Programming
Chapter 6 Modifying Cell Styles
Excel Part 3 Working with Formulas and Functions
2.5 Another Java Application: Adding Integers
Data Validation and Protecting Workbook
Part A – Doing Your Own Input Validation with Simple VB Tools
Topics Introduction to Value-returning Functions: Generating Random Numbers Writing Your Own Value-Returning Functions The math Module Storing Functions.
C# Revision Cards Data types
Chapter 6 Modifying Cell Styles
Presentation transcript:

Tableau Lab 2 Calculations and Parameters

Data Set The fundraising data set uses a JOIN to combine two worksheets - Funds and Pledges - from one source Excel workbook. The column common between the two worksheets, Fund ID, was used as the linking field.

Calculated Fields To create a calculated field, click on the dropdown arrow icon near the magnifying lens in the Dimensions window and select "Create Calculated Field..."

Calculated Fields In the Formula text area, you can include fields, parameters and functions. - Fields are the columns available from your data sources. You can double click them to include them in your formula, or simply type the name in. - Parameters are user-driven values. You can include your user's input in the formula, and allow users to change the input via a parameter control on a worksheet or dashboard. - Functions provide specific functionalities and computations. Tableau has a library of functions that you can use. If you are unfamiliar with these, you can click on a function name and its name, syntax, and an example will show up in the right hand descriptions pane.

Parameters You can add interactivity and allow your users to interact with your worksheets and dashboards using parameters. Parameters are values that can change and drive other information in your views.

Parameters To create a parameter, click on the dropdown arrow icon near the magnifying lens in the Dimensions window and select "Create Parameter..."

Parameters This opens up a parameter dialog box. In this window, you can fill in the Name, Properties, and depending on the allowable values, a few more settings. In the Formula text area, you can include fields, parameters and functions. The data types can be Integer, Float, String, Boolean, Date and Date & time. The display formats can be changed accordingly. You can also constrain the allowable values to a list, or a range.

Parameters If you want your users to control the parameter value, you will need to show the parameter control. To do this, right click on the parameter in the Parameters section, and select "Show Parameter Control"

Data Type Data type or simply type is a classification identifying one of various types of data Tableau supports string, date/datetime, number, and boolean data types. These data types are automatically handled in the proper fashion. However, if you create calculated fields of your own, you need to be aware of how to use and combine the different data types in formulas. For example, you cannot add a string to a number. Also, many functions that are available to you when you define a calculation only work when they are applied to specific data types. – For example, the DATEPART() function can accept only a date/datetime data type as an argument. – So, you can write DATEPART('year',#April 15,2004#) and expect a valid result: – You cannot write DATEPART('year',"Tom Sawyer") and expect a valid result. In fact, this example returns an error because "Tom Sawyer" is a string, not a date/datetime.

STRING A sequence of zero or more characters. For example, "Wisconsin", "ID-44400", and "Tom Sawyer" are all strings. Strings are recognized by single or double quotes. The quote character itself can be included in a string by repeating it. For example, ‘O''Hanrahan’.

DATE/DATETIME A date or a datetime. For example "January 23, 1972" or "January 23, :32:00 AM". If you would like a date written in long-hand style to be interpreted as a a date/datetime, place the # sign on either side of it. For instance, “January 23, 1972” is treated as a string data type but #January 23, 1972# is treated as a date/datetime data type.

BOOLEAN A field that contains the values TRUE or FALSE. An unknown value arises when the result of a comparison is unknown. For example, the expression 7 > Null yields unknown. Unknown booleans are automatically converted to Null

Float and Integer Float - Stands for floating point – The number can contain a decimal component Integer – whole number

IIF( SUM([Pledge Amount]) >= , //if condition is true "Major Gift Donor", //otherwise "Regular Donor" )