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.28
List Price:  €184.72
You save:  €175.44
£7.96
List Price:  £158.59
You save:  £150.62
CA$13.67
List Price:  CA$272.06
You save:  CA$258.39
A$15.14
List Price:  A$301.46
You save:  A$286.32
S$13.49
List Price:  S$268.45
You save:  S$254.96
HK$78.12
List Price:  HK$1,554.70
You save:  HK$1,476.58
CHF 9.05
List Price:  CHF 180.09
You save:  CHF 171.04
NOK kr108.74
List Price:  NOK kr2,164.04
You save:  NOK kr2,055.29
DKK kr69.29
List Price:  DKK kr1,379.05
You save:  DKK kr1,309.75
NZ$16.63
List Price:  NZ$331.03
You save:  NZ$314.39
د.إ36.72
List Price:  د.إ730.90
You save:  د.إ694.17
৳1,094.44
List Price:  ৳21,779.44
You save:  ৳20,685
₹833.80
List Price:  ₹16,592.65
You save:  ₹15,758.85
RM47.40
List Price:  RM943.26
You save:  RM895.86
₦12,350
List Price:  ₦245,765
You save:  ₦233,415
₨2,774.15
List Price:  ₨55,205.69
You save:  ₨52,431.53
฿367.58
List Price:  ฿7,314.98
You save:  ฿6,947.39
₺323.53
List Price:  ₺6,438.38
You save:  ₺6,114.84
B$50.96
List Price:  B$1,014.21
You save:  B$963.25
R185.09
List Price:  R3,683.30
You save:  R3,498.21
Лв18.15
List Price:  Лв361.26
You save:  Лв343.10
₩13,560.45
List Price:  ₩269,852.95
You save:  ₩256,292.50
₪37.07
List Price:  ₪737.85
You save:  ₪700.77
₱570.63
List Price:  ₱11,355.63
You save:  ₱10,785
¥1,530.55
List Price:  ¥30,457.94
You save:  ¥28,927.39
MX$169.72
List Price:  MX$3,377.50
You save:  MX$3,207.78
QR36.37
List Price:  QR723.83
You save:  QR687.45
P135.85
List Price:  P2,703.45
You save:  P2,567.60
KSh1,321.29
List Price:  KSh26,293.81
You save:  KSh24,972.52
E£478.94
List Price:  E£9,530.97
You save:  E£9,052.03
ብር572.42
List Price:  ብር11,391.34
You save:  ብር10,818.91
Kz8,360
List Price:  Kz166,364
You save:  Kz158,004
CLP$9,422.84
List Price:  CLP$187,514.57
You save:  CLP$178,091.73
CN¥72.37
List Price:  CN¥1,440.20
You save:  CN¥1,367.83
RD$579.47
List Price:  RD$11,531.60
You save:  RD$10,952.12
DA1,345.93
List Price:  DA26,784
You save:  DA25,438.07
FJ$22.53
List Price:  FJ$448.40
You save:  FJ$425.87
Q77.51
List Price:  Q1,542.53
You save:  Q1,465.01
GY$2,086.23
List Price:  GY$41,515.99
You save:  GY$39,429.76
ISK kr1,395.08
List Price:  ISK kr27,762.27
You save:  ISK kr26,367.18
DH100.58
List Price:  DH2,001.61
You save:  DH1,901.03
L176.64
List Price:  L3,515.26
You save:  L3,338.61
ден571.30
List Price:  ден11,369.05
You save:  ден10,797.74
MOP$80.26
List Price:  MOP$1,597.28
You save:  MOP$1,517.01
N$184.59
List Price:  N$3,673.46
You save:  N$3,488.87
C$367.10
List Price:  C$7,305.37
You save:  C$6,938.27
रु1,331.48
List Price:  रु26,496.64
You save:  रु25,165.15
S/37.22
List Price:  S/740.80
You save:  S/703.58
K38.54
List Price:  K767.11
You save:  K728.56
SAR37.50
List Price:  SAR746.37
You save:  SAR708.86
ZK268.99
List Price:  ZK5,352.96
You save:  ZK5,083.97
L46.20
List Price:  L919.53
You save:  L873.33
Kč232.71
List Price:  Kč4,631.04
You save:  Kč4,398.33
Ft3,615.62
List Price:  Ft71,951.03
You save:  Ft68,335.40
SEK kr107.87
List Price:  SEK kr2,146.72
You save:  SEK kr2,038.85
ARS$8,782.42
List Price:  ARS$174,770.22
You save:  ARS$165,987.79
Bs69.05
List Price:  Bs1,374.26
You save:  Bs1,305.20
COP$38,840.67
List Price:  COP$772,929.41
You save:  COP$734,088.73
₡5,096.76
List Price:  ₡101,425.62
You save:  ₡96,328.86
L246.34
List Price:  L4,902.26
You save:  L4,655.92
₲74,655.05
List Price:  ₲1,485,635.66
You save:  ₲1,410,980.60
$U382.19
List Price:  $U7,605.66
You save:  $U7,223.47
zł40.20
List Price:  zł800.02
You save:  zł759.82
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.