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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Super User
Super User

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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Super User
Super User

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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors