Upload
others
View
9
Download
0
Embed Size (px)
Citation preview
LibraryUTS CRICOS PROVIDER CODE 00099F
Getting Started with Data Visualisation and Infographics – Tableau Academic
3 11/4/19 Library
Thishandoutisdesignedtoworkwiththekineteco_orders.xlsxspreadsheetattachedtotheeventdescriptionintheUTSLibrarycalendar.ItcanalsobefoundinChapter2oftheLyndacoursematerialsfoundinthecoursecalledTableauEssentialTraining
Section 1: Getting HelpGettingHelpTableau>helpIncludedaresampleworkbooks,asamplegalleryandtrainingvideos.IfyouclickopenhelpyougetanonlineFAQ.TableaudriversTableau>Help>GetSupportTheseareAPI’stodrawdatafromsourceslikeAmazon,Azure,Dropbox,GoogleAnalytics,GoogleDrive,JSON,Access,SQL,PDFandmoreLynda.comLynda.comhasgoodindepthtrainingonTableau.ThisclasswasdevelopedusingtheTableauEssentialTrainingcoursementionedaboveNewfeaturesinTableau2018
• Atooltipcannowhostasmallvisualisation• YoucanconnectstraighttospatialdatafromaSQLserver(without
needingtoportinthroughcsv)
4 11/4/19 Library
Section 2: Preparing Data for Tableau
Connecting to a file
Connect>connecttoafile>Excel>kinetecoorders.xlsThisspreadsheetthreesheets–Customersordersandproducts.Pressonthegridattherightofthedatasettoseethedata(itwillpopupinanewwindow).
Doubleclickoncustomerstoaddittotherightofscreen.Doubleclickonordersanditwillgototherightofscreentoo–noticeitmakesanautomaticunionbetweencommonfields.
Mouseoverthejoinanditwilltellyouwhatthejoinis
Doubleclickonproductsandthatwilladditselfandalsocreateajoin.
CleanupsourcedataWhilstourdatasethasnoerrorsyoucanuseTableauusethedatainterpretertofixupnullvaluesanderrorscausedbyhavingheadertitlesplacedinrowoneetc.
5 11/4/19 Library
Section 3 – Getting started in Tableau
Clicksheet1
Lotsofdatashouldcomethrough
Explaining the layout of a worksheet
DimensionsandmeasuresAbc=atextfield#=anumericalfieldLittleglobeicon=ageographicalfield.
MarksareaThemarksareahelpsyouchangethelookofdataandalsooverlayit.
6 11/4/19 Library
TheFiltersareaThefiltersarealetsyoumakeselectionsfromadatarange–ie:youwanttolookatsalesonlyfromCaliforniaandnotalloftheUSA,youcandothat
Datavizarea–rowsandcolumnsThisisapivottabletypearrangementthatletyoudisplaythedatainameaningfulwayandletsyouplayaroundwiththecombinationsTableauhas
ShowmeIsthetableofvisualisationsavailableatanytime.Theyareallgreyedoutbecausewehavenodataonthevizarea.Whenwedothevisualisationsitcanmanagewiththatdatawillbeun-greyedout
7 11/4/19 Library
Back/forwardbuttonsAlwaysuseful!
Make a simple table
Dragadimension,eg:productcategorytocolumnsDragacustomerfullnamedimensiontorowsWenowhaveatablebutnonumbers
Thereasonforthisisthattherearenomeasurementsyettiedtothistable.So,let’sgrabameasurement–say#quantityanddragitoverthistableWenowhaveacustomtable!
8 11/4/19 Library
Nowthisisshowingushowmanybatteriesorlightbulbsetceveryoneordered.Butifyouwantedtoknowhowmanyorderstheyhadplaced,ratherthanhowmanythingstheyhadpurchasedyoucanfigurethatouttoobyusingthesumpillandchangingthemeasuretocount
Nowweseehowmanyorderseachcustomermade
Show summary feature
FirstminimiseShowMeThenclickWorksheet>showsummary.Thesummarywillgiveyousomestats
9 11/4/19 Library
aboutthetable.
10 11/4/19 Library
Section 4 – Manipulating Data in Tableau
Sorting a table
SortingwithinTableauispossiblebyclickingtheheadersandusingthelittlegraphicontosort
Youcanalsoclickonapillandchoosesortformoreadvancedsortoptions.
Adding totals to a crosstab
TableaualsoletsyouaddcalculationstoatablethatmightnothavebeenthereinyouroriginalExcelspreadsheet(orequiv).Let’srunalittlecalculationheretoworkouttotalsFirstremovecustomernamefromrowsbyclickingonthepillandchoosingremoveThen,replaceitwithstate
11 11/4/19 Library
Tomaketallyoftotalsalesperstategoanalysis>totalsandthentotalstotherightbyselectingthetopoption–showrowgrandtotals
Ehvoila!
Ifyouchoosecolumngrandtotalstooifyoulike(andmanyotherthingsbesides)
12 11/4/19 Library
Calculate percentages of a table
Saywewanttocalculatepercentagestheproductshaveaddedtothetotalofsales.Marksarea>sum>quicktablecalculation>percentoftotal(Thiswilloverwritedatainthetable)
Voila!
13 11/4/19 Library
Allofthesethingshelpyoumakeanicecustomvizlateron,ofcourse…
Create a selection filter
Beginbydraggingapillthatisalreadyonthevizpane(eg:states)tothefiltersareaYouthengetaninclude/excludecheckboxlisttofilterwith.
Nowyoucanchoosejustthewestcoaststatesifyouwantanddisplaythem,etc.
Creating a top filter
Youcanalsousefiltertofindthetopandbottomvaluesinadataset.Whilstinfilters,selecttheToptab–youcanthenfindthetopxamountofresults,sortedbywhatevercategoryyoulike
14 11/4/19 Library
Top10Statesbymeasureofpercentageoftotalsales
Clear calculations
IfIwanttogobacktothetotalsbeforeIcalculatedpercentagesusethedropdownonthegreenpillandchoosecleartablecalculation.
Youcanusethismethodtoclearfilterstoo
15 11/4/19 Library
Defining a set
Ifyouwantatemporarygroupingofaselection,sayWestCoastoftheUSA–youcancreateaset.Todothisshiftclickabunchofstuff(orctrl-clickiftheyaren’ttogether)Turnsoutwedon’thaveallthestatesofthewestcoastsolet’sdowestoftheRockiesorsomething
Thenrightclick>createset
16 11/4/19 Library
Thengiveitaname
Nowyouhaveapillthatyoucanuseonthevizarea
Define a group
Ifyouwanttobundleafewentriesinatabletogetheryoucancreateagroup.Similarmethodtomakingasetonlyyouusethepaperclipoption
Whereasasetcreatesaspecialpilltoworkwith,groupshovesentriestogetheronalineinsideanexistingtable
17 11/4/19 Library
Section 5- Making Visualisations
Creating a highlight table
Showme>Highlighttable
Ifwerunthisonourtableofstatesyougetatablewithcoloursindicatingahighorlownumber(IungroupedAlaskaandCaliforniaetcbeforedoingthis).
Toeditcolourspresscolorinthemarkssection
18 11/4/19 Library
Basic Charts – Bar Graph
Hitshowmeandthenchoosethebargraphiconseenbelow
Bar chart
Displaysalltheproductsseparatelybystate
19 11/4/19 Library
Whatifwewantedtoseeeachstatewithalltheproductcategoriestogether?Why,we’djustinverttheorderoftherows,placingstatefirst!
Ifwewantedtochangetheaxiswhatwouldwedo?That’sright,switchcolumnsandrows!
Changing graph colours
Whatifwewantedtochangethecolours?Wecouldgotocoloursandeditcolour
20 11/4/19 Library
Thiswillchangeallcolumnstoadifferentcolour
Filtering by colour
Whatifwewantedtohaveeachcolumnhaveitsowncolour?Dragproductcategoryovercolourinthemarksarea(whilstleavingitinrows)
21 11/4/19 Library
Changing the order of items in a visualisation
IfyouwanttochangetheorderofthefeaturesdragaroudtheorderofthingsinthekeyBefore:
After:
22 11/4/19 Library
Side by Side Bar Chart
YoucanalsomakeaSidebysidebarchartforcolourcomparisons
Makesthecoloursaccordingtostatehere(minimizingshowmerevealsthekey)
Butagain,ifwewantedtohavethecoloursbyproductwecouldfliptheirorderonthecolumnsarea
23 11/4/19 Library
Makesthis
Stacked Bar Chart
Thesearegoodforbringingdatatogether,thoughtheycangetabitcomplicatedtoread
24 11/4/19 Library
Titling a ChartDoubleclickonthesheetname
Andchangeit
25 11/4/19 Library
Changing graph font sizes, labels
Toeditlabelsclickonlabelsinthemarksarea
Hereyoucanchangefontandsize,aswellasaddlabelmarkerswiththetopcheckbox
Labels>showmarklabelswillshownumbersbydatapoints–youcanalsochangethefontsizeetc
26 11/4/19 Library
Sometimesyoumightwanttomaketextsmallersoitappearsfullyinatightspace(changefontsizetodothis)
Tableauwilladjustlabelcoloursaccordingtobackgrounddarkness
Creating an annotation
Rightclickonthechart>annotate>chooseanareaorapoint
Writesomething
Ifyouwanttomovetheannotationclickonitandthenresizeordragitelsewhereusingthebordercontrols
27 11/4/19 Library
TimedataandlinechartsToshowyouthesefunctionsfirstwehavetoremoveproductcategoryfrommarks.Thendragatimerelatedofdimensionontothevizpane,eg:year
Insidebysidebarchartmodeitlookslikethis
28 11/4/19 Library
Ifyourdataissetupright,itmighthaveevenmoredatebasedinformationtoworkwith(eg:quarters).Toexpandthedateusetheplussignoptionontheleftofthetimepill
Nowwehavedatabyquarter:
Creating line charts and area fill charts
Linechartsaregoodattimeseriesdata.Ifweremovestateandreplaceitwithproductcategory
29 11/4/19 Library
Andthenchoosethelinechart
Andyougetthis
Ifyouclickonquartersagainyougetmonths!
30 11/4/19 Library
Youcanchangethethicknessofthelineusingsize.
Finallyyoucanrightclickonanaxistoedittherange
Thischangingoftheaxisisn’tveryusefultothisvizbutitmaybeforyours
31 11/4/19 Library
AddingatrendlinetoachartFirstwemightfilterthissowegetjustoneline:dragproductcategorytofiltersAndjustchooseone
32 11/4/19 Library
Now,gotoanalytics>model>trendline
Ehvoila
33 11/4/19 Library
Mousingoverthetrendlinegivesyoudata
Rightclickonthetrendlinetoremoveit.
34 11/4/19 Library
Section 6 – Making Maps
Makeanewworksheetforthisbit
Create a basic map
Firstyouneedgeographicdatatypes–theoneswiththeglobe,likestateDoubleclickcity,itwilladdlatitudeandlongitudetothecolumnsandrowsandshowyouamap
Now,Tableauisabitfunnywithlocations.Youneedtotellitwherethesecitiesorstatesare.Todothisgotomap>editlocations
35 11/4/19 Library
ThenchangethecountrytotheUSA
Nowwehaveadotforeverystateinthedatatable
Toaddsalesintensitytothiscurrentviz,whichcurrentlyjustshowswhatstatessaleshavebeenmadein,dragtotalpricetothemarkscard.Nowthedotsizereflectshowmuchmoneyhasbeenspentthere
36 11/4/19 Library
Mousingovergivesyoustats
Youcanusethepilltochangethevalue:eg:toaveragespentperstate
37 11/4/19 Library
Fill Maps
Showmealsohasadifferentmaptype–thefillmap
Wherecolourintensitymeansmoresales
Set map options
First-gobacktothedotmapmodeinshowmeDropstateintoFilters,removeAlaska–givesyouacloseupview
38 11/4/19 Library
Tochangethemapappearancegotomap>maplayersWhichbringsthispanelupontheleftYoucanthenchangethebackgroundstyle(eg:fromlighttonormal)whichprovidesforestsandmorelandformdetail
Checkboxesseenaboveturnonandoffgeographicalfeatures
39 11/4/19 Library
Hereisthesamemapwithlandcoverturnedoff
Finallyyoucantrythedatalayer,whichhasalotofcanneddata(mightonlyworkwiththeUSAthough)
Choosingpopulationforexamplegivesyouthis
Onceyouhaveadatalayeryoucanchangethecolourschemeifyoulike
40 11/4/19 Library
Section 7 – Saving, Presentation Mode, Dashboards and Stories
Saving your work
File>save,saveas,reverttosavedSaveasapdfFile>print>pdf=saveaspdf
CreateapackagedworkbookApackagedworkbookisviewableontheTableauviewerplatformabitlikePowerBIwherepeoplethatdon’thavethefullsoftwarecandisplayitFile>exportaspackagedworkbookDisplayavizinpresentationmodePressF7orusethispresentationicon
Justaboutalltheborderswilldisappearleavingyouwithjustafewforwardbackwardtypecontrolsinthebottomright.Presentationmodeleavesintooltipfunctionality.ToexitpressF11orescape
41 11/4/19 Library
Making a story
Astoryisbasicallyasetofdashboardsyoucanpagethrough.Tomakeonelooktothebottomofscreenandchoosethenewstoryiconwhichlookslikealittlebook.
Whenyouclickonthatmoreiconsappeartotherightallowingyoutoaddelementstoastory.Theworksheetsavailableintheworkbookareontheleft.Dragoneontothevizareatobegin.Tocreateanewpagechoosenewstorypoint>blank
Whichgivesyouanotherlinkedpage
Nowgoanddropyournextsheetinandcontinueinthatway..
Create a dashboard
Adashboardisdifferenttoastoryinthatyouhavevisualisationsthatareallontheonescreen,andthatcaninteractwitheachother.Likeastory,itrequiresthatyouhaveafewdifferenttablesgraphsormapstoworkwith.Tocreateadashboardgotothisiconatthebottomofscreen
42 11/4/19 Library
Youthendropimagesontothevizareaasyouwouldforastory
Herearethe3sheetsIcreatedononescreen
43 11/4/19 Library
Arrange and format dashboard entries
Tomoveandresizedashboardelementsclickinthewhitespacearoundanelement.Thenmoreoptions>floating
NowtheelementscanbemovedandresizedMyreconfigureddashboard
Todeleteelementsclickthexinthetopcorner
44 11/4/19 Library
Define a Filter Action
Todothisclickonanelementonthedashboardandusethefunnel
Nowalltheelementsofyourdashboardwillbefilteredbythethingyouselectfromthegraphortable–eg:landscapelightinginAlabama
CTRL-clickletsyouseemorethanoneatatime
45 11/4/19 Library
Escapeundoesthisstuff.Toturnofffilteringaltogetherunclickthefunnel
Define a highlight action
Ahighlightactionallowsforpermanentfilteringviaamouseclick.Todothisgotodashboard>actions
Theninthedialoguebox‘addaction’>highlight
INthenextboxyougetbestresultsbychoosingrunactiononselect
Pressok.Thenpressokagainonthisscreen
46 11/4/19 Library
Nowwhateveryouselectautomaticallyselectseverythingelsethatisrelatedonthedashboard
Addingimages,linksandmoretoadashboardFindobjectsinthebottomleft
Chooseanduploadanimage
47 11/4/19 Library
And that’s it!