Basic Practice Exercises SOLUTION
Basic Practice Exercises SOLUTION
3) Add sales labels to the bars and remove the horizontal axis
Direction Details
Direction Details
From the dimensions list drag Country to detail on the marks card.
From the measures list Drag Profit to color on the marks card.
From the dimensions list drag Order date to the filter shelf. Choose “# Years”
select “all” and click ok.
Right click the field on the filter shelf and select show filter.
At the top right corner of the filter click the small triangle and select single value
(dropdown).
Exercise 3 – Scatter plot
1) Create a scatter plot with Sales on the x-axis and Profit on the y-axis.
4) Change the Marks from Automatic to Circle and find a suitable colour and
transparency level
Direction Details
From the measures list Drag Sales to columns.
From the measures list drag Profit to rows.
From the dimensions list drag Customer name to detail on the marks card.
In the top of the data window click the analytics tab.
Drag a trend line into the view. Choose linear trend.
On the marks card, change the mark type from Automatic to Circle.
On the marks card, find a fitting color and try to play with the level of
transparency.
Exercise 4 – Customer list
Create a customer list showing:
- Customer name,
- what products they have purchased,
- the exact Order date,
- Profit and
- Sales amount
Direction Details
2) Break down the timeline by Segment, creating 3 lines. Add trend lines
Direction Details
2) The calculation of the field should show the number of days between Order
Date and Ship Date. (Search for DATEDIFF when writing the calculated field to
see examples of the syntax used)
3) Create a highlight table showing the Date Difference by Segment and Ship
Mode.
4) Change the colour to a sequential red, to express that more days = darker red.
Direction Details
Right click on a white area of your measuring list (on the left side of the screen)
and select Create calculated field.
Name your new calculation “Date Difference”
Add the formula DATEDIFF('day',[Order Date],[Ship Date])
From the dimensions list drag Ship Mode to columns
From the dimensions list drag Segment to rows
From the measures list drag Date Difference to Label on the marks card
From the measures list drag Date Difference to Color on the marks card
From color on the marks card, select “Edit Colors..” and change the Palette to red.
Exercise 7 – Dual Axis
1) Show Sales over discrete weekdays, by using the Order Date dimension.
Visualize as a bar chart.
2) Add Profit to the table by double clicking it and select Dual Axis.
Direction Details
Make sure that the year filter from exercise 2 applies to all 4 sheets
Try different drill downs from Category to country to customer group to have a
specific customer list.
Direction Details
Drag in your four sheets as floating elements on the dashboard.
Make space for a head line and drag in a text box from the dashboard elements
just under the list of your available sheets.
Delete unnecessary legends
Click the arrow in the top right corner of the year filter and make it apply to all
sheets
In the top right corner of the three first sheets click the small triangle and select
use as filter.
Click the marks in the sheets to drill down the data and explore.