tableau

When are rows displayed as columns in tableau

房东的猫 提交于 2019-12-24 17:43:44
问题 I'm having trouble understanding the following picture where the measures listed as rows appear as columns: The picture is from an article which contained the following explanation: Step 6: Add Latest Week Volume, Prior Week Volume, Change and % Change to the Rows shelf and then convert them all to discrete. This will make them appear as columns of data. Why is the bolded text true? Why do the rows appear as columns? 回答1: The following mental substitution works for discrete (blue) fields.

how to filter data on different sheets based on clicks on Tableau

家住魔仙堡 提交于 2019-12-24 17:28:34
问题 How to filter data on different worksheets based on clicks in Tableau. For example: Sheet 1 - The partition looks like this: +------+-------+-----+ | Name | Month | ... | +------+-------+-----+ | A | Jan | ... | | B | Jan | ... | | C | Feb | ... | | D | Mar | ... | | ... | ... | ... | +------+-------+-----+ Sheet 2 - The partition includes Month. When I click on Jan on Sheet 1, can Tableau filter Jan on Sheet 2? I tried including an URL and making the filter universal to all sheets but filter

Tableau: Display Different Number Formats for the Same Measure

核能气质少年 提交于 2019-12-24 10:57:10
问题 I have a field in my dashboard called outcome that displays the performance results for a doctor's office for multiple measures. A majority of the outcome values are rates and should be displayed as percentages. Unfortunately, there are two outcome s, "Utilization Management: Measure 3" and "Utilization Management: Measure 5" that are NOT rates, but actually number values. Is there a way to display the outcome field in my table so that all 'Measures' that are NOT "Utilization Management:

tableau waterfall chart with mixed colors

不打扰是莪最后的温柔 提交于 2019-12-24 10:44:35
问题 I started working with Tableau and found out how to do waterfall charts (Gantt-charts, rolling sum for y-axis and negative value for length of bar. See here: tableau tutorial waterfall charts) Now my question would be if there is a possibility to split the color by some category? To show what I'm talking about I set up some waterfalls with excel powerpoint. The first one without a split by a category and the second one with a split by category. I would appreciate any help 回答1: It is as simple

Calculate price difference for each row in tableau

↘锁芯ラ 提交于 2019-12-24 08:08:04
问题 I have a report that returns the data like Item | Price | Difference A | 1.00 | 0 B | 2.00 | 1.00 C | 0.50 | -0.50 I have a parameter that allows to select Item, I wonder how can I write up formula for the Difference that would recalculate based on user selection: i.e if use would select item B than all the price should be calculated as difference between the price for current row and the price for item B. Expected output if user would select item B A | 1.00 | -1.00 B | 2.00 | 0.00 C | 0.50 |

How to make a random sampling of 20% of records in Tableau?

梦想与她 提交于 2019-12-24 07:54:20
问题 In Tableau 9.2, is it possible to generate a random sample of records? If so, how could I do this? Say I have a field called Field1, then I intend to only select 20% of the records. So far, I have found how to a generate random integer in Tableau, though it is bewildering that Tableau does not already have a function for this: Random Seed (DATEPART('second', NOW()) + 1) * (DATEPART('minute', NOW()) + 1) * (DATEPART('hour', NOW()) + 1) * (DATEPART('day', NOW()) + 1) Random Number ((PREVIOUS

ERR_TOO_MANY_REDIRECTS: Is my code locked in a loop?

拜拜、爱过 提交于 2019-12-24 01:48:19
问题 I'm trying to work through the Tableau .js API tutorial, and immediately I got stuck with a ERR_TOO_MANY_REDIRECTS error when I tried to use the online example with a chart I posted to our server. I am pretty new to this work, so I thought I'd offer the relevant snippet and see if you can spot anything that's likely to generate re-directs in a loop. Some notes: "" is just a dummy substituion. It is not the problem. Here is the code. Thanks for any advice! <!DOCTYPE html> <html> <meta content=

Tableau--如何将现有时间字段做年-季度-月-天-时分秒 分层结构展开--Dateparse函数实例讲解

大兔子大兔子 提交于 2019-12-24 00:26:46
适用对象 当拥有数据类型类似于下图: 例:我们拥有年份-月份维度,想要展开为年份-季度-月度维度 (即包含关系为:A包含B包含C,我们有A,C,想展开为A,B,C) 同理可推广至时分秒展开。 此时,导入到Tableau中,应该出现如下所示的维度 而我们期望得到分层结构(下图基础上加入季度),做到逐层展开图例: 具体操作及函数讲解 点击维度小三角,选择:创建计算字段 创建公式如下,【years】–替换输入年份 【months】–替换输入月份 DATEPARSE(“YYYY.M”,([years]+"."+[months])) 将生成的测试字段拖入到表中显示(此时年份出现+选项,可展开): 展开结果如下: Dateparse函数 函数的作用是将字符串转换为指定格式的日期; 在Tableau默认的格式中,如果你展开到月份,则标准的格式为年-季度-月; 如果你的数据源中没有季度,则会自动根据展开的月份判断季度层次加入; 由此,如果我们想展开固定的层次,只需要在跨级中使用Dateparse函数即可。 来源: CSDN 作者: not color ancestor 链接: https://blog.csdn.net/weixin_41744624/article/details/103670924

Replicate R cor() function in Tableau

南笙酒味 提交于 2019-12-24 00:23:49
问题 Why is there no tutorial online about replicating R's basic cor() function in tableau. All I can find are tutorials to visualize correlations of values by dimension. I just want to see how all variables in my data are correlated to each other. And thanks for the support @user1036719 回答1: All, I have figured out the simplest way to solve my own problem. With the introduction of Tableau 9.0, you can load .RData files directly into Tableau. Here is how you go about it: 1) Simply save() your

How to refresh the extracted datasource automatically in Tableau Desktop at specific intervals

独自空忆成欢 提交于 2019-12-23 22:43:57
问题 I'm using Tableau Desktop 8.0 to create a visualization (.twbx file) by extracting the data from MySQL database. But this database is updated on weekly basis. That is, at the beginning of every week the data in the database changes. So is it possible for me to schedule a task of refreshing the extracted datasource automatically at specific interval of time(i.e. on weekly basis in my case) so that, at beginning of every week the datasource should be refreshed according to the new updates in