Relative Content

Tag Archive for tableau-api

How to extract Physical table from hyper file column definition

If you open a hyper file saved from extract in Tableau and inspect the data source ( Which usually is Extract.Extract) you will see the Field Name, Physical Column and Remote Field name. However this is not available in Hyper API (see the code below) I can only get the field name and the field type but not Physical Columns and Remote field. Is there other way to query it ?

How to extract Physical table from hype file column definition

If you open a hyper file saved from extract in Tableau and inspect the data source ( Which usually is Extract.Extract) you will see the Field Name, Physical Column and Remote Field name. However this is not available in Hyper API (see the code below) I can only get the field name and the field type but not Physical Columns and Remote field. Is there other way to query it ?

How to downlopad workbook from tableau retain folder

`import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream; import java.net.URI; import java.nio.file.Files; import java.nio.file.Paths; import java.util.HashMap; import java.util.Map; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.StringEntity; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClients; import org.apache.http.util.EntityUtils; import org.json.JSONArray; import org.json.JSONObject; public class TableauWorkbookDownloader { private static final String SERVER_URL = “https://your-tableau-server.com”; private static final String API_VERSION = […]

Color Tableau map based on two fields

I am trying to define the colors of states on a map based on two fields. The first is the total sales for each state, where I want states to be shaded light to dark. The second is whether the state has more domestic sales or foreign sales (domestic + foreign = total sales). If the state had more domestic sales it should be pink. If it had more foreign sales it should be teal. For example, Texas had high total sales but more foreign than domestic so it should be dark teal. Oregon had low total sales but had more domestic than foreign so it should be light pink.