Skip to main content

#Tableau Desktop & Web Authoring270 discussing

We have a tableau dashboard using 2 different type of data sources- Snowflake and Google drive sheet. After changing the connection method from Username- password to Key-pair, scheduled extract run started failing. We are getting below error -  

This job failed on 16 Apr 2026, 14:25 after running for 0.1 min because of: com.tableausoftware.server.status.reporting.TableauRuntimeException: One or more connections in this data source need attention:myaccount.snowflakecomputing.com: [Snowflake][Snowflake] (31) Password not found. tableau_error_source=Client|tableau_status_code=16|tableau_error_code=0x28911C50

 

We have tried multiple changes like :-  

1. Made the changes in the data source connection to use the key placed at C drive of our system, republished the extract and then added the same credentials in the My account setting of Tableau Cloud. Republish is working fine , with all the data getting refreshed, but scheduled extract is failing . 

2. We have placed the key in the shared drive /Google shared drive , then also it is failing, so that it will be able to access the key, even without our personal folder  

3. We have put the connection parameters in the advanced tab of the tableau connection in desktop like -AUTHENTICATOR=SNOWFLAKE_JWT;PRIV_KEY_FILE=

C:\SnowflakeKeys\rsa_key.pem;  

but then also it is failing.   

4. We have republished the whole dashboard with different name, so that it can be treated as new extract, but that approach also failed. 

 

We are not sure, whether we are missing something on the connection setting between tableau and snowflake. Need help, if any one faced same issue or any one able to identify the root cause.  

 

#Tableau Desktop & Web Authoring

1 answer
0/9000

Hi,  

 

When I add dimensions into my LOD calculation, it over-inflates my values. How do I create an LOD calculation that won't over-inflate values, but will also work when filters are used without using 'Add to Context'?  The PERCENTILE calculation will not be utilized in a view. It will be used as a Filter to remove outliers.

 

For example, here are a couple of ways that I'm thinking I can approach this:   

 

Method 1:  Count items in the filter; when count is < max count then do this calculation, otherwise do this calculation.  

 

Method 2: Possibly use a nested LOD, but I'm not sure if this will even work the way I'm thinking it would.   

 

Method 3: Use sets to get around Add to Context, but I can't get the option to show up that says: "All Using Related Data Sources" when I try to use the set as a filter across data sources. 

 

But basically, this is what I'm trying to do something like this: 

 

When Filter is selected to (All), do this LOD:  

{FIXED [c.Choose Dates] : SUM([Sales])} 

 

When Filter has any item(s) selected, do this LOD, but this also inflates the values as well:

{FIXED [c.Choose Dates], [Sub-Category]: SUM([Sales])} 

 

**Disclaimer:  I can't use "Add to Context" or Table Calcs to solve this problem that is why I'm looking into alternative methods to approach this problem.  

 

**When trying to use an Exclude / Include (instead of FIXED), they need to be aggregated, but I need my percentile calculation to calculate on a row-by-row basis first, and then take the sum; so I was also running into a road-block with Exclude / Include as well. Maybe, I'm missing a step though, and that's why it's not working.

 

Thank you so much for any help on this! 

 

**Attached a sample workbook. 

 

LOD; How to create a workaround to not have to use 'Add to Context' for LOD calculations

 

#Tableau Desktop & Web Authoring

7 answers
  1. Yesterday, 5:11 PM

    @Beckie Rohr

     

     

    calculations used previously 

     

    Divided wLOD: [Numerator wLOD] / [Denominator wLOD] 

     

    Numerator wLOD: { FIXED [Customer ID]:SUM(IF [c.Choose Dates]=TRUE THEN [Sales] END)} 

     

    Denominator wLOD: { FIXED [Customer ID]:COUNTD(IF [c.Choose Dates]=TRUE THEN DATETRUNC('month',[Order Date]) END)} 

     

    Percentile Cut-off Amount: { FIXED [c.Choose Dates]: PERCENTILE([Divided wLOD],[p.Percentile])} 

     

    This was working fine for entire data. But the requirement is to able to use sub category filter as well. So the client tried the below formula 

     

    Percentile Cut-off Amount: { FIXED [c.Choose Dates],[Sub-Category]: PERCENTILE([Divided wLOD],[p.Percentile])} 

     

    and was getting inflated values. That is because the subCategory filter needs to be added in the Numerator and denominator measures which client didn't do. 

     

    Context filter worked in this case because in case of context filters LODs are calculated after the filter is appled. 

     

    New calculations: 

    Divided wLOD New(SubCat): 

    { FIXED [Customer ID], [Sub-Category]: 

        SUM(IF [c.Choose Dates]=TRUE THEN [Sales] END)} 

    { FIXED [Customer ID], [Sub-Category]: 

        COUNTD(IF [c.Choose Dates]=TRUE THEN DATETRUNC('month',[Order Date]) END)} 

     

    Percentile Cut-off Amount: { FIXED [c.Choose Dates],[Sub-Category]: PERCENTILE([Divided wLOD],[p.Percentile])} 

     

    Percentile Cut-off Amount  New: { FIXED [Sub-Category]: PERCENTILE([Divided wLOD New(SubCat)], [p.Percentile]) } 

     

    Final Cal: IF COUNTD([Sub-Category])!= sum({ FIXED :COUNTD([Sub-Category])}) THEN SUM([Percentile Cut-off Amount  New] ) 

    ELSE 

    SUM([Percentile Cut-off Amount]) end 

0/9000

Hi, i'm trying to connect a PostgreSQL data source to my Tableau Desktop version 2026.1 (Apple Silicon). I've already downloaded the driver and placed it in the ~/Library/Tableau/Drivers folder, but I keep getting the following error: 

 

An error occurred while communicating with the PostgreSQL data source 'Untitled Data Source'. Bad Connection: Tableau could not connect to the data source. 

Error Code: DACBE23F 

The JDBC driver host process failed to respond. 

Unable to connect to the PostgreSQL server "my.server". Check that the server is running and that you have access privileges to the requested database. 

 

I have no problem accessing this server from my machine, so it's not a permissions issue. I've tried every solution I can find online, but nothing has worked. I need help.  

 

I'm using a MacBook with an Apple M4 chip and Sequoia 15.7.5 OS. 

 

#Tableau Desktop & Web Authoring

11 answers
0/9000

Hi everyone,

I have a table where each Selected Customer Type has multiple countries associated with it. I want to display all countries in a single row, separated by commas.

For example:

  • Currys → United Kingdom
  • AO → United Kingdom, France, Germany, Italy, Poland

I tried { FIXED [Selected Customer Type] : MIN([Country]) } but this only returns one country.

I know Tableau doesn't have a native STRING_AGG equivalent, but is there any workaround to concatenate multiple string values into a single cell without writing separate calculations for each value?

Note: I don't have access to Tableau Prep, and my data source is SQL but Selected Customer Type is a calculated field in Tableau so I can't use Custom SQL for this.

Any help is appreciated, thank you! 

How to concatenate string values in a single cell

 

 

 

 

#Trailhead Challenges  #Tableau Desktop & Web Authoring  #Reports & Dashboards  #Learning

0/9000

Hello,

Over the years my tableau dashboard has several fields which are not used anywhere in the dashboard.

I know the hide all unused fields but if I am correct that only hides the fields from display, not from the extract.

 

I would like to remove those fields from my view (Dim/Measure pane) AND from the extract as well.

 

Any suggestions please ?

 

Regards
2 answers
  1. Today, 2:04 PM

    This is one of those things that gets really annoying as a workbook grows over time. People add calculated fields for one-off analysis and never clean them up, and before you know it the data pane is a mess. 

     

    The built-in "Hide All Unused Fields" option under the data pane dropdown menu is a good starting point. It hides anything not actively used in a sheet. But the tricky part is that a field might be used in just one sheet you forgot about, or it might be referenced inside another calculated field even if it doesn't show up directly on any view. 

     

    This is one of those things that gets really annoying as a workbook grows over time.

     

     

0/9000

Hello All,

I'm new to tableau. I'm looking for limiting data in tableau using live connection. I have a table which has very huge data. I have a field which has 70 values but i want to load only the latest 20 values. Is it possible to limit data during live extract?

3 answers
  1. Jun 2, 2022, 5:08 PM

    @anil danda​ I am assuming values = nr of rows.

    If you're using data base you can convert it to custom SQL and make sure include that filtering options.

0/9000

Hello All,

I'm facing issue with calculation condition. My requirement is to show % symbol to one of the dimension. I have created a table with 2 dimensions (Test1 and test2) and 3 measures. I need a condition where if my Test 1 ='ABC' then show the measures values in % (12.3%) else show it as no (100). I tried creating a calculated field like below but its showing error: sum is being calculated (string) do you mean float. I tried converting those dimensions to string but not working. Please can someone help me on this ?

 

sum(if TEST1='ABC' then STR(value)+"%" else STR(value) end )

 

Thanks

18 answers
  1. Jun 24, 2022, 6:49 PM

    It is a valid calc:

    It is a valid calc:

0/9000

Hello All,

I'm new to tableau and trying to achieve the attached sample data output dynamically. For example if a new product adds into the csv file in future for a brand the blank row should insert after the last row for each Brand value. Please let me know if this is achievable.

3 answers
  1. Sep 12, 2023, 12:40 AM

    @anil danda​ 

    Hi, you may take a look of this technique I saw in a LinkedIn post from @Ken Flerlage​ last week:

    @anil danda​ Hi, you may take a look of this technique I saw in a LinkedIn post from @Ken Flerlage​ last week: If this post resolves the question, would you be so kind tohttps://www.linkedin.com/posts/kennethflerlage_tableau-tip-i-learned-this-fromjeffrey-activity-7105180276737064960-P0WZ

     

    If this post resolves the question, would you be so kind to "Select as Best"?. This will help other users find the same answer/resolution and help community keep track of answered questions. Thank you.

     

    Regards,

     

    Diego Martinez

    Tableau Visionary and Forums Ambassador

0/9000

Hi, 

 

I have a graph which shows an evolution of 2 measures based on month of date. In that same visual I also want to show a reference band with a max and min value  per month. The values are always the same: f.e. the first shown month is always 50, 2nd is 30,... 

For those values I've worked with an index: if index=1 then 50,... 

 

Per index I have a max and a min value, so 2 different calculations. Now I want to add those to my graph using a reference band, but Tableau is showing this as a constant and not a max or min per cell.  

I believe that the problem lays with the use of the index, but I don't see any other solution. 

 

 

#Tableau Cloud  #Tableau Desktop & Web Authoring

9 answers
  1. Today, 12:30 PM

    Hi,  @Tessa Vandendriessche 

    I'm not sure if this is what you're looking for, but please take a look if you'd like. 

    Here’s a workaround idea for filling the area between the Max and Min values. 

    By using an area chart with some white coloring, you can achieve the effect shown in the example. 

    (Since transparency doesn’t work well in this case, it needs to be expressed using solid colors.) 

     

    <sample>Hi, @Tessa Vandendriessche I'm not sure if this is what you're looking for, but please take a look if you'd like. Here’s a workaround idea for filling the area between the Max and Min values.

0/9000

Hi I'm new to this, please be patient with me, thank you! 

I have an excel file that is updated every 12 hours, saved in the same location folder in file explorer, which I use to extract data. I have set up extract refresh on the tableau desktop, however, the refresh isn't working as intended, the extract doesn't copy over the new data, may I understand what are some potential issues that occurred and how to fix them? 

 

#Tableau Desktop & Web Authoring

2 answers
  1. Today, 7:26 AM

    @weiyang ng

     

     

    The extract refresh may fail to include new rows if

    incremental refresh is enabled but the selected increment field does not correctly identify newly added records. In such cases, Tableau only refreshes rows that meet the incremental condition, causing new data to be missed. Additionally, if the Excel source file is deleted and recreated

    instead of being overwritten in place, Tableau may not properly recognize the updated data. Ensuring the file is overwritten and verifying the incremental refresh configuration can help resolve this issue.  

     

     

    The extract refresh may fail to include new rows if incremental refresh is enabled but the selected increment field does not correctly identify newly added records.

     

    Please mark this comment as helpful and select as accepted answer if it was helpful. Thanks! 

0/9000