Skip to content

itsmecevi/retail-analysis-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

retail-analysis-sample

This is a Doku for retail analysis sample with Power BI.

Source: https://docs.microsoft.com/en-us/power-bi/sample-retail-analysis from http://obvience.com/

Before going further, we need understand the concept of the data model, please read the link below: https://en.wikipedia.org/wiki/Data_model

This analysis contains 4 entity (table) and every table has to attribute.

  1. store:
  • LocationID
  • City Name
  • Territory
  • PostalCode
  • OpenDate
  • SellingAreaSize
  • DistrictName
  • Name
  • StoreNumberName
  • StoreNumber
  • City
  • Chain
  • DM
  • DM_Pic
  • DistrictID
  • Open Month No
  • Open Month
  • Open Year
  • Store Type
  1. item
  • ItemID
  • Segment
  • Category
  • Buyer
  • FamilyNane
  1. time
  • ReportingPeriodID
  • Period
  • FiscalYear
  • FiscalMonth
  • Month
  1. district
  • District
  • DM
  • DM_Pic_fl DM_Pic
  • BusinessUnitID
  • DMImage
  1. sales fact
  • MonthID
  • ItemID
  • LocationID
  • Sum_GrossMarginAmount
  • Sum_Regular_Sales_Dollars
  • Sum_Markdown_Sales_Dollars
  • ScenarioID
  • ReportingPeriodID
  • Sum_Regular_Sales_Units
  • Sum_Markdown_Sales_Units

Let's make the data model from the 4 entity. Just drag every Primary Key of the entity in power pivot or power bi data model

retail analysis sample data model

Below are the measure of every graph,

Note! we use the format of table and attribut with DAX language

Extras: Quick Guide DAX


Drag this entity for every graph

  • This Year Sales by Chance graph:
  1. (Store)[Chain]

  2. (Sales)[This Year Sales] := [TotalSalesTY]

DAX -> TotalSalesTY = CALCULATE([TotalSales], Sales[ScenarioID]=1)

  • New Stores graph: . . .coming soon

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published