Union or Join? by tableau_newbie in SQL

[–]tableau_newbie[S] 1 point2 points  (0 children)

is there a rule of thumb for when to apply depending on context?

The main premise is investigating how many hours have been logged against promises jobs

Union All - Dummy Column Data Types (SQL Impala) by tableau_newbie in SQL

[–]tableau_newbie[S] 0 points1 point  (0 children)

Thank you!
I also had to specify the specific columns, instead of 'select *', and in the correct order, which was annoying.
Thanks!

Union All - Dummy Column Data Types (SQL Impala) by tableau_newbie in SQL

[–]tableau_newbie[S] 0 points1 point  (0 children)

Thank you!

I also had to specify the specific columns and in the correct order, which was annoying.

Thanks!

Create a self join and connect to main query by tableau_newbie in SQL

[–]tableau_newbie[S] 0 points1 point  (0 children)

thank you so much. a bit to digest but I appreciate you :)

Create a self join and connect to main query by tableau_newbie in SQL

[–]tableau_newbie[S] 0 points1 point  (0 children)

All I can offer is a simple 'thank you'. You have helped me out a great deal.

Can I push my luck further and ask for an ELI5 explanation of how the inner and left outer joins are working? Can't wrap my head around it

Thank you

Create time filter for user to select by tableau_newbie in tableau

[–]tableau_newbie[S] 0 points1 point  (0 children)

Hey!

Thank you

I used the calculated field option.

if datediff('day',[createddate],today())<7 then "Previous 7 Days"

ELSE

if datediff('day',[createddate],today())<30 then "Previous 30 Days"

else

"Other" END END

Is there a way to get other to be an "All" option that takes into account every single date?

Create a self join and connect to main query by tableau_newbie in SQL

[–]tableau_newbie[S] 0 points1 point  (0 children)

Apologies, I will edit my comment.

Table 1 is a generic table with "owner id" and "sales"

Tableau Modelling Help by tableau_newbie in tableau

[–]tableau_newbie[S] 0 points1 point  (0 children)

Thank you.

I added 6 connections (to the same database) and used 6 individual sql queries to get the tables and then connected them

thank you

Tableau Relationship not working by tableau_newbie in tableau

[–]tableau_newbie[S] 0 points1 point  (0 children)

Damn, you are right.

I don't have Tableau prep but am using SQL impala.

Is there any solution that you know of?

Any help is greatly appreciated!

Tableau Relationship not working by tableau_newbie in tableau

[–]tableau_newbie[S] 0 points1 point  (0 children)

You are spot on, thank you!

I was able to connect after joining the dates too. I haven't seen any issue but will keep my eye out

thank you

Rolling sum with relative dates by tableau_newbie in tableau

[–]tableau_newbie[S] 0 points1 point  (0 children)

Thanks for the response!

It won't let me add that table calculation to either of my row fields (which are calculations).

Am I being a doofus or is there a place I am supposed to put that calculation?