Bird
Raised Fist0
Tableaubi_tool~10 mins

Field sort (alphabetic, data source) in Tableau - Interactive Code Practice

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to sort the field alphabetically in Tableau calculated field.

Tableau
SORT([Category], [1])
Drag options to blanks, or click blank then click option'
ASUM
BDESC
CASC
DAVG
Attempts:
3 left
💡 Hint
Common Mistakes
Using DESC will sort in reverse alphabetical order.
Using aggregation functions like SUM or AVG will cause errors here.
2fill in blank
medium

Complete the code to sort the field by data source order in Tableau.

Tableau
SORT([Region], [1])
Drag options to blanks, or click blank then click option'
AASC
BDATA_SOURCE_ORDER
CDESC
DRANK
Attempts:
3 left
💡 Hint
Common Mistakes
Using ASC or DESC will sort alphabetically, not by data source order.
RANK is not a valid sorting option here.
3fill in blank
hard

Fix the error in the code to sort the field alphabetically ascending.

Tableau
SORT([Product], [1])
Drag options to blanks, or click blank then click option'
AASC
BDESC
CSUM
DMAX
Attempts:
3 left
💡 Hint
Common Mistakes
Using DESC sorts in descending order, which is reverse alphabetical.
Using aggregation functions causes errors.
4fill in blank
hard

Fill both blanks to sort the field by data source order and then alphabetically descending.

Tableau
SORT([Segment], [1]) THEN SORT([Segment], [2])
Drag options to blanks, or click blank then click option'
ADATA_SOURCE_ORDER
BDESC
CASC
DRANK
Attempts:
3 left
💡 Hint
Common Mistakes
Using ASC instead of DESC for the second sort.
Using RANK which is not a sorting order here.
5fill in blank
hard

Fill all three blanks to sort the field alphabetically ascending, then by data source order, and finally descending.

Tableau
SORT([Category], [1]) THEN SORT([Category], [2]) THEN SORT([Category], [3])
Drag options to blanks, or click blank then click option'
AASC
BDATA_SOURCE_ORDER
CDESC
DRANK
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up ASC and DESC orders.
Using RANK which is not a valid sorting order here.

Practice

(1/5)
1. What does sorting fields alphabetically in Tableau do?
easy
A. It changes the data source order permanently.
B. It arranges fields in the Data pane from A to Z by their names.
C. It sorts data rows in the worksheet alphabetically.
D. It filters out fields that don't start with a letter.

Solution

  1. Step 1: Understand field sorting in Tableau

    Sorting fields alphabetically arranges the field names in the Data pane from A to Z.
  2. Step 2: Differentiate from data sorting

    This sorting affects only the field list, not the data rows or data source order.
  3. Final Answer:

    It arranges fields in the Data pane from A to Z by their names. -> Option B
  4. Quick Check:

    Field names sorted alphabetically = It arranges fields in the Data pane from A to Z by their names. [OK]
Hint: Alphabetic sort orders field names A to Z in the Data pane [OK]
Common Mistakes:
  • Confusing field sorting with data row sorting
  • Thinking it changes data source order
  • Assuming it filters fields
2. Which menu option in Tableau lets you sort fields by data source order?
easy
A. Right-click Data pane > Sort > Data Source Order
B. Right-click Data pane > Sort > Alphabetic
C. Worksheet menu > Sort Fields > Data Source
D. Data menu > Sort > Manual

Solution

  1. Step 1: Locate sorting options in Tableau

    Right-clicking the Data pane shows a Sort submenu with options including Alphabetic and Data Source Order.
  2. Step 2: Identify correct option for data source order

    Selecting 'Data Source Order' sorts fields as they appear in the original data source.
  3. Final Answer:

    Right-click Data pane > Sort > Data Source Order -> Option A
  4. Quick Check:

    Data Source Order sorting = Right-click Data pane > Sort > Data Source Order [OK]
Hint: Right-click Data pane > Sort > Data Source Order for original field order [OK]
Common Mistakes:
  • Choosing Alphabetic instead of Data Source Order
  • Looking in Worksheet or Data menu instead of Data pane
  • Selecting Manual sort which is not for data source order
3. If you sort fields alphabetically in Tableau, which field order will you see in the Data pane?
Fields: Sales, Profit, Customer, Date
medium
A. Profit, Sales, Customer, Date
B. Sales, Profit, Customer, Date
C. Date, Customer, Profit, Sales
D. Customer, Date, Profit, Sales

Solution

  1. Step 1: List fields alphabetically

    Sort the fields by their names alphabetically: Customer, Date, Profit, Sales.
  2. Step 2: Compare with given options

    Customer, Date, Profit, Sales matches the alphabetical order exactly.
  3. Final Answer:

    Customer, Date, Profit, Sales -> Option D
  4. Quick Check:

    Alphabetic order = Customer, Date, Profit, Sales [OK]
Hint: Alphabetic sort orders fields by name A to Z [OK]
Common Mistakes:
  • Assuming original data source order is kept
  • Mixing up alphabetical order
  • Choosing random order
4. You tried to sort fields by data source order but the fields remain alphabetically sorted. What is the likely issue?
medium
A. You need to refresh the data source first.
B. Tableau does not support sorting by data source order.
C. You did not select 'Data Source Order' in the sort menu.
D. Fields cannot be sorted in the Data pane.

Solution

  1. Step 1: Understand sorting options

    Tableau supports sorting fields by Alphabetic or Data Source Order via the Data pane menu.
  2. Step 2: Identify common user mistake

    If fields remain alphabetically sorted, likely the user did not choose 'Data Source Order' explicitly.
  3. Final Answer:

    You did not select 'Data Source Order' in the sort menu. -> Option C
  4. Quick Check:

    Not selecting correct sort option = You did not select 'Data Source Order' in the sort menu. [OK]
Hint: Always confirm 'Data Source Order' is selected to change sort [OK]
Common Mistakes:
  • Assuming Tableau lacks data source order sorting
  • Forgetting to refresh data source
  • Thinking fields cannot be sorted
5. You have a Data pane with fields ordered as: Region, Sales, Profit, Date. You want to sort fields alphabetically but keep 'Date' always last. How can you achieve this in Tableau?
hard
A. Sort alphabetically, then manually drag 'Date' to the bottom.
B. Sort by data source order and rename 'Date' to start with 'Z'.
C. Use a calculated field to exclude 'Date' from sorting.
D. Tableau does not allow custom sorting of fields.

Solution

  1. Step 1: Apply alphabetic sort

    Sort fields alphabetically to order them by name automatically.
  2. Step 2: Manually adjust 'Date' position

    Drag the 'Date' field manually to the bottom to keep it last.
  3. Final Answer:

    Sort alphabetically, then manually drag 'Date' to the bottom. -> Option A
  4. Quick Check:

    Manual drag after sort = Sort alphabetically, then manually drag 'Date' to the bottom. [OK]
Hint: Sort alphabetically, then drag exceptions manually [OK]
Common Mistakes:
  • Thinking data source order can fix custom exceptions
  • Trying to exclude fields via calculation
  • Believing Tableau disallows manual field order
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard