Skip to main content

#Tableau Desktop & Web Authoring175 personnes en discutent

Hi 

I need some help. Does anyone have any idea how I can go about this error.   

It's not allowing me to open the sheet that was send over.

 

#Tableau Desktop & Web Authoring

2 réponses
  1. 18 sept., 19:26

     I’ve seen this kind of Tableau error before. It may be worth checking whether the workbook opens correctly in Tableau Desktop first, and then trying again in Web Authoring. Clearing the Tableau cache or signing out and back in could also help narrow down the issue. 

0/9000

unfortunatelly i can not post the workbook. 

 

On desktop the highlighting, tooltips response fine without any delay. 

I am using on hover cause I turned on the option allow selection by category. 

 

this is fine on the desktop, when I post the workbook on the server, the tooltip takes too long and I don't know why, it takes also for very simple info button withou any filter on filter shelf, so it show only text in tooltip nothing else and it takes long as well. it uses On Hover but without allow selection by category. 

 

where to look, what can be the issue on the server. 

 

I tried one more thing. I deleted every sheet with filters from the dashboard, so the info button is the only sheet there, it works fast but i still don't get it why the whole workbook works on desktop without the delay.  Datasource is embedded. 

 

#Tableau Desktop & Web Authoring

0/9000

Hi everyone,

I’m trying to solve a Tableau issue involving FIXED LOD calculations, a Max Run Date context filter, row-level highlighting, and a blended data source.

Background

I have a dashboard with two sheets/tabs.

Sheet 1 – New Prescribers

This sheet identifies New Prescribers at the HCP level.

The sheet has the following filters:

  •  Max Run Date Flag = True — in context
  •  Trial = True 
  •  User Filter = True 
  •  Several territory/region dimensional filters 

My Avg Patients calculation is:

{ FIXED [NPI], [Month] :

AVG([unique_patients_yutrepia_winrevair_zinc_cvs])

}

My New Prescriber calculation is:

ZN([Avg Patients]) > 0

AND

{ FIXED [HCP] :

MAX(

IF [Run Date] < { MAX([Run Date]) }

AND ZN([Avg Patients]) > 0

THEN 1

ELSE 0

END

)

} = 0

Sheet 2 – Summary/Output Table

The second sheet is an output table that is being rendered through a SuperTable extension.

The row dimensions are approximately:

HCP

Institution

CPS Region

ALD Region

NPI

CPS Territory

ALD Territory

NPI Specialty

State

ZIP

...

The table also contains monthly patient measures such as:

Jun Est Pts

Jul Est Pts

Aug Est Pts

I am not displaying the New Prescriber field as a column.

Instead, I need to use New Prescriber only to highlight the entire row of the 5 New Prescribers in SuperTable.

The problem

Initially, I did not have Max Run Date Flag in context on Sheet 2.

I placed the New Prescriber field on Detail so that SuperTable could use it for row highlighting.

This worked correctly:

The table had the correct number of rows.

The 5 New Prescribers could be identified/highlighted.

However, I also have a ratio calculation involving two data sources:

Yutrepia Patients → Primary data source

Shipment Patients → Secondary/blended data source

Without Max Run Date Flag in context, the ratio does not return the expected values.

When I add Max Run Date Flag to Context

The ratio/counts become correct.

However, once Max Run Date Flag is in context, putting the New Prescriber field on Detail causes the table to split/increase rows.

For example, an HCP that should appear as one row can effectively get split because of the New Prescriber value at the underlying record level.

I don't want New Prescriber to change the existing row grain. I only want it to act as a highlighting flag.

So I currently have this conflict:

Setup Result

Max Run Date NOT in context Correct row count + New Prescriber highlighting works, but ratio is incorrect

Max Run Date IN context Ratio is correct, but New Prescriber on Detail causes additional/split rows

What I am trying to achieve

I need all of the following simultaneously:

Keep Max Run Date Flag as a context filter because it currently makes the blended ratio calculate correctly.

Identify the same 5 New Prescribers as Sheet 1.

Use the New Prescriber result only for row highlighting in SuperTable.

Do not add New Prescriber to the dimensional grain or create additional rows.

Keep the Yutrepia Patients / Shipment Patients ratio accurate.

Maintain the existing HCP/NPI/institution/etc. row structure.

My questions

1. Why does adding Max Run Date Flag to context cause the New Prescriber field on Detail to split/increase the rows?

I understand Tableau's order of operations, but I'm not clear on exactly how the context filter is interacting with my FIXED [HCP] calculation and the existing row grain.

2. Is there a way to calculate the New Prescriber flag at the HCP level and expose it to SuperTable without making it part of the mark's dimensionality?

For example, should I be using an aggregated version such as:

MIN([New Prescriber Flag])

or

ATTR([New Prescriber Flag])

instead of placing the dimension directly on Detail?

3. Is my current New Prescriber LOD logically correct when Max Run Date Flag is a context filter?

The calculation needs historical Run Dates because it checks:

[Run Date] < { MAX([Run Date]) }

But the context filter may be restricting the data before the FIXED LOD is evaluated.

Could this be the reason for the unexpected behavior?

4. Most importantly, how can I solve the ratio and highlighting requirements without increasing the row grain?

Would the recommended solution be to:

change the LOD,

create a separate HCP-level flag,

use a separate data source/relationship,

use a table calculation,

use an aggregated field on Detail,

or handle the Max Run Date differently?

One additional detail

The Avg Patients calculation is:

{ FIXED [NPI], [Month] :

AVG([unique_patients_yutrepia_winrevair_zinc_cvs])

}

while the New Prescriber logic is fixed at [HCP].

The output table itself contains several dimensions below/alongside HCP.

So I suspect there may be a grain mismatch between [NPI] + [Month], [HCP], and the output-table grain, but I'm not sure whether that is the actual root cause.

What would be the recommended Tableau approach to achieve this without duplicating/splitting the rows?

this is from databricks sourc and i don;t have access to those sources so couldn't share the .TWBX file part of confidential.

Thanks!

This correctly identifies 5 HCPs as New Prescribers

on Sheet 1. 

 

#Tableau Desktop & Web Authoring  #LOD

5 réponses
  1. Hier, à 05:46

    Hi, @Himshikha Purohit 

    I apologize for the delayed response. 

    Based on the information available at this point, it seems difficult to fully understand your issue. 

     

    If possible, could you create a small set of dummy data that reproduces the problem, build a workbook using that data, and share it with us? 

    Thank you for your consideration.

0/9000

We have an on-prem server with a single site and set of users.  We have GCP users that are part of two separate GCP environments that would both like to connect to their Google Drive data.  In Tableau Server it seems I can only set up the client ID and secrets in the OAuth Clients Registry for one, trying to add a second only replaces the existing.  This causes whichever user whose token is not currently in the tableau settings to run into a 403 forbidden error.  Is there a way to accommodate both in Tableau?  Could it be done with custom oauth?  Is there a setting in google that would allow one GCP to use the oauth settings from the other? 

 

#Tableau Desktop & Web Authoring

2 réponses
  1. Hier, à 19:22

    This seems like a tricky setup when different users belong to separate GCP environments. The fact that adding the second OAuth client replaces the first one makes the 403 issue especially confusing. Hopefully someone can clarify whether Tableau Server supports multiple Google OAuth configurations for this kind of setup. 

0/9000

A follow up to my previous post:  Using multiple CTEs in Tableau | Salesforce Trailblazer Community

 

 

I now have to add 2 temporary variables, a start_date and end_date.  The code works w/ 1 temporary variable but fails when I add a second temporary variable.  The error message I receive says  

 

Actual statement count 3 did not match the desired statement count 1. 

Initial SQL Error. Check that the syntax is correct and that you have access privileges to the requested database. 

 

This is my code.  Would appreciate any help.  Thank you!

 

SET START_DATE = '2026-08-31'::DATE;

SET END_DATE = '2026-09-05'::DATE;

 

CREATE TEMPORARY TABLE AAAA_DB.AAAA_TB.test1 AS 

 

WITH RECURSIVE

business_dates (business_date) AS (

    SELECT $BUSINESS_START_DATE::DATE

    UNION ALL

    SELECT DATEADD(day, 1, business_date)

    FROM business_dates

    WHERE business_date < $BUSINESS_END_DATE::DATE

),

followed by multiple CTEs

 

#Tableau Desktop & Web Authoring

0/9000

I have two sheets in my Tableau dashboard:

  1. Bar chart Sheet – A stacked bar chart showing HCPs Called vs. HCPs Not Called, broken down by Decile Group.
  2. Detail Sheet – A detailed table showing individual HCP-level information.

I want the following interaction:

When I click on a specific segment of the stacked bar—for example, Decile Group 1 → HCP Not Called, where the count is 9—the detailed sheet should display only those 9 HCPs who belong to that specific segment.

However, currently, when I click on the bar, Tableau is filtering only by the Decile Group. So instead of showing the 9 HCPs who are Not Called, it shows all 77 HCPs belonging to that Decile Group.

Requirement

I want the dashboard action to filter based on both dimensions:

  • Decile Group
  • Called / Not Called status

So, if I click:

Decile Group 1 → Not Called (9)

the detail sheet should show exactly those 9 HCPs, not all 77 HCPs in Decile Group 1.

Is there a way to achieve this in Tableau using a dashboard filter/action or a calculated field? 

 

Action Filterering the data to another sheet

 

 

 

#Tableau Desktop & Web Authoring

3 réponses
  1. Hier, à 11:58

    Thanks for sharing the calculations. 

     

    The tricky bit is that HCPs minus HCPs Called gives you a count, but no list of Account IDs for the action to filter. 

     

    One thing that caugt my attention: for Decile0, HCPs requires CY_CALL = 1 or Target = TRUE, but HCPs Called does not. Is that intentional? If Called includes accounts outside the HCPs population, the subtraction won’t give you the correct Not Called count. 

     

    I would use your existing conditions to flag eligible HCPs, then check whether each Account ID has any qualifying call within the relevant decile. Eligible accounts with no qualifying call would be "Not Called". That gives you a status field to use for the colours and the action. 

     

    Are there date or territory filters on the dashboard? That would affect how i would write the account-level calculation. 

0/9000

I have a dashboard with 3 separate crosstabs stacked vertically. I have the same columns in all, only some filtering differs so I want to keep the columns aligned.  

One of these crosstabs can be very long and a scroll bar appears. How can I keep the columns fixed and have the scrollbar appear to the right of the fixed space. 

I am on cloud, and desktop is also 26.2. This used to work in previous releases using standard fit and fixing the columns, but in 26.2 the viz resized with the scrollbar instead of drawing the scrollbar outside of the columns 

 

#Tableau Desktop & Web Authoring

12 réponses
  1. 8 sept., 05:13

    @Soichiro Toyota

     

    That is exactly what I have done. It worked in previous version but no longer in 2026.2. I have indeed contacted the Support, and they confirmed that there is something strange going on with resizing crosstabs in a vertical container.

0/9000

 

How to change the font of transaction type to match same as the number values .For example - Production Order Picking should be blue same as its value . Please have a look at the screenshots .It has to match the transaction type legend .Thankyou   

How to change the font colour to match the values

 

image.png

 

 

 

#Tableau Desktop & Web Authoring  #Tableau  #Tableau Cloud

2 réponses
  1. 17 sept., 03:38

    Hi Jahnavi,

    I agree with Hideaki's approach.

    One advantage of this method is that the text colors will automatically stay in sync with the Transaction Type color legend. This can be easier to maintain than manually formatting labels when new categories are added.

    Another option would be to use a separate worksheet for the labels and align it within a dashboard. This provides more formatting flexibility, although Hideaki's dual-axis approach is probably the simpler and more maintainable solution.

    Hope this helps!

0/9000

I have been asked to replicate a bar chart previously manually updated in an Excel file, which we are currently developing a Tableau datasource for. Image of the Excel chart is attached here. 

 

The chart tracks the total count of projects that changed statuses from month to month, but only considers changes between *specific* statuses (certain status changes are considered "status quo" even if a change occurred). 

 

Buckets should be as follows, roughly: 

'APPROVED', 'REAPPROVAL' status should populate 1 if the status was neither of these in prior month (this indicates the project "opened" in the current month) 

'CLOSED', 'CANCELLED' status should be a -1 if the status was neither of these in the prior month (this indicates the project was "completed" in the current month) 

All other situations, should be 0, at least for now. (There might be a few other specifics here, but I can work those out on my own, if I can get the basic chart built). 

 

Then, for each given month, the chart would count all of the 1s and create a positive bar of that total number (so if 5 projects have a "1" in September, meaning they were opened in that month, the positive part of the bar would extend up to 5 on the vertical axis); then the portion of the bar that extends below the 0 of the vertical axis would count all of the -1s and create a negative bar of that total (so if 7 projects have a "-1" in September, meaning they were completed in that month, the negative part of the bar would extend down to -7 on the vertical axis). 

 

I've attached an Excel sample dataset here that has all of the relevant information for this viz. I know it's only two months, but that's all I have, and if I can get September to work vs. August, then I think I can get other months in the future to work too. (If it's absolutely critical I have mock data for more months, let me know).  

Building a bar chart tracking month-over-month status changes by project

 

 

 

#Tableau Desktop & Web Authoring

1 réponse
  1. 16 sept., 00:08

    @Michael Callen

     

    See if the attached points the way for you? Too many steps involved, but the calc's are all there.  Dual-axis approach is required here.  Reference lines are required in order to position the values outside of each segment (positive / negative).  Rest of formatting up to you.  Hope it helps!

    See if the attached points the way for you? Too many steps involved, but the calc's are all there. Dual-axis approach is required here.If this response answered your question, please mark it as an Accepted Answer? 

    This way, others searching for similar solutions will find the answer faster in the future.

    Best, Don Wise (Tableau Ambassador)

0/9000

Hi everyone

I was exploring how to use Tableau for HR and payroll analytics, especially for UAE-based businesses.

I came across a UAE gratuity computation API that calculates end-of-service benefits based on salary and years of service.

Now I’m curious has anyone here tried connecting such external APIs (like HR or financial calculators) directly into Tableau dashboards?

I’m thinking about using it for visualizing total gratuity liability per department or employee group, but I’m not sure what’s the best way Web Data Connector or Tableau Prep script?

Would love to know how others here have handled API-based data visualization in Tableau .

5 réponses
  1. 15 sept., 11:23

    I’ve worked with similar API-based data flows, and I’d probably use Tableau Prep to pull and clean the API data before bringing it into Tableau. That way, you can refresh the gratuity calculations regularly and build dashboards around departments, employee groups, or overall liability without making the workbook too complicated.

0/9000