tableau

Calculation of distance using lat long in tableau

喜你入骨 提交于 2019-12-11 02:54:16
问题 I have a data file with millions of rows with lat and long columns as 2 of the field in the columns. Would like to ask if there is any ways to calculate the total distance for (e.g. Model X "Index 0 --> Index1 , Index 1--> Index 3" ) using the lat long field Index,Model,lat,long 0,X,1.3539,103.84 1,X,1.3545,103.84 2,Y,1.3839,103.7002 3,X,1.3548,103.84 4,Y,1.3831,103.71 5,Z,1.3139,103.88 Please advice! 回答1: This formula will calculate distance. But to make it work, you'll need to either use

Return Value first time condition is met

血红的双手。 提交于 2019-12-11 01:28:20
问题 I have a calculation, and I only want to return the left most value ie, the first time the condition is met. In the images it shows 95% 96% etc etc I only care for the column 5 where the condition of 95 is met. EDIT(more info) Ok so the percentages are calculated this way. ROUND( RUNNING_SUM( SUM( [days_to_close_cnt] ) )/ SUM([newo_dt_cnt]),2 ) Using and the "Days to Close" gives me the column information. The Line graph looks like this. if [% Completed] >= .98 and [% Completed] < 1 then INT(

Default range for date range filter in tableau

ぃ、小莉子 提交于 2019-12-10 19:19:13
问题 I want to set the default range on a date filter to show me the last 10 days - so basically looking at the lastDate (max date) in the data and default filtering only on the last 10 days (maxDate - 10) How it looks now: I still would want to the see the entire range bar on the dashboard and give the user the ability to modify the selected range if he wants to. The maxDate changes after every data refresh so it has to be some sort of a condition that is applied to the filter. How I want it to

ODBC driver for HBase/Phoenix

不打扰是莪最后的温柔 提交于 2019-12-10 18:06:20
问题 I need to connect Tableau to HBase or Phoenix and Tableau does not support JDBC. Bummer! I've read about the proprietary Simba driver but haven't seen any reports of people using it. I don't feel like forking over money when it's not ideal, and my employer feels the same way. Is there another way to connect Tableau to HBase or Phoenix? How are other people doing it? I don't like the idea of using Hive to connect to HBase because one of the main reasons to go away from Hive is its atrocious

Tableau read and update data source ( From Web data connector) automatically

早过忘川 提交于 2019-12-10 17:52:01
问题 I am installed and added data source (web data connector) inside tableau Web data connector URL : http://localhost/datasouceexample/example.html we data connector holds some data. import data from web data connector and created graphs using the data's from the web data connector URL .Generated graph and saved in "tableau public" option. Embed the code inside my web application . Graphs shows perfectly. My question is about the automatic data updation . 1 ) I want to update graph automatically

Tableau Filtering on duplicates

前提是你 提交于 2019-12-10 15:07:39
问题 I have a dataset that looks similar to this: As you can see some ABNs have multiple business names attached while others have just one. I want to create a filter that allows the user to see just those rows where there are multiple names to each ABN. For example, a filer that will filter out ABN 456. I can imagine how I would write that in SQL, but cannot get my head around how to do it in Tableau. Any help would be appreciated. 回答1: I believe the easiest way to do that is through a

Connecting from Tableau Desktop to Apache Hive

℡╲_俬逩灬. 提交于 2019-12-08 19:00:28
When testing the connection from Tableau Desktop to Apache Hive Server, it throws an error that the drivers have not be installed. Tableau is providing drivers for only Cloudera, HortonWorks and MapR. But, the drivers are not provided for Apache Hive. How to connect to from Tableau Desktop to Apache Hive? I got it working using the MapR driver. Reference http://doc.mapr.com/display/MapR/Hive+ODBC+Connector#HiveODBCConnector-InstallingtheHiveODBCConnectoronWindows 来源: https://stackoverflow.com/questions/21489138/connecting-from-tableau-desktop-to-apache-hive

Regex for Parsing JSON

怎甘沉沦 提交于 2019-12-08 13:30:52
I have a column of data I'm reading in Tableau directly from Redshift. This column contains a JSON object. It looks like this: {"Age": 58, "City": "Wisconsin Rapids", "Race": "Other", "State": "Wisconsin", "Gender": "Female", "Country": "United States"} I wish to extract this data by generating a column with a calculated field for each data point of interest using Tableau's REGEXP_EXTRACT function. I.e. an Age column, a City column etc. How do I write a line of regular expressions to get the value of 58 for Age, Wisoncsin Rapids for City, etc. Thanks! You can use this regex : "Age"\s?+:\s?+"?(

Gantt over time with summed bar

雨燕双飞 提交于 2019-12-08 10:58:02
问题 I'm having trouble creating the following chart in Tableau. I have data that looks like this: name date count a 11/10/2012 2 a 12/10/2012 3 a 13/10/2012 2 b 12/10/2012 6 b 13/10/2012 2 b 14/10/2012 3 c 14/10/2012 2 c 15/10/2012 2 And I want to create a bar chart that has the sum of the count on the y axis and time on the x axis. The width of the bar should be the length of the time, like a Gantt chart. Each name has its own bar. Here is an image that shows what I am after. The bars should

Hive tables Not Visible in Tableau

瘦欲@ 提交于 2019-12-08 10:36:07
问题 I have created a table, ztest7 in the default database in my hive. I am able to query it using beeline. In tableau, I can query it using a custom sql. However the table does NOT show when I search for it. Am I missing something here? Tableau Desktop Version = v10.1.1 Hive = v2.0.1 Spark = v2.1.0 Best Regards 回答1: I have the same issue with Tableau Desktop 10 (mac) to Hive (2.1.1) via Spark SQL 2.1 (on centos 7 server) This is what I got from Tableau Support: In Tableau Desktop, the ability to