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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
SniperPro86
Frequent Visitor

Falg Measure to activate inactive relationship between two tables

Hello
I have 2 tables (tableA and tableB) related with inactive relationship. I want to create a flag measure that activate the relationship between tables. 
I want to be able to chose an attribute from one table and see relataed attribute from the other table.
I begin with doing this measure and I want to know if it is the better solution :
PS : tableA is the many side of the relation

 

 

CALCULATE(
	SUMX('tableA', 1),
	USERELATIONSHIP('tableA'[FkI_tableB], 'tableB'[ID_tableB])
)

 

 

1 REPLY 1
lbendlin
Super User
Super User

Read about TREATAS - much simpler to use and doesn't require any relationships.

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.