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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.