r/tableau • • 23h ago

Convert SQL code to Tableau calculated field

2 Upvotes

Can someone please help me convert this case statement in SQL to something that will work in a Tableau calculated field?

NEW_FIELD = CASE WHEN OPENEDDATE BETWEEN CAST(DATEADD(DD,-90,@FROM) AS DATE) AND CAST(DATEADD(DD,-90,@TO) AS DATE) THEN '90 DAYS'

WHEN OPENEDDATE BETWEEN CAST(DATEADD(DD,-120,@FROM) AS DATE) AND CAST(DATEADD(DD,-120,@TO) AS DATE) THEN '120 DAYS' END

I created FROM and TO parameters to be used instead of the @FROM and @TO. Converting case statements to calculated fields is the last part of Tableau I'm still struggling with. Any help is appreciated.


r/tableau • • 2h ago

can a bar chart switch which field it groups by based on a parameter?

2 Upvotes

im putting together a dashboard thats meant to be shared across three different teams, lets call them team a, team b, and team c. they all track the same overall goals, like total sales, so it makes sense to keep everyone looking at one central view instead of building out separate dashboards for each group. the tricky part is that each team slices those numbers using different fields. right now i have a bar chart showing sales by state, and its hooked up to a parameter so people can toggle between team a, team b, and team c.

what im trying to figure out is if theres a clean way to make the bar chart swap the grouping field automatically when someone changes that parameter. for example, if the user picks team a, the bars would group by state. if they switch to team b, the bars group by country instead, which is the change id show in a two-state mockup (maybe dreamina motion studio).

i really want to avoid duplicating the whole view three times if i dont have to, since keeping one chart updated is way easier in the long run. has anyone set something like this up before in tableau, and whats the best way to wire up the parameter so the dimension changes on the fly?


r/tableau • • 13h ago

Discussion Tableau Next 5000 Rows Issue

2 Upvotes

I have a question about Tableau Next. It's a bit strange that it displays only 5,000 rows by default, and when you apply a filter, it seems to show only 500 rows. Let's say the client wants to view all the transactions that occurred today, and there are more than 5,000 transactions. They also need to export all of them into a single CSV file. Is there any way to achieve this directly through Tableau Next?

https://help.salesforce.com/s/articleView?id=analytics.tua_limits_and_guidelines.htm&type=5


r/tableau • • 17h ago

What's the best way to provide an interviewer with a Tableau example?

5 Upvotes

I am dubious about how well this recent screen interview went, and one of the knocks against me was that I have lost my certifications that were through logins of my secure jobs *AND* that I do not have examples (as even sharing scrubbed data is no bueno) of my work.

I do have one fun project that I worked on 4 years ago really utilizing the intensity and technicality of what Tableau can do in the visualization space but even if I dig deep and find it, the best I could do at the time was a screenshot, like a literal jpeg.

It also has dates on it that shows off how old it is, and since I just spent a year in a PowerBI environment, I want to show some validity of what I can do today.

Writing this out I do not think I got it (what was that three major knocks against me) but it would be good for my brain/development/career and future interviews.

Considering cost, best sharing techniques and sending over that example what product(s) would you use to do that?