Thursday 5 July 2018

TC18 London How Tableau solved a life crisis - Bethany Lyons

Bethany Lyons

Don’t try to be good at Tableau - try to be good at solving (and generalising) problems in Tableau

Meta Points
  1. Optimising performance
  2. Progressing your career
  3. Building teams
  4. Making software recommendations

The crisis
Spending 180 days in the UK to warrant the Permanent Residency status in the UK
From passport stamp data, you can work out days in the UK
Level of detail calcs can give you the days in then UK by trip ID
Bethany had 189 days abroad in 2014 (building the partner ecosystem in France)
Data captured on 7th Jan 2018 but showed 11 days for 2018. This showed the days abroad had been allocated twice

Bethany tried to work out how to split and allocate the years
Step 1. Identify the years
Step 2. Allocate the right number of days to the year (chunky IF statement to work out Start date to end of year, and end date from start of year)
Step 3. There is double counting as trips can have multiple legs
Step 4. Use a sequence value and only bring back max sequence value
...but there are easier ways to solve this

Don’t hard count your calcs for the data you have, think about the use cases which will break your hard coding

Issue - immigration years were rolling year based on your application date

Types of temporal data tables
  1. Event - a record represents a state change at a moment in time
  2. State - each record represents state during a period of time
  3. Calendar - dense time range bounded by event time domain
  4. Time - each record represents a state in a moment in time

Event table was what Bethany used for the original data
State table had a value for a property
Calendar - is a dense time range
Time table - for a dense range of time, a property of an entity has a value (ie for each day, there is a specific value)

Time tables are created by joining calendar date to state table (ie scaffolding as it is more commonly known)

Bethany needed to create a state as to whether she is in the UK or not. To do this she needed a start and end date - you can use aggregation in Prep to do this
Calendar date - use the idea that calendar is <= end date and >= start date (to not bring in any unnecessary date

By adding an appointment date parameter, Bethany could then create a rolling year bin. Take the integer of the date / 365 (minus 1) to work out which year it is

Bethany was fine but then she wants to release were there dates when she would have hit the 180 day limit?

If you want to have a record for everyday, you can join the calendar date to the Data source by using a calc join (1 = 1...see Bethany’s session from last year) to create the rolling year calc

Like all Bethany sessions - watching the recording to get all the value from the techniques but it will hopefully capture some concepts to go away and learn (or Google)!

Complexity arises from incrementally and reactively solving a problem (walk away from the desk before solving the question)
Get a clear understanding of what is, work out the semantics of your question and then it’s over to you as the analyst

Meta summary
Performance problems arise from complexity -Holistic thinking is the best solution. Iterate but then don’t be afraid to rebuild.
Progressing your career - visual design and data design is very different. There is a massive shortage of data designers.
Building teams - get both visual and data designers
Software recommendations - all principles discussed are unique to Tableau. Most companies look at features and price, this leads to examples in the first convoluted feature. Great software helps you escape these elongated builds as it will have features that compose well (VizQL is a language and you can communicate in many different ways)

4 comments:

  1. This blog gives very important info about Tableau Thanks for sharing Tableau Online Training

    ReplyDelete
  2. Looking for the right learning material that can help you learn tableau properly? Don't worry because we have the best tableau courses for you that can help you learn tableau.

    ReplyDelete
  3. HOW I GOT MY LOAN FROM THIS GREAT COMPANY

    Hello my dear people, I am Linda McDonald, currently living in Austin Texas, USA. I am a widow at the moment with three kids and i was stuck in a financial situation in April 2018 and i needed to refinance and pay my bills. I tried seeking loans from various loan firms both private and corporate but never with success, and most banks declined my credit ,do not full prey to those hoodlums at there that call them self-money lender they are all scam , all they want is your money and you well not hear from them again they have done it to me twice before I met Mr. David Wilson the most interesting part of it is that my loan was transfer to me within 74hours so I will advise you to contact Mr. David if you are interested in getting loan and you are sure you can pay him back on time you can contact him via email……… (davidwilsonloancompany4@gmail.com) No credit check, no cosigner with just 2% interest rate and better repayment plans and schedule if you must contact any firm with reference to securing a loan without collateral then contact Mr. David Wilson today for your loan

    They offer all kind of categories of loan they are

    Short term loan (5_10years)
    Long term loan (20_40)
    Media term loan (10_20)
    They offer loan like
    Home loan............., Business loan........ Debt loan.......
    Student loan.........., Business startup loan
    Business loan......., Company loan.............. etc
    Email..........( davidwilsonloancompany4@gmail.com)
    When it comes to financial crisis and loan then David Wilson loan financial is the place to go please just tell him I Mrs. Linda McDonald direct you Good Luck.......................

    ReplyDelete
  4. Are you in need of Loan? Here all problem regarding Loans is solve between a short period of time what are you waiting for apply now and solve your problem or start a business with funds Contact us now. many more 2% interest rate.(Whats App) number +919394133968 patialalegitimate515@gmail.com
    Mr Sorina

    ReplyDelete