11th program..
11th program..
Histogram:
• Simple Histogram
• Histogram with Dimensions
Simple Histogram (1 measure):
• You can create histogram with dimensions by using a dimension field in colors shelf.
• For the above graph drag Region to the color Shelf under Marks Card.
• This creates a stacked histogram where each bar also includes the visualization for
different regions.
Motion Charts:
• Then drag the Sales to the Rows Shelf. The following chart appears.
• As soon as we add Order Date to the Pages section, play box appears on the right.
• Now, we select Circle as the mark type from the Marks list. This will show
individual data points on the plot.
• Now check the Show history and click on it. Then select All, and Both options
• We select the option Both so that our motion chart has both data points and trailing
line when it moves from a start point to an endpoint.
• Now, clicking on the play button as shown in the screenshot below, our motion chart
starts from one point, moves towards the right following the trail of every data point
and then finally terminates on the last data point on the plot.
Waterfall Chart:
• Create a calculated field named -Profit and mention the formula as –[Profit] in the
calculation editor, then click ok.
• Drag the newly created calculated field (-Profit) to the size shelf under Marks Card.
The chart above now changes to produce the following chart which is a Waterfall
chart.
• Next, give different color shades to the bars in the chart by dragging the Profit to the
Color shelf under the Marks Card. You get the following waterfall chart with color
• In the next step, we duplicate Profit (add Profit again to the rows shelf and perform
the same operations as above to the Profit Field i.e., up to Running Totals). This will
give us two separate water fall charts as shown in the screenshot below.
• Now remove Profit from colour and size shelves only for the duplicate Profit i.e.,
Sum (Profit) (2). You can see it in the above picture.
• Then you get the Gantt chart for the second one. (You can even change the colour of it
by clicking on color and select black.)
• Now right-click on second Profit under Columns shelf and select Dual Axis.
• You get the final waterfall chart where the line differentiates the positive and negative
values of Profit. From this, we can understand which Sub-Category managed to incur
most profits and which underwent loss. In this way, waterfall charts prove to be
extremely useful in analysis.