Bird
Raised Fist0
Tableaubi_tool~20 mins

Device-specific layouts in Tableau - Practice Problems & Coding Challenges

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Challenge - 5 Problems
🎖️
Device Layout Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Device-Specific Layouts in Tableau

Which statement best describes the purpose of device-specific layouts in Tableau dashboards?

AThey convert dashboards into static images for faster loading on mobile devices.
BThey automatically change data sources based on the device used to view the dashboard.
CThey allow creating different dashboard versions optimized for desktop, tablet, and phone devices.
DThey enable embedding dashboards into mobile apps without any changes.
Attempts:
2 left
💡 Hint

Think about how dashboards can look different on phones versus desktops.

visualization
intermediate
2:00remaining
Choosing the Right Device Layout for a Dashboard

You have a sales dashboard with many detailed charts. Which device-specific layout should you prioritize to ensure the best user experience on a phone?

ACreate a phone layout with simplified charts and fewer filters.
BUse the desktop layout as is for the phone device.
CCreate a tablet layout and assign it to phone devices.
DDisable device layouts and rely on automatic scaling.
Attempts:
2 left
💡 Hint

Phones have smaller screens, so think about what users can easily see and interact with.

🔧 Formula Fix
advanced
2:00remaining
Troubleshooting Device Layout Visibility

You created a phone layout for your dashboard, but when viewing on a phone, the desktop layout still appears. What is the most likely cause?

AThe phone layout was created but not assigned to the phone device type.
BThe dashboard contains unsupported objects that prevent device layouts from displaying.
CThe device preview mode was not enabled in Tableau Desktop.
DThe phone layout was not published to Tableau Server or Tableau Online.
Attempts:
2 left
💡 Hint

Check if the layout is properly linked to the device type.

🎯 Scenario
advanced
2:00remaining
Optimizing Dashboard Performance with Device Layouts

You notice your dashboard loads slowly on tablets. You want to improve performance using device-specific layouts. Which approach is best?

AAdd more filters to the tablet layout to limit data shown.
BUse the desktop layout for tablets but reduce the data source size.
CDisable device layouts and rely on Tableau's automatic device scaling.
DCreate a tablet layout with fewer visualizations and simpler calculations.
Attempts:
2 left
💡 Hint

Think about how reducing complexity affects loading speed.

dax_lod_result
expert
3:00remaining
Device Layout Usage Analysis with LOD Expressions

In Tableau, you want to calculate the percentage of users who view the dashboard using the phone layout versus all device layouts. Which LOD expression correctly calculates this percentage?

Assume [Device Type] field contains values 'Phone', 'Tablet', 'Desktop'.

ACOUNTD(IF [Device Type] = 'Phone' THEN [User ID] END) / COUNTD([User ID])
B{ FIXED : COUNTD(IF [Device Type] = 'Phone' THEN [User ID] END) } / COUNTD([User ID])
C{ INCLUDE [Device Type] : COUNTD([User ID]) } / COUNTD([User ID])
D{ EXCLUDE [Device Type] : COUNTD(IF [Device Type] = 'Phone' THEN [User ID] END) } / COUNTD([User ID])
Attempts:
2 left
💡 Hint

Think about how to fix the calculation at the overall level ignoring dimensions.

Practice

(1/5)
1. What is the main purpose of device-specific layouts in Tableau dashboards?
easy
A. To create different dashboard designs optimized for phones, tablets, and desktops
B. To connect Tableau to different data sources automatically
C. To change the color scheme of a dashboard based on user preferences
D. To export dashboards in multiple file formats

Solution

  1. Step 1: Understand device-specific layouts

    Device-specific layouts allow creating different dashboard versions tailored for various devices like phones, tablets, and desktops.
  2. Step 2: Identify the main purpose

    The main goal is to improve user experience by optimizing the dashboard layout for each device type.
  3. Final Answer:

    To create different dashboard designs optimized for phones, tablets, and desktops -> Option A
  4. Quick Check:

    Device-specific layouts = tailored dashboard designs [OK]
Hint: Think about device screen sizes and user experience [OK]
Common Mistakes:
  • Confusing device layouts with data connections
  • Thinking device layouts change colors only
  • Assuming device layouts export files
2. Which Tableau feature allows you to preview how your dashboard looks on different devices?
easy
A. Calculated Fields
B. Data Interpreter
C. Story Points
D. Device Preview

Solution

  1. Step 1: Recall Tableau features for device layouts

    Tableau provides a feature called Device Preview to check dashboard appearance on phones, tablets, and desktops.
  2. Step 2: Match feature to description

    Device Preview specifically lets you test and adjust layouts for different devices before publishing.
  3. Final Answer:

    Device Preview -> Option D
  4. Quick Check:

    Preview device layouts = Device Preview [OK]
Hint: Look for 'Preview' in the feature name for device testing [OK]
Common Mistakes:
  • Confusing Device Preview with Data Interpreter
  • Mixing up Story Points with device layout tools
  • Thinking Calculated Fields preview layouts
3. Given a dashboard with device layouts set for phone and desktop, what happens if a user opens it on a tablet without a specific layout?
medium
A. The desktop layout is shown by default
B. The phone layout is shown by default
C. An error message appears
D. The dashboard does not load

Solution

  1. Step 1: Understand default layout behavior

    If a device-specific layout is not created for a device (tablet here), Tableau uses the desktop layout as the default fallback.
  2. Step 2: Apply to the scenario

    Since only phone and desktop layouts exist, tablet users see the desktop layout automatically.
  3. Final Answer:

    The desktop layout is shown by default -> Option A
  4. Quick Check:

    Missing tablet layout = desktop layout fallback [OK]
Hint: No tablet layout? Desktop layout shows [OK]
Common Mistakes:
  • Assuming phone layout shows by default
  • Expecting error messages for missing layouts
  • Thinking dashboard fails to load
4. You created device-specific layouts but notice the phone layout is not applied when viewing on a phone. What is a likely cause?
medium
A. The desktop layout has higher priority and overrides phone layout
B. Tableau does not support phone layouts
C. The phone layout was not enabled in the Device Layouts pane
D. The data source is incompatible with phone layouts

Solution

  1. Step 1: Check device layout settings

    Device-specific layouts must be enabled explicitly in Tableau's Device Layouts pane for each device type.
  2. Step 2: Identify common mistake

    If the phone layout is created but not enabled, Tableau will not apply it when viewed on a phone.
  3. Final Answer:

    The phone layout was not enabled in the Device Layouts pane -> Option C
  4. Quick Check:

    Enable phone layout to apply it [OK]
Hint: Enable layouts in Device Layouts pane to activate [OK]
Common Mistakes:
  • Thinking desktop layout overrides phone layout
  • Believing Tableau lacks phone layout support
  • Blaming data source for layout issues
5. You want to create a dashboard that shows a detailed sales chart on desktop but a simplified summary on phones. How should you use device-specific layouts to achieve this?
hard
A. Use one layout and rely on Tableau to automatically simplify visuals on phones
B. Create separate layouts: full chart for desktop, summary for phone, and enable both
C. Create only a phone layout with the summary and no desktop layout
D. Create a desktop layout with summary and phone layout with full chart

Solution

  1. Step 1: Plan layouts for each device

    To show different visuals per device, create separate layouts tailored to each device's needs.
  2. Step 2: Implement and enable layouts

    Create a detailed sales chart layout for desktop and a simplified summary layout for phones, then enable both in Device Layouts.
  3. Step 3: Verify user experience

    This ensures desktop users see full details, and phone users get a clean summary optimized for small screens.
  4. Final Answer:

    Create separate layouts: full chart for desktop, summary for phone, and enable both -> Option B
  5. Quick Check:

    Separate layouts for devices = tailored user experience [OK]
Hint: Design and enable distinct layouts per device type [OK]
Common Mistakes:
  • Expecting automatic simplification without separate layouts
  • Creating only one layout for all devices
  • Mixing up which layout shows on which device