0
0
Tableaubi_tool~20 mins

Arithmetic calculations in Tableau - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Arithmetic Calculations Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
dax_lod_result
intermediate
2:00remaining
Calculate Total Sales with Discount Applied

You have a sales dataset with fields Sales Amount and Discount Rate (as a decimal). Which Tableau calculated field formula correctly calculates the total sales after applying the discount?

A[Sales Amount] + [Discount Rate]
B[Sales Amount] / [Discount Rate]
C[Sales Amount] * (1 - [Discount Rate])
D[Sales Amount] - [Discount Rate]
Attempts:
2 left
💡 Hint

Remember that a discount reduces the sales amount by a percentage.

visualization
intermediate
2:00remaining
Best Visualization for Showing Profit Margin Percentage

You want to show the profit margin percentage for different product categories. Which visualization type in Tableau best communicates this percentage clearly?

ABar chart with profit margin percentage on the axis
BLine chart showing profit margin over time
CScatter plot with profit margin on one axis and sales on the other
DPie chart showing profit margin slices per category
Attempts:
2 left
💡 Hint

Think about which chart type makes comparing percentages across categories easiest.

data_modeling
advanced
2:00remaining
Create a Calculated Field for Average Sales per Customer

You have total sales and number of customers per region. Which Tableau calculated field formula correctly computes average sales per customer?

A[Number of Customers] / [Total Sales]
B[Total Sales] / [Number of Customers]
C[Total Sales] * [Number of Customers]
D[Total Sales] - [Number of Customers]
Attempts:
2 left
💡 Hint

Average means total divided by count.

🎯 Scenario
advanced
2:00remaining
Adjusting Sales for Tax in a Dashboard

Your sales data does not include tax. You want to show sales including a 7% tax in your dashboard. Which calculated field formula correctly adds tax to sales?

A[Sales] / 1.07
B[Sales] + 0.07
C[Sales] - 0.07
D[Sales] * 1.07
Attempts:
2 left
💡 Hint

Adding 7% tax means increasing sales by 7%.

🔧 Formula Fix
expert
2:00remaining
Identify the Error in This Tableau Calculation

Consider this Tableau calculated field formula intended to calculate profit ratio:
[Profit] / [Sales Amount]
However, the dashboard shows Null values for some rows. What is the most likely cause?

Tableau
[Profit] / [Sales Amount]
ASome [Sales Amount] values are zero, causing division by zero resulting in Null
B[Profit] field contains text values causing calculation failure
C[Sales Amount] field is missing from the data source
DThe formula syntax is incorrect and causes an error
Attempts:
2 left
💡 Hint

Think about what happens when you divide by zero in Tableau.