Uploaded by Ashi

power bi -l2 assignments 0

advertisement
1. Imagine that AdventureWorks, whose main product line is bikes, acquires a new
company that enriches the product portfolio with accessories products. As the
chief analyst for AdventureWorks, you are asked to create a new report based on
the unified product lines.
Create Bikes.xlsx file and Accessories.xlsx file with below sample data
and import data from them ad use append queries option combine data.
2. Suppose you work as a stock trader on the Bombay Stock Exchange You buy
shares on the market at one price and sell them at another for either a profit or a
loss.
To use DAX to analyze your business, you want to collect the following four
key data points:

The number of shares bought

The price you paid for each share

The number of shares sold

The amount you sold each share for
Using this data, create calculated column or measures to generate the
following information:

Your total investment for the entire fiscal year

Your total sales for the entire fiscal year

Profits and losses from individual stocks

Total profits and losses for the entire fiscal year

Total profits and losses for month-to-date (MTD), quarter-to-date (QTD), and year-todate (YTD)
3. Use custom visual bullet chart and create an example of your own.
4. Create parameter which will display employee details based on chosen eno.
Emp.txt
Dno,eno,Sal
10,1,2000
10,2,3000
20,3,3000
20,4,4000
5. Create Row level security which will allow user to view only dno 10 data
Dept.txt
Dno,dname,loc
10,Maths,Hyderabad
20,Science,Chennai
6. DAX :
a)Joins
Dept.txt
Dno,dname,loc
10,Maths,Hyderabad
20,Science,Chennai
Emp.txt
Dno,eno,Sal
10,1,2000
10,2,3000
20,3,3000
20,4,4000
Write DAX equivalents of inner , left ,right and fullouterjoins based on common column dno
b) Select statements
Write DAX equivalents of
a) Select * from dept where dno>10
b) Select * from emo where sal >2000 and <=4000
Download