Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Better to calculate a lookup or create a database view

More of a general question, but it will apply many times to the reports I am building with this dataset.  Data is coming from a MySQL server where I am able to create views.

 

The players table contains data like this:

player_idplayer_nameorg_id
1Jennifer Smith1
2Adrian Wells2

 

The org table contains data like this:

org_idorg_name
1Blue Team
2Red Team

 

I want to be able to slice player data by org_name.  Even when I set the relationships, I can't seem to create a slicer that shows org_name.  

 

My questions:  First, am I missing something that would allow me to create this slicer without either adding a new column in Power BI or creating a view with this data at the source?  Second, for a largish data set (~750k rows), am I better off adding a calculated column showing org_name in the players table or creating a view in the database that I import into Power BI?

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

For the last question, almost always better to create a view in the database versus add processing to desktop side.

 

For first issue, your relationship should be:

 

Org Table 1 -> * Players Table

 

On [org_id] columns. Then you should be able to slice by org_name from Org table.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

For the last question, almost always better to create a view in the database versus add processing to desktop side.

 

For first issue, your relationship should be:

 

Org Table 1 -> * Players Table

 

On [org_id] columns. Then you should be able to slice by org_name from Org table.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.