Skip to Content
Tableau Prep即学即用
book

Tableau Prep即学即用

by Carl Allchin
August 2022
Beginner to intermediate
463 pages
9h 22m
Chinese
China Electric Power Press Ltd.
Content preview from Tableau Prep即学即用
64
7
百分比
根据所做分析的具体情况,可能会或不希望将百分比值乘以
100
。当使用像
Tableau Desktop
这样的软件时,如果将格式设置为百分比,那么
31%
在数据集
中将实际存储为
0.31
。如果百分比被存储为完整值,在这个例子中是
31
,则可
以在
Tableau Desktop
中使用
0\%
的自定义数字格式化形式,以正确的格式显示
百分比。与货币一样,合理地命名列头将有助于向用户表明他们应该如何理解
和使用列。
7.6
控制数值数据的函数
计算字段会在数据集中创建一列新的数据(除非给计算字段取了与现有字段相同的
名称,在这种情况下,它将覆盖原始内容)。可以在清理步骤的
Profile
(概况)窗
格以及其他地方的数据字段顶部的省略号菜单中创建一个计算。计算字段下面的蓝
色文本是计算的函数,它决定了对数据字段的操作。在图
7-2
中,
round()
函数的
作用是将利润率数据字段四舍五入到小数点后一位。
7
-
2
:将利润率字段四舍五入到小数点后一位
我在本书中同时使用大写和小写的函数名,因为
Tableau Prep
同时接受这两
种名称。
在创建计算字段时,一定要注意这些元素,以免返回错误:
圆括号
( )
用在函数后面,括号中的文字表示函数的作用内容。
方括号
[ ]
在计算名称中有空格的情况下使用(如“
Profit Ratio
”,利润率)。方括号围
绕着数据字段的名称,使其变成橙色。
处理数字
65
单引号或双引号
''
""
用于表示一个字符串字段。
数字
当数字被输入计算字段中时,没有任何其他标点,则表示它们是常数。
双正斜线 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

深度学习:核心原理与案例分析

深度学习:核心原理与案例分析

Posts & Telecom Press, Ahmed Menshawy
Python金融实战

Python金融实战

Posts & Telecom Press, Yuxing Yan
Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu
HBase管理指南

HBase管理指南

Posts & Telecom Press, Yifeng Jiang

Publisher Resources

ISBN: 9787519864439