0% found this document useful (0 votes)
63 views

Lab 3

Data visualization lab program

Uploaded by

sahayar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views

Lab 3

Data visualization lab program

Uploaded by

sahayar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Creating a View - formatting charts, adding filters, creating calculated fields

and defining parameters.


Connect sample superstore
Drag and drop profit in column shelf
Drag and drop category and sub-category in row shelf
Formatting charts
Formatting can be done using marks pane
Change the colour of profit bar by dragging the profit from data pane and drop
it in colours option in the marks pane
Click on coloursedit then select red-green diverging
The size option in the marks pane helps to change the size of the bars
Drag and drop profit and category from the data pane to the label option the
marks pane
Click on label and click on (…) near the text box
In the dialogue box, change the format of the label to the desired text click on
apply and then ok.
Click on the tooltip and edit the tooltip in the new window and click ok.
Example tooltip: In the main category <Category> and sub-category <Sub-
Category>, the profit is <SUM(Profit)>
Right click on the headers and disable show headers to remove headers.
Click on the sheet and change the name.
Adding filters
Drag and drop category from data pane to filters pane.
Include and exclude the required categories.
Creating calculated fields
View datacalculated field
In the secondary window, give the name for calculated field i.e.,sum of profit
Type the expression sum([Profit]) and click on Apply and ok.
For calculating sum of quantity
In the secondary window, give the name for calculated field i.e.,sum of
Quantity
Type the expression sum([Quantity]) and click on Apply and ok.
For calculating Average sales price
In the secondary window, give the name for calculated field i.e.,Average sales
price.
Type the expression [sum of profit]/[sum of quatity] and click on Apply and ok.
Drag and drop the category to column shelf and Average sales price to row
shelf.
Defining parameters
Parameters with filters
Drag and drop the sales to column shelf and sub-category to row shelf.
Sort the sub-category in the descending order
Drag and drop sub-category to the filters pane.
In the dialogue box click on top tab
Under the Byfield option select number of top sub-categories required i.e.,10
Instead of doing this every time,
Right-click sub-category in the filters pane.
In the dialogue box click on top tab
Under the Byfield option select create new parameter in the drop-down list
box.
Create the parameter.

You might also like