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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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! It's time to submit your entry.

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.