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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Create True False Filter With USERELATIONSHIP Issue

Hi,

 

There are 2 tables.

 

Table 1:

TimeID

Start

End

ResourceID

 

(source2 refers to Table 1)

Table 2:

TimeID

Start

End

ResourceID

Source2.Timeid

 

 

The main relationship is table1.timeid (one) = table2.timeid(many)

 

I have created another relationship (inactive) that is table1.timeid (one) = table2.source2.timeid (many)

 

Howevere when i create a column on table1 to try and do a check using IF(table1.timeid = table2.source2.timeid, 1, 0) it cannot. I know i need to tell it to use the USERELATIONSHIP to define the link of the data.

 

I cannot seem to find a way to do this on the IF statement, only the CALCULATE function where if i use the IF within that, i cannot reference any tables at all!

 

So confused....

 

Essentially, i am trying to create a filter that does a true false result so i can exclude data.

 

Any help would be greatly appreciated.

 

Many Thanks

POC

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Typically this is how we bring data from table to table 2 in a new column

 

New column in Table 1 = maxx(filter(table2,table1[customer] = table2[customer] && table2[option]="construction",table2[value])

New column in Table 1 = maxx(filter(table2,table1[Attribute] = table2[name] && table1[project] = table2[project],table[name])

New column in Table 1 = if(isblank(maxx(filter(table2,table1[Attribute] = table2[name] && table1[project] = table2[project],table[name]))1,0)

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

Typically this is how we bring data from table to table 2 in a new column

 

New column in Table 1 = maxx(filter(table2,table1[customer] = table2[customer] && table2[option]="construction",table2[value])

New column in Table 1 = maxx(filter(table2,table1[Attribute] = table2[name] && table1[project] = table2[project],table[name])

New column in Table 1 = if(isblank(maxx(filter(table2,table1[Attribute] = table2[name] && table1[project] = table2[project],table[name]))1,0)

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors