DAX FORMULAS USED
DAX FORMULAS USED
QUESTIONS TO BE ANSWERED
1. Metrics- Sales, Profits, % of returned orders. Show % change Vs PY.
2. Compare sales performance versus year over time
3. Determine the most profitable product and the most loss-making product
4. Find out the place where most of the profit is happening
5. Sales by segment
3. Products classified as technology led the pack in all categories while furniture
is dragging. I recommend a bundled range of offers with categories that make
up the furniture and discount to be extended to purchase these offers. The
company should invest more in R&D to identify what customers really want
from furniture and other products.
4. California and New York led other places by generating the highest profit of
$76,381.39 and $74,038.55 whereas Wyoming, West Virginia, North Dakota,
Maine are dragging.
5. The consumer goods generated more than half (50.56%) of the total profits.
The company should explore avenues like offering discounts for referrals,
investigating competitors’ pricing strategy to identify fair pricing to boost
sales in these categories.
Table =
ADDCOLUMNS
(CALENDAR(MIN(Superstore_Orders[Order Date]), MAX(Superstore_Orders[Order
Date])),
"start of month", EOMONTH([DATE], -1)+1
)
2ND METHOD
Use this DAX Functions
CALENDAR = CALENARAUTO() PRESS ENTER
Click on ADD New Column to add others e.g.
MONTH NUMBER = MONTH([Date]. ENTER
MONTH NAME = FORMAT([Date], ™mmmm”). ENTER
To sort your column chart x-axis labels chronologically,
Click on monthly icon on your data pane to highlight it, then go to column tools,
sort by month number.
1. Sales = SUM(Superstore_Orders[Sales]
2. Profit = SUM(Superstore_Orders[Profit])
3. Sales PY =
CALCULATE(
[Sales],
SAMEPERIODLASTYEAR( 'Table'[Date]))
4. Profit PY =
CALCULATE(
[Profit],
SAMEPERIODLASTYEAR( 'Table'[Date]))
5. % of Returned Orders =
VAR _total_orders = Distinctcount(Superstore_Orders[Order ID])
VAR _returned_orders = Distinctcount(Superstore_Returned[Order ID])
VAR _perc =
DIVIDE(
_returned_orders,
_total_orders
)
RETURN
_perc
6. % returned Orders PY =
CALCULATE(
[% of Returned Orders],
SAMEPERIODLASTYEAR( 'Table'[Date]))
7. VS PY - % returned orders =
[% of Returned Orders]-[% returned Orders PY]
8. VS PY - Profit =
DIVIDE(
[Profit] - [Profit PY],
[Profit PY])
9. VS PY - Sales =
DIVIDE(
[Sales] - [Sales PY],
[Sales PY])
You can now select each column name e.g. Month name and sort it by
month number, etc
FORMAT each column as Date and then click on MARK AS DATE TABLE,
Select Date and save.