Pbi Word Document
Pbi Word Document
Practice Questions:
1) Combine columns “Prefix”, “First Name”, and “last Name”. Name it as “Full Name”.
Here we have given double quotes for 0 and 1, because in the Gender field we have a
category “NA”, hence treated as Text.
3) Recode the column “EducationLevel” with 0,1 as “High School”, 2,3 as “Secondary
School”, and 4,5 as “Graduation”.
Change the data type from Text to Whole Number. Then do the following:
Click on Customer Lookup table→ Table Tools → New Column
EduLevel = SWITCH('Customer Lookup'[EducationLevel],0,"High
School",1,"High School",2,"Secondary
School",3,"Graduation",4,"Graduation")
4) Create columns for Start of Year, Start of Quarter, Start of Month, and Start of Week. Also
create a hierarchy of it.
7) Create a column for “Quantity Type” if Order Quantity is > 1, “Multiple Items” else
“Single Item”.
Click on Sales Data → Table Tools → New Column
Quantity Type=IF('Sales Data'[OrderQuantity]>1,"Multiple
Items","Single Item")
i) Order Target, Order Target Gap, Profit Target, Profit Target Gap
Click on Sales Data table → Table Tools → New Measure
Order_Target = [Previous Month Orders] * 1.1
Order Target Gap = [Total Orders] - [Order_Target]
Profit Target =[Previous Month Profit] * 1.1
Profit Target Gap = [Total Profit] - [Profit Target]
Home Tab → Click on Enter Data Icon → Name it as Measure Table (or of your choice)
Then Select a measure (Ex: Total Orders) Change Home Table from Sales Data to
Measure Table.
13) Construct a Decomposition Tree for Total Orders by Category Name, SubcategoryName,
ProductName.
Select Decomposition Tree from Visualization Pane:
Analyze → Total Orders
Explain By → Category Name, SubcategoryName, ProductName
Format the Graph:
Format Visual →General →Title
Text → Orders by Category, Subcategory and Product Name
Font → Arial
Font Size →14
Bold
Text Color → Black
Alignment → Centre
Format Visual →Visual
Category Labels → Values
Font → Arial
Font Size →14
Bold
Font Color → Black
Values →
Font → Arial
Font Size →14
Bold
Font Color → Black
Display Units → None
14) Create cards for Total Orders, Total Returns, Total Profit, Return Rate.
Select Card from Visualization Pane:
Fields →Total Orders
Format the Graph:
Format Visual →General→ Title
Text → Orders
Font → Arial
Font Size →14
Bold
Text Color → Black
Alignment → Centre
Format Visual →General→ Effects
Background → of Your Choice
Visual Border → of Your Choice
Format Visual → Visual → Category Label → off
Format Visual → Visual → Callout Value
Font → Arial
Font Size →32
Bold
Font Color →Black
Display Units →None (You can use specific Units based the filed you are using. Ex:
Profit, you can use thousands as display units)
Copy & Paste the Card to make Cards for Total Returns, Total Profit, Return Rate.
Fields →Total Returns for Returns Card
Fields →Total Profit for Profit Card
Fields →Return Rate for Return Rate Card
Change the Title respectively.
15) Construct a line chart to show Weekly Orders, and add a tooltip for Total Orders, Total
Profit, Total Revenue, Return Rate. (Hint: Use Multi Row Card)
Select either Line Chart or Area chart from the Visualization Pane.
x- axis → Start of Week
y- axis → Total Orders
Format Visual →General→ Title
Text → Weekly Orders
Font → Arial
Font Size →14
Bold
Text Color → Black
Alignment → Centre
16) Construct a card for Unique Customers (Hint: Use the measure Total Customers) and
Revenue per Customer (Hint: Use the measure Average Revenue)
17) Construct a Donut chart for Orders by IncomeLevel, and Orders by Occupation.
18) Create a matrix to show Top 50 customers by Revenue and place the column Order
Quantity in the table. Also create cards for Top Customer by Revenue, Top Customer by
Orders, Top Customer by Revenue.
23) Construct Animated Bar Chart for Total Profit by Country and Date.
26) Construct a scatter plot with suitable fields. Also add animation for it.
28) Construct a stacked bat chart with suitable fields. Add a slicer on it.