-
Notifications
You must be signed in to change notification settings - Fork 0
/
Grocery Store Data Analysis.twb
2635 lines (2634 loc) · 169 KB
/
Grocery Store Data Analysis.twb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version='1.0' encoding='utf-8' ?>
<!-- build 20181.19.1013.2251 -->
<workbook original-version='18.1' source-build='2018.1.18 (20181.19.1013.2251)' source-platform='win' version='18.1' xml:base='https://public.tableau.com' xmlns:user='http://www.tableausoftware.com/xml/user'>
<document-format-change-manifest>
<SortTagCleanup />
</document-format-change-manifest>
<repository-location id='GroceryStoreSalesDataVisualization' path='/workbooks' revision='1.0' />
<preferences>
<preference name='ui.encoding.shelf.height' value='24' />
<preference name='ui.shelf.height' value='26' />
</preferences>
<datasources>
<datasource hasconnection='false' inline='true' name='Parameters' version='18.1'>
<aliases enabled='yes' />
<column caption='Product Sub-Category Parameter' datatype='string' name='[Product Sub-Category Parameter]' param-domain-type='list' role='measure' type='nominal' value='"Envelopes"'>
<calculation class='tableau' formula='"Envelopes"' />
<members>
<member value='"Appliances"' />
<member value='"Binders and Binder Accessories"' />
<member value='"Bookcases"' />
<member value='"Chairs & Chairmats"' />
<member value='"Computer Peripherals"' />
<member value='"Copiers and Fax"' />
<member value='"Envelopes"' />
<member value='"Labels"' />
<member value='"Office Furnishings"' />
<member value='"Office Machines"' />
<member value='"Paper"' />
<member value='"Pens & Art Supplies"' />
<member value='"Rubber Bands"' />
<member value='"Scissors, Rulers and Trimmers"' />
<member value='"Storage & Organization"' />
<member value='"Tables"' />
<member value='"Telephones and Communication"' />
</members>
</column>
<style>
<style-rule element='mark'>
<encoding attr='color' field='[Product Sub-Category Parameter]' type='palette'>
<map to='#4e79a7'>
<bucket>"Appliances"</bucket>
</map>
<map to='#59a14f'>
<bucket>"Bookcases"</bucket>
</map>
<map to='#76b7b2'>
<bucket>"Paper"</bucket>
</map>
<map to='#e15759'>
<bucket>"Copiers and Fax"</bucket>
</map>
<map to='#f28e2b'>
<bucket>"Binders and Binder Accessories"</bucket>
</map>
</encoding>
</style-rule>
</style>
</datasource>
<datasource caption='Orders (Sample-Superstore-Subset-Excel)' inline='true' name='federated.06kawhx0djnv4m1f2t9hi0kb54bt' version='18.1'>
<connection class='federated'>
<named-connections>
<named-connection caption='Sample-Superstore-Subset-Excel' name='excel-direct.0jxm3uj1pzh3ev12oenep0rsbmgs'>
<connection class='excel-direct' cleaning='no' compat='no' dataRefreshTime='' filename='C:/Tableau Practice Udemy/Sample-Superstore-Subset-Excel.xlsx' interpretationMode='0' password='' server='' validate='no' workgroup-auth-mode='as-is' />
</named-connection>
</named-connections>
<relation connection='excel-direct.0jxm3uj1pzh3ev12oenep0rsbmgs' name='Orders' table='[Orders$]' type='table'>
<columns gridOrigin='A1:X9427:no:A1:X9427:0' header='yes' outcome='2'>
<column datatype='integer' name='Row ID' ordinal='0' />
<column datatype='string' name='Order Priority' ordinal='1' />
<column datatype='real' name='Discount' ordinal='2' />
<column datatype='real' name='Unit Price' ordinal='3' />
<column datatype='real' name='Shipping Cost' ordinal='4' />
<column datatype='integer' name='Customer ID' ordinal='5' />
<column datatype='string' name='Customer Name' ordinal='6' />
<column datatype='string' name='Ship Mode' ordinal='7' />
<column datatype='string' name='Customer Segment' ordinal='8' />
<column datatype='string' name='Product Category' ordinal='9' />
<column datatype='string' name='Product Sub-Category' ordinal='10' />
<column datatype='string' name='Product Container' ordinal='11' />
<column datatype='string' name='Product Name' ordinal='12' />
<column datatype='real' name='Product Base Margin' ordinal='13' />
<column datatype='string' name='Region' ordinal='14' />
<column datatype='string' name='State or Province' ordinal='15' />
<column datatype='string' name='City' ordinal='16' />
<column datatype='integer' name='Postal Code' ordinal='17' />
<column datatype='date' name='Order Date' ordinal='18' />
<column datatype='date' name='Ship Date' ordinal='19' />
<column datatype='real' name='Profit' ordinal='20' />
<column datatype='integer' name='Quantity ordered new' ordinal='21' />
<column datatype='real' name='Sales' ordinal='22' />
<column datatype='integer' name='Order ID' ordinal='23' />
</columns>
</relation>
<metadata-records>
<metadata-record class='column'>
<remote-name>Row ID</remote-name>
<remote-type>20</remote-type>
<local-name>[Row ID]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Row ID</remote-alias>
<ordinal>0</ordinal>
<local-type>integer</local-type>
<aggregation>Sum</aggregation>
<contains-null>true</contains-null>
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"I8"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Order Priority</remote-name>
<remote-type>130</remote-type>
<local-name>[Order Priority]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Order Priority</remote-alias>
<ordinal>1</ordinal>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"WSTR"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Discount</remote-name>
<remote-type>5</remote-type>
<local-name>[Discount]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Discount</remote-alias>
<ordinal>2</ordinal>
<local-type>real</local-type>
<aggregation>Sum</aggregation>
<precision>15</precision>
<contains-null>true</contains-null>
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"R8"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Unit Price</remote-name>
<remote-type>5</remote-type>
<local-name>[Unit Price]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Unit Price</remote-alias>
<ordinal>3</ordinal>
<local-type>real</local-type>
<aggregation>Sum</aggregation>
<precision>15</precision>
<contains-null>true</contains-null>
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"R8"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Shipping Cost</remote-name>
<remote-type>5</remote-type>
<local-name>[Shipping Cost]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Shipping Cost</remote-alias>
<ordinal>4</ordinal>
<local-type>real</local-type>
<aggregation>Sum</aggregation>
<precision>15</precision>
<contains-null>true</contains-null>
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"R8"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Customer ID</remote-name>
<remote-type>20</remote-type>
<local-name>[Customer ID]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Customer ID</remote-alias>
<ordinal>5</ordinal>
<local-type>integer</local-type>
<aggregation>Sum</aggregation>
<contains-null>true</contains-null>
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"I8"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Customer Name</remote-name>
<remote-type>130</remote-type>
<local-name>[Customer Name]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Customer Name</remote-alias>
<ordinal>6</ordinal>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"WSTR"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Ship Mode</remote-name>
<remote-type>130</remote-type>
<local-name>[Ship Mode]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Ship Mode</remote-alias>
<ordinal>7</ordinal>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"WSTR"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Customer Segment</remote-name>
<remote-type>130</remote-type>
<local-name>[Customer Segment]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Customer Segment</remote-alias>
<ordinal>8</ordinal>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"WSTR"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Product Category</remote-name>
<remote-type>130</remote-type>
<local-name>[Product Category]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Product Category</remote-alias>
<ordinal>9</ordinal>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"WSTR"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Product Sub-Category</remote-name>
<remote-type>130</remote-type>
<local-name>[Product Sub-Category]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Product Sub-Category</remote-alias>
<ordinal>10</ordinal>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"WSTR"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Product Container</remote-name>
<remote-type>130</remote-type>
<local-name>[Product Container]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Product Container</remote-alias>
<ordinal>11</ordinal>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"WSTR"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Product Name</remote-name>
<remote-type>130</remote-type>
<local-name>[Product Name]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Product Name</remote-alias>
<ordinal>12</ordinal>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"WSTR"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Product Base Margin</remote-name>
<remote-type>5</remote-type>
<local-name>[Product Base Margin]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Product Base Margin</remote-alias>
<ordinal>13</ordinal>
<local-type>real</local-type>
<aggregation>Sum</aggregation>
<precision>15</precision>
<contains-null>true</contains-null>
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"R8"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Region</remote-name>
<remote-type>130</remote-type>
<local-name>[Region]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Region</remote-alias>
<ordinal>14</ordinal>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"WSTR"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>State or Province</remote-name>
<remote-type>130</remote-type>
<local-name>[State or Province]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>State or Province</remote-alias>
<ordinal>15</ordinal>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"WSTR"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>City</remote-name>
<remote-type>130</remote-type>
<local-name>[City]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>City</remote-alias>
<ordinal>16</ordinal>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"WSTR"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Postal Code</remote-name>
<remote-type>20</remote-type>
<local-name>[Postal Code]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Postal Code</remote-alias>
<ordinal>17</ordinal>
<local-type>integer</local-type>
<aggregation>Sum</aggregation>
<contains-null>true</contains-null>
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"I8"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Order Date</remote-name>
<remote-type>7</remote-type>
<local-name>[Order Date]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Order Date</remote-alias>
<ordinal>18</ordinal>
<local-type>date</local-type>
<aggregation>Year</aggregation>
<contains-null>true</contains-null>
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"DATE"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Ship Date</remote-name>
<remote-type>7</remote-type>
<local-name>[Ship Date]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Ship Date</remote-alias>
<ordinal>19</ordinal>
<local-type>date</local-type>
<aggregation>Year</aggregation>
<contains-null>true</contains-null>
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"DATE"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Profit</remote-name>
<remote-type>5</remote-type>
<local-name>[Profit]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Profit</remote-alias>
<ordinal>20</ordinal>
<local-type>real</local-type>
<aggregation>Sum</aggregation>
<precision>15</precision>
<contains-null>true</contains-null>
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"R8"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Quantity ordered new</remote-name>
<remote-type>20</remote-type>
<local-name>[Quantity ordered new]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Quantity ordered new</remote-alias>
<ordinal>21</ordinal>
<local-type>integer</local-type>
<aggregation>Sum</aggregation>
<contains-null>true</contains-null>
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"I8"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Sales</remote-name>
<remote-type>5</remote-type>
<local-name>[Sales]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Sales</remote-alias>
<ordinal>22</ordinal>
<local-type>real</local-type>
<aggregation>Sum</aggregation>
<precision>15</precision>
<contains-null>true</contains-null>
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"R8"</attribute>
</attributes>
</metadata-record>
<metadata-record class='column'>
<remote-name>Order ID</remote-name>
<remote-type>20</remote-type>
<local-name>[Order ID]</local-name>
<parent-name>[Orders]</parent-name>
<remote-alias>Order ID</remote-alias>
<ordinal>23</ordinal>
<local-type>integer</local-type>
<aggregation>Sum</aggregation>
<contains-null>true</contains-null>
<attributes>
<attribute datatype='string' name='DebugRemoteType'>"I8"</attribute>
</attributes>
</metadata-record>
<metadata-record class='capability'>
<remote-name />
<remote-type>0</remote-type>
<parent-name>[Orders]</parent-name>
<remote-alias />
<aggregation>Count</aggregation>
<contains-null>true</contains-null>
<attributes>
<attribute datatype='integer' name='context'>0</attribute>
<attribute datatype='string' name='gridOrigin'>"A1:X9427:no:A1:X9427:0"</attribute>
<attribute datatype='boolean' name='header'>true</attribute>
<attribute datatype='integer' name='outcome'>2</attribute>
</attributes>
</metadata-record>
</metadata-records>
</connection>
<aliases enabled='yes' />
<column aggregation='Sum' caption='Number of Orders' datatype='integer' name='[Calculation_1335880247508099072]' role='dimension' type='ordinal'>
<calculation class='tableau' formula='{fixed [Customer ID]:COUNTD([Order ID])}' />
</column>
<column caption='Distinct Customers' datatype='integer' name='[Calculation_1335880247508893697]' role='measure' type='quantitative'>
<calculation class='tableau' formula='countd([Customer ID])' />
</column>
<column caption='Number of Profitable Days' datatype='integer' name='[Calculation_1335880247511351298]' role='measure' type='quantitative'>
<calculation class='tableau' formula='IF {fixed [Order Date]:sum([Profit])} >0 THEN 1 ELSE 0 END' />
</column>
<column caption='Percent of Total Sales' datatype='real' name='[Calculation_1335880247514902531]' role='measure' type='quantitative'>
<calculation class='tableau' formula='sum([Sales])/min({fixed:sum([Sales])})' />
</column>
<column caption='Selective Sales' datatype='real' name='[Calculation_1335880247519162373]' role='measure' type='quantitative'>
<calculation class='tableau' formula='if [Product Sub-Category]=[Parameters].[Product Sub-Category Parameter] then [Sales] ELSE 0 END' />
</column>
<column aggregation='Attribute' caption='Sales of Selected Sub Category' datatype='real' name='[Calculation_1335880247520997382]' role='measure' type='quantitative'>
<calculation class='tableau' formula='{EXCLUDE [Product Sub-Category]:SUM([Calculation_1335880247519162373])}' />
</column>
<column caption='Difference from Selected Sub-Category' datatype='real' name='[Calculation_1335880247521587207]' role='measure' type='quantitative'>
<calculation class='tableau' formula='sum([Sales])-sum([Calculation_1335880247520997382])' />
</column>
<column datatype='string' name='[City]' role='dimension' semantic-role='[City].[Name]' type='nominal' />
<column datatype='integer' name='[Customer ID]' role='dimension' type='ordinal' />
<column datatype='string' name='[Number of Orders (group)]' role='dimension' type='nominal'>
<calculation class='categorical-bin' column='[Calculation_1335880247508099072]' new-bin='true'>
<bin default-name='true' value='"1 & 2"'>
<value>1</value>
<value>2</value>
</bin>
</calculation>
</column>
<column datatype='integer' name='[Number of Records]' role='measure' type='quantitative' user:auto-column='numrec'>
<calculation class='tableau' formula='1' />
</column>
<column datatype='integer' name='[Order ID]' role='dimension' type='ordinal' />
<column datatype='integer' default-format='*00000' name='[Postal Code]' role='dimension' semantic-role='[ZipCode].[Name]' type='ordinal' />
<column datatype='integer' name='[Row ID]' role='dimension' type='ordinal' />
<column datatype='string' name='[State or Province]' role='dimension' semantic-role='[State].[Name]' type='nominal' />
<extract count='-1' enabled='true' units='records'>
<connection access_mode='readonly' authentication='auth-none' author-locale='en_US' class='hyper' dbname='C:/Users/krish/OneDrive/Documents/My Tableau Repository/Datasources/Orders (Sample-Superstore-Subset-Excel).hyper' default-settings='yes' schema='Extract' sslmode='' tablename='Extract' update-time='01/14/2020 11:14:02 PM' username='tableau_internal_user'>
<relation name='Extract' table='[Extract].[Extract]' type='table' />
<refresh>
<refresh-event add-from-file-path='' increment-value='%null%' refresh-type='create' rows-inserted='9426' timestamp-start='2020-01-14 23:14:02.250' />
</refresh>
<metadata-records>
<metadata-record class='column'>
<remote-name>Row ID</remote-name>
<remote-type>20</remote-type>
<local-name>[Row ID]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Row ID</remote-alias>
<ordinal>0</ordinal>
<family>Orders</family>
<local-type>integer</local-type>
<aggregation>Sum</aggregation>
<approx-count>9426</approx-count>
<contains-null>true</contains-null>
</metadata-record>
<metadata-record class='column'>
<remote-name>Order Priority</remote-name>
<remote-type>129</remote-type>
<local-name>[Order Priority]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Order Priority</remote-alias>
<ordinal>1</ordinal>
<family>Orders</family>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<approx-count>5</approx-count>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
</metadata-record>
<metadata-record class='column'>
<remote-name>Discount</remote-name>
<remote-type>5</remote-type>
<local-name>[Discount]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Discount</remote-alias>
<ordinal>2</ordinal>
<family>Orders</family>
<local-type>real</local-type>
<aggregation>Sum</aggregation>
<approx-count>12</approx-count>
<contains-null>true</contains-null>
</metadata-record>
<metadata-record class='column'>
<remote-name>Unit Price</remote-name>
<remote-type>5</remote-type>
<local-name>[Unit Price]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Unit Price</remote-alias>
<ordinal>3</ordinal>
<family>Orders</family>
<local-type>real</local-type>
<aggregation>Sum</aggregation>
<approx-count>505</approx-count>
<contains-null>true</contains-null>
</metadata-record>
<metadata-record class='column'>
<remote-name>Shipping Cost</remote-name>
<remote-type>5</remote-type>
<local-name>[Shipping Cost]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Shipping Cost</remote-alias>
<ordinal>4</ordinal>
<family>Orders</family>
<local-type>real</local-type>
<aggregation>Sum</aggregation>
<approx-count>398</approx-count>
<contains-null>true</contains-null>
</metadata-record>
<metadata-record class='column'>
<remote-name>Customer ID</remote-name>
<remote-type>20</remote-type>
<local-name>[Customer ID]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Customer ID</remote-alias>
<ordinal>5</ordinal>
<family>Orders</family>
<local-type>integer</local-type>
<aggregation>Sum</aggregation>
<approx-count>2333</approx-count>
<contains-null>true</contains-null>
</metadata-record>
<metadata-record class='column'>
<remote-name>Customer Name</remote-name>
<remote-type>129</remote-type>
<local-name>[Customer Name]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Customer Name</remote-alias>
<ordinal>6</ordinal>
<family>Orders</family>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<approx-count>2333</approx-count>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
</metadata-record>
<metadata-record class='column'>
<remote-name>Ship Mode</remote-name>
<remote-type>129</remote-type>
<local-name>[Ship Mode]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Ship Mode</remote-alias>
<ordinal>7</ordinal>
<family>Orders</family>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<approx-count>3</approx-count>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
</metadata-record>
<metadata-record class='column'>
<remote-name>Customer Segment</remote-name>
<remote-type>129</remote-type>
<local-name>[Customer Segment]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Customer Segment</remote-alias>
<ordinal>8</ordinal>
<family>Orders</family>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<approx-count>4</approx-count>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
</metadata-record>
<metadata-record class='column'>
<remote-name>Product Category</remote-name>
<remote-type>129</remote-type>
<local-name>[Product Category]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Product Category</remote-alias>
<ordinal>9</ordinal>
<family>Orders</family>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<approx-count>3</approx-count>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
</metadata-record>
<metadata-record class='column'>
<remote-name>Product Sub-Category</remote-name>
<remote-type>129</remote-type>
<local-name>[Product Sub-Category]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Product Sub-Category</remote-alias>
<ordinal>10</ordinal>
<family>Orders</family>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<approx-count>17</approx-count>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
</metadata-record>
<metadata-record class='column'>
<remote-name>Product Container</remote-name>
<remote-type>129</remote-type>
<local-name>[Product Container]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Product Container</remote-alias>
<ordinal>11</ordinal>
<family>Orders</family>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<approx-count>7</approx-count>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
</metadata-record>
<metadata-record class='column'>
<remote-name>Product Name</remote-name>
<remote-type>129</remote-type>
<local-name>[Product Name]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Product Name</remote-alias>
<ordinal>12</ordinal>
<family>Orders</family>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<approx-count>1058</approx-count>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
</metadata-record>
<metadata-record class='column'>
<remote-name>Product Base Margin</remote-name>
<remote-type>5</remote-type>
<local-name>[Product Base Margin]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Product Base Margin</remote-alias>
<ordinal>13</ordinal>
<family>Orders</family>
<local-type>real</local-type>
<aggregation>Sum</aggregation>
<approx-count>52</approx-count>
<contains-null>true</contains-null>
</metadata-record>
<metadata-record class='column'>
<remote-name>Region</remote-name>
<remote-type>129</remote-type>
<local-name>[Region]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Region</remote-alias>
<ordinal>14</ordinal>
<family>Orders</family>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<approx-count>4</approx-count>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
</metadata-record>
<metadata-record class='column'>
<remote-name>State or Province</remote-name>
<remote-type>129</remote-type>
<local-name>[State or Province]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>State or Province</remote-alias>
<ordinal>15</ordinal>
<family>Orders</family>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<approx-count>49</approx-count>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
</metadata-record>
<metadata-record class='column'>
<remote-name>City</remote-name>
<remote-type>129</remote-type>
<local-name>[City]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>City</remote-alias>
<ordinal>16</ordinal>
<family>Orders</family>
<local-type>string</local-type>
<aggregation>Count</aggregation>
<approx-count>1017</approx-count>
<contains-null>true</contains-null>
<collation flag='1' name='LEN_RUS_S2' />
</metadata-record>
<metadata-record class='column'>
<remote-name>Postal Code</remote-name>
<remote-type>20</remote-type>
<local-name>[Postal Code]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Postal Code</remote-alias>
<ordinal>17</ordinal>
<family>Orders</family>
<local-type>integer</local-type>
<aggregation>Sum</aggregation>
<approx-count>1592</approx-count>
<contains-null>true</contains-null>
</metadata-record>
<metadata-record class='column'>
<remote-name>Order Date</remote-name>
<remote-type>133</remote-type>
<local-name>[Order Date]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Order Date</remote-alias>
<ordinal>18</ordinal>
<family>Orders</family>
<local-type>date</local-type>
<aggregation>Year</aggregation>
<approx-count>1261</approx-count>
<contains-null>true</contains-null>
</metadata-record>
<metadata-record class='column'>
<remote-name>Ship Date</remote-name>
<remote-type>133</remote-type>
<local-name>[Ship Date]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Ship Date</remote-alias>
<ordinal>19</ordinal>
<family>Orders</family>
<local-type>date</local-type>
<aggregation>Year</aggregation>
<approx-count>1311</approx-count>
<contains-null>true</contains-null>
</metadata-record>
<metadata-record class='column'>
<remote-name>Profit</remote-name>
<remote-type>5</remote-type>
<local-name>[Profit]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Profit</remote-alias>
<ordinal>20</ordinal>
<family>Orders</family>
<local-type>real</local-type>
<aggregation>Sum</aggregation>
<approx-count>9426</approx-count>
<contains-null>true</contains-null>
</metadata-record>
<metadata-record class='column'>
<remote-name>Quantity ordered new</remote-name>
<remote-type>20</remote-type>
<local-name>[Quantity ordered new]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Quantity ordered new</remote-alias>
<ordinal>21</ordinal>
<family>Orders</family>
<local-type>integer</local-type>
<aggregation>Sum</aggregation>
<approx-count>65</approx-count>
<contains-null>true</contains-null>
</metadata-record>
<metadata-record class='column'>
<remote-name>Sales</remote-name>
<remote-type>5</remote-type>
<local-name>[Sales]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Sales</remote-alias>
<ordinal>22</ordinal>
<family>Orders</family>
<local-type>real</local-type>
<aggregation>Sum</aggregation>
<approx-count>9426</approx-count>
<contains-null>true</contains-null>
</metadata-record>
<metadata-record class='column'>
<remote-name>Order ID</remote-name>
<remote-type>20</remote-type>
<local-name>[Order ID]</local-name>
<parent-name>[Extract]</parent-name>
<remote-alias>Order ID</remote-alias>
<ordinal>23</ordinal>
<family>Orders</family>
<local-type>integer</local-type>
<aggregation>Sum</aggregation>
<approx-count>9426</approx-count>
<contains-null>true</contains-null>
</metadata-record>
</metadata-records>
</connection>
</extract>
<layout dim-ordering='alphabetic' dim-percentage='0.550287' measure-ordering='alphabetic' measure-percentage='0.409483' parameter-percentage='0.0402299' show-structure='true' />
<semantic-values>
<semantic-value key='[Country].[Name]' value='"United States"' />
</semantic-values>
<datasource-dependencies datasource='Parameters'>
<column caption='Product Sub-Category Parameter' datatype='string' name='[Product Sub-Category Parameter]' param-domain-type='list' role='measure' type='nominal' value='"Envelopes"'>
<calculation class='tableau' formula='"Envelopes"' />
</column>
</datasource-dependencies>
</datasource>
</datasources>
<actions>
<action caption='Highlight 1 (generated)' name='[Action1]'>
<activation auto-clear='true' type='on-select' />
<source type='sheet' worksheet='Comparative Sales Analysis' />
<command command='tsc:brush'>
<param name='field-captions' value='Product Sub-Category Parameter' />
<param name='target' value='Comparative Sales Analysis' />
</command>
</action>
</actions>
<worksheets>
<worksheet name='Comparative Sales Analysis'>
<table>
<view>
<datasources>
<datasource caption='Orders (Sample-Superstore-Subset-Excel)' name='federated.06kawhx0djnv4m1f2t9hi0kb54bt' />
<datasource name='Parameters' />
</datasources>
<datasource-dependencies datasource='Parameters'>
<column caption='Product Sub-Category Parameter' datatype='string' name='[Product Sub-Category Parameter]' param-domain-type='list' role='measure' type='nominal' value='"Envelopes"'>
<calculation class='tableau' formula='"Envelopes"' />
</column>
</datasource-dependencies>
<datasource-dependencies datasource='federated.06kawhx0djnv4m1f2t9hi0kb54bt'>
<column caption='Selective Sales' datatype='real' name='[Calculation_1335880247519162373]' role='measure' type='quantitative'>
<calculation class='tableau' formula='if [Product Sub-Category]=[Parameters].[Product Sub-Category Parameter] then [Sales] ELSE 0 END' />
</column>
<column aggregation='Attribute' caption='Sales of Selected Sub Category' datatype='real' name='[Calculation_1335880247520997382]' role='measure' type='quantitative'>
<calculation class='tableau' formula='{EXCLUDE [Product Sub-Category]:SUM([Calculation_1335880247519162373])}' />
</column>
<column caption='Difference from Selected Sub-Category' datatype='real' name='[Calculation_1335880247521587207]' role='measure' type='quantitative'>
<calculation class='tableau' formula='sum([Sales])-sum([Calculation_1335880247520997382])' />
</column>
<column datatype='string' name='[Product Sub-Category]' role='dimension' type='nominal' />
<column datatype='real' name='[Sales]' role='measure' type='quantitative' />
<column-instance column='[Product Sub-Category]' derivation='None' name='[none:Product Sub-Category:nk]' pivot='key' type='nominal' />
<column-instance column='[Sales]' derivation='Sum' name='[sum:Sales:qk]' pivot='key' type='quantitative' />
<column-instance column='[Calculation_1335880247521587207]' derivation='User' name='[usr:Calculation_1335880247521587207:qk]' pivot='key' type='quantitative' />
</datasource-dependencies>
<computed-sort column='[federated.06kawhx0djnv4m1f2t9hi0kb54bt].[none:Product Sub-Category:nk]' direction='DESC' using='[federated.06kawhx0djnv4m1f2t9hi0kb54bt].[sum:Sales:qk]' />
<aggregation value='true' />
</view>
<style />
<panes>
<pane id='2' selection-relaxation-option='selection-relaxation-allow'>
<view>
<breakdown value='auto' />
</view>
<mark class='Automatic' />
<encodings>
<color column='[federated.06kawhx0djnv4m1f2t9hi0kb54bt].[usr:Calculation_1335880247521587207:qk]' />
<text column='[federated.06kawhx0djnv4m1f2t9hi0kb54bt].[usr:Calculation_1335880247521587207:qk]' />
</encodings>
<style>
<style-rule element='mark'>
<format attr='mark-labels-show' value='true' />
<format attr='mark-labels-cull' value='true' />
</style-rule>
</style>
</pane>
</panes>
<rows>[federated.06kawhx0djnv4m1f2t9hi0kb54bt].[none:Product Sub-Category:nk]</rows>
<cols>[federated.06kawhx0djnv4m1f2t9hi0kb54bt].[usr:Calculation_1335880247521587207:qk]</cols>
</table>
</worksheet>
<worksheet name='Customer Order Frequency'>
<table>
<view>
<datasources>
<datasource caption='Orders (Sample-Superstore-Subset-Excel)' name='federated.06kawhx0djnv4m1f2t9hi0kb54bt' />
</datasources>
<datasource-dependencies datasource='federated.06kawhx0djnv4m1f2t9hi0kb54bt'>
<column aggregation='Sum' caption='Number of Orders' datatype='integer' name='[Calculation_1335880247508099072]' role='dimension' type='ordinal'>
<calculation class='tableau' formula='{fixed [Customer ID]:COUNTD([Order ID])}' />
</column>
<column caption='Distinct Customers' datatype='integer' name='[Calculation_1335880247508893697]' role='measure' type='quantitative'>
<calculation class='tableau' formula='countd([Customer ID])' />
</column>
<column datatype='integer' name='[Customer ID]' role='dimension' type='ordinal' />
<column datatype='integer' name='[Order ID]' role='dimension' type='ordinal' />
<column-instance column='[Calculation_1335880247508099072]' derivation='None' name='[none:Calculation_1335880247508099072:ok]' pivot='key' type='ordinal' />
<column-instance column='[Calculation_1335880247508893697]' derivation='User' name='[usr:Calculation_1335880247508893697:qk]' pivot='key' type='quantitative' />
</datasource-dependencies>
<aggregation value='true' />
</view>
<style />
<panes>
<pane selection-relaxation-option='selection-relaxation-allow'>
<view>
<breakdown value='auto' />
</view>
<mark class='Automatic' />
<encodings>
<color column='[federated.06kawhx0djnv4m1f2t9hi0kb54bt].[none:Calculation_1335880247508099072:ok]' />
</encodings>
</pane>
</panes>
<rows>[federated.06kawhx0djnv4m1f2t9hi0kb54bt].[usr:Calculation_1335880247508893697:qk]</rows>
<cols>[federated.06kawhx0djnv4m1f2t9hi0kb54bt].[none:Calculation_1335880247508099072:ok]</cols>
</table>
</worksheet>
<worksheet name='Number of Profitable Days by year'>
<table>
<view>
<datasources>
<datasource caption='Orders (Sample-Superstore-Subset-Excel)' name='federated.06kawhx0djnv4m1f2t9hi0kb54bt' />
</datasources>
<datasource-dependencies datasource='federated.06kawhx0djnv4m1f2t9hi0kb54bt'>
<column caption='Number of Profitable Days' datatype='integer' name='[Calculation_1335880247511351298]' role='measure' type='quantitative'>
<calculation class='tableau' formula='IF {fixed [Order Date]:sum([Profit])} >0 THEN 1 ELSE 0 END' />
</column>
<column datatype='date' name='[Order Date]' role='dimension' type='ordinal' />
<column datatype='real' name='[Profit]' role='measure' type='quantitative' />
<column-instance column='[Calculation_1335880247511351298]' derivation='Sum' name='[sum:Calculation_1335880247511351298:qk]' pivot='key' type='quantitative' />
<column-instance column='[Order Date]' derivation='Year' name='[yr:Order Date:ok]' pivot='key' type='ordinal' />
</datasource-dependencies>
<aggregation value='true' />
</view>
<style />
<panes>
<pane selection-relaxation-option='selection-relaxation-allow'>
<view>
<breakdown value='auto' />
</view>
<mark class='Bar' />
<encodings>
<color column='[federated.06kawhx0djnv4m1f2t9hi0kb54bt].[yr:Order Date:ok]' />
</encodings>
</pane>
</panes>
<rows>[federated.06kawhx0djnv4m1f2t9hi0kb54bt].[sum:Calculation_1335880247511351298:qk]</rows>
<cols>[federated.06kawhx0djnv4m1f2t9hi0kb54bt].[yr:Order Date:ok]</cols>
</table>
</worksheet>
<worksheet name='Percent of Total Sales'>
<table>
<view>
<datasources>
<datasource caption='Orders (Sample-Superstore-Subset-Excel)' name='federated.06kawhx0djnv4m1f2t9hi0kb54bt' />
</datasources>
<datasource-dependencies datasource='federated.06kawhx0djnv4m1f2t9hi0kb54bt'>
<column caption='Percent of Total Sales' datatype='real' name='[Calculation_1335880247514902531]' role='measure' type='quantitative'>
<calculation class='tableau' formula='sum([Sales])/min({fixed:sum([Sales])})' />
</column>
<column datatype='string' name='[Product Name]' role='dimension' type='nominal' />
<column datatype='real' name='[Sales]' role='measure' type='quantitative' />
<column-instance column='[Product Name]' derivation='None' name='[none:Product Name:nk]' pivot='key' type='nominal' />
<column-instance column='[Calculation_1335880247514902531]' derivation='User' name='[usr:Calculation_1335880247514902531:qk]' pivot='key' type='quantitative' />
</datasource-dependencies>
<filter class='categorical' column='[federated.06kawhx0djnv4m1f2t9hi0kb54bt].[none:Product Name:nk]'>
<groupfilter function='union' user:ui-domain='relevant' user:ui-enumeration='inclusive' user:ui-marker='enumerate'>
<groupfilter function='member' level='[none:Product Name:nk]' member='"Bretford CR8500 Series Meeting Room Furniture"' />
<groupfilter function='member' level='[none:Product Name:nk]' member='"Canon imageCLASS 2200 Advanced Copier"' />