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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Create New Table from Existing SQL Server Many-to-Many Relationship

I have an existing many-to-many relationship in SQL Server that has been pulled into Power BI.  I would like to create a 'dynamic' table in PowerBI using fields from each table from both sides of the relationship.  I can do this in a visualization no problem, but I need to also add some conditional fields so I'm thinking a new table is the way to go?  Any ideas would be fantastic.

fristin816_1-1598472483951.png

 

3 REPLIES 3
lbendlin
Super User
Super User

Let the data model do the work for you. (Also known as "Don't fight the API")

 

Define what you mean by "conditional fields"  - should these be measures or calculated columns?

Anonymous
Not applicable

Sorry for the confusion.  Calculated columns.

If it is a calculated column then you can also think about implementing it in either Power Query or your SQL server source.  DAX is always the last resort for calculated columns.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.