Class Five: Calculations Flashcards
How to use reference lines?
- build out regular chart
- click on the axis and say add reference line?
- drop the average into the detail area in the chart
- you can add it in as a reference line now!
to clean
- keep no decimal places
- colour oNLY IF IT ADDS VALUE
- drop grid lines if you are labelling the values (they are not needed)
- change the title
- Declutter
Remove gridlines
Adding labels
Use appropriate colour
Use appropriate shape
how to combiine line charts?
move the pill to the axis
how to make things dual axis
drag the pill to the right axis
how to make a combined line and bar chart
make the lines into a bar! in the left hand marks dash board
Aggregate Calculations:
A single number at the bottom of the original column
but you need to use the aggregate functions (sum/average etc.)
What does the rank function do? You can put it into a calculated field
RANK(SUM([Profit])). or RANK(SUM([Attribute])
zn()
strips characters
RANK(expression, [‘asc’|’desc’])
This returns the standard competition rank for the current row in the partition.
Identical values are assigned an identical rank. Use the optional ‘asc’ | ‘desc’ argument to specify ascending or descending order. The default is descending
WINDOW_AVG(expression, [start, end])
‒ This returns the average of the expression within the window. The window is defined
by means of offsets from the current row