Advanced - Modelling Data

Master Power BI Dashboard Excel Power BI Dashboards
5 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$10
List Price:  $199
You save:  $189
€9.59
List Price:  €191.01
You save:  €181.41
£7.98
List Price:  £158.83
You save:  £150.84
CA$13.98
List Price:  CA$278.27
You save:  CA$264.28
A$15.37
List Price:  A$306.01
You save:  A$290.63
S$13.46
List Price:  S$267.97
You save:  S$254.50
HK$77.84
List Price:  HK$1,549.10
You save:  HK$1,471.26
CHF 8.93
List Price:  CHF 177.82
You save:  CHF 168.88
NOK kr110.72
List Price:  NOK kr2,203.44
You save:  NOK kr2,092.72
DKK kr71.58
List Price:  DKK kr1,424.50
You save:  DKK kr1,352.91
NZ$17.13
List Price:  NZ$341.07
You save:  NZ$323.93
د.إ36.73
List Price:  د.إ730.92
You save:  د.إ694.19
৳1,194.68
List Price:  ৳23,774.19
You save:  ৳22,579.51
₹844.38
List Price:  ₹16,803.23
You save:  ₹15,958.84
RM44.68
List Price:  RM889.13
You save:  RM844.45
₦16,928.83
List Price:  ₦336,883.74
You save:  ₦319,954.91
₨2,778
List Price:  ₨55,282.20
You save:  ₨52,504.20
฿344.66
List Price:  ฿6,858.76
You save:  ฿6,514.10
₺345.52
List Price:  ₺6,875.94
You save:  ₺6,530.42
B$58.01
List Price:  B$1,154.39
You save:  B$1,096.38
R181.15
List Price:  R3,604.94
You save:  R3,423.79
Лв18.77
List Price:  Лв373.54
You save:  Лв354.77
₩14,045.10
List Price:  ₩279,497.49
You save:  ₩265,452.39
₪37.02
List Price:  ₪736.69
You save:  ₪699.67
₱589.39
List Price:  ₱11,728.86
You save:  ₱11,139.47
¥1,547.70
List Price:  ¥30,799.23
You save:  ¥29,251.53
MX$204.28
List Price:  MX$4,065.27
You save:  MX$3,860.98
QR36.46
List Price:  QR725.56
You save:  QR689.10
P136.72
List Price:  P2,720.73
You save:  P2,584.01
KSh1,294.68
List Price:  KSh25,764.28
You save:  KSh24,469.59
E£496.50
List Price:  E£9,880.38
You save:  E£9,383.88
ብር1,223.88
List Price:  ብር24,355.40
You save:  ብር23,131.51
Kz9,130
List Price:  Kz181,687
You save:  Kz172,557
CLP$9,866.80
List Price:  CLP$196,349.32
You save:  CLP$186,482.52
CN¥72.43
List Price:  CN¥1,441.35
You save:  CN¥1,368.92
RD$602.52
List Price:  RD$11,990.22
You save:  RD$11,387.70
DA1,342.75
List Price:  DA26,720.72
You save:  DA25,377.97
FJ$22.75
List Price:  FJ$452.91
You save:  FJ$430.15
Q77.17
List Price:  Q1,535.73
You save:  Q1,458.56
GY$2,091.55
List Price:  GY$41,622.02
You save:  GY$39,530.46
ISK kr1,396.80
List Price:  ISK kr27,796.32
You save:  ISK kr26,399.52
DH100.57
List Price:  DH2,001.42
You save:  DH1,900.84
L182.21
List Price:  L3,626.11
You save:  L3,443.89
ден590.47
List Price:  ден11,750.54
You save:  ден11,160.06
MOP$80.15
List Price:  MOP$1,595.11
You save:  MOP$1,514.95
N$181.30
List Price:  N$3,607.87
You save:  N$3,426.57
C$367.86
List Price:  C$7,320.57
You save:  C$6,952.70
रु1,350.16
List Price:  रु26,868.20
You save:  रु25,518.04
S/37.90
List Price:  S/754.40
You save:  S/716.49
K40.25
List Price:  K801
You save:  K760.75
SAR37.54
List Price:  SAR747.13
You save:  SAR709.58
ZK276.45
List Price:  ZK5,501.49
You save:  ZK5,225.03
L47.78
List Price:  L950.86
You save:  L903.07
Kč243.26
List Price:  Kč4,840.91
You save:  Kč4,597.65
Ft3,950
List Price:  Ft78,605
You save:  Ft74,655
SEK kr110.36
List Price:  SEK kr2,196.20
You save:  SEK kr2,085.84
ARS$10,038.49
List Price:  ARS$199,766.10
You save:  ARS$189,727.60
Bs69.08
List Price:  Bs1,374.73
You save:  Bs1,305.64
COP$43,897.49
List Price:  COP$873,560.24
You save:  COP$829,662.74
₡5,092.37
List Price:  ₡101,338.21
You save:  ₡96,245.84
L252.64
List Price:  L5,027.56
You save:  L4,774.92
₲78,046.70
List Price:  ₲1,553,129.39
You save:  ₲1,475,082.69
$U426.22
List Price:  $U8,481.88
You save:  $U8,055.65
zł41.63
List Price:  zł828.54
You save:  zł786.90
Already have an account? Log In

Transcript

Now that we're happy with our data, we have done all of the steps involved. We've loaded it here, we've done our transformations, it's looking good. So we're going to be going to home and select close and apply. So once we do that, it's going to be loaded into our data model. So it's applying query changes, and then it's just going to be taking quite a while for it to load everything in our data model. Now it's loading the data to the model, and then it's going to be attempting to create relationships as well.

Okay, so there you go, detecting relationships. And now we can see that it's finished, right, you can see here, and let's just go straight to data. And let's see what happened. So if we look at team clutch, right, we have our data in here. The clutch games, okay, team defense, let's like this is looking good. We have the defense rating over here, defensive rating score to Team stats, right?

We have all the teams we have the points as well. So that's looking good. Okay. So what we can do right now is we can just make some changes All right. So for example, and when presentation, let's say it's being displayed as a decimal, we want it to be displayed differently. Let's go to modeling.

And let's change the format to person presentation over here, just to make it look better. Okay? So let's go to Team clutch, any changes that we want to do, let's say when person page we can change the format again to presentation we're here. Okay? Just to make it look a bit different. Let's go to team defense, okay?

Nothing, nothing that we want to change over here. Okay, now it's looking good. Let's go to this tab over here for the model, we can look at our relationships. So let me just move this a bit so that you can see the lights better. Okay, so what Power BI has tried to do okay is it tried to infer the relationships between our three tables over here so you can see there's a line relating team clutch and team stats, there's a line for it. Defense that's and then there's a line for clutch and defense.

Okay? So if we go over one by one, you can see that it linked it by location. Okay, so when we look back at our data, okay, so let me just move back here, you could see that team clutch for example, right? Because all of the data over here for the tree tables that we have, they are all uniquely identified by the team. Okay, so you could think of it as the location as being unique right? across all of them.

And then we also have team as well being unique. So which means any two of the columns over here, either location or team can be used to uniquely identify a specific row over here. Okay, so for simplicity, let's just select location. Okay, so the good thing with this one is location is consistent across team defense team stats, and team clutch so which means this row over here for Houston, we would know that this row of stats would be related to this row status file over here, right for Houston as well. Right? And same thing as well, for Team stats.

If we go here, right, the role of Houston would also be related because this location would uniquely identify and relate the three separate girls from the three tables together. So same goes as well for that, say, let's just pick New York, for example, then we would look for a row in New York as well. And you would know the stats here would be related to the same stats that has the value of New York for the location. Okay, so the reason why I explained this concept is because it's going to be crucial in instant stablishing relationships in here. So if we go over here, and surprisingly, Power BI was able to infer that location is the one that's relating the team clutch values and the team stats values. So what I did was, let me just redo that.

I just hovered over the line and double click on it to open the relationship tab over Relationship window. And you can see that is this one is related to this column as well for the location. And that's good. And you can see it's one to one. So which means one row is related to one role in from Team stats to Team clutch, or vice versa. Okay?

So that's what we want that looking good. Select OK. If we hover here, okay, you can see that it's team is relating team from Team touch to team defense and activity, that's fine, but for consistency, what we want to be related, right, would be location, and location. Okay, and it's one to one. Okay, so we just made a change to the relationship over here. And once we're happy, just select Okay.

Now, if we hover again, yep, it's looking good. It's now location and location. So if we do this as well, let's check team stats and team defense. And it's looking good, right, it inferred and used location so we're happy with that. Now once we're happy with the relationships will now be able to move on from our data model and we can now start with our visualization.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.