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
Brin2040
New Member

If field contains text in N:1 related table

Doing a custom column "Has Blockable Connector" in the PowerApps table of the Power Platform CoE Starter Kit's Power BI report. The PowerApps table has a 1:N relationship with the App Connection Reference table (one app can have many connections). The goal is to indicate whether any one of the multiple connectors an app may have is blockable by a Power Platform DLP policy.

 

The App Connection Reference table has a "DLP Blockable" field with values of either "Blockable" or "Not Blockable". What is the syntax for a custom column in the PowerApps table that would look at the DLP Blockable field of the App Connection Reference table and return a value for yes, among the multiple records of connections for that specific app, at least one of them is blockable, or no, none of them is blockable?

 

Data model:

20240131 PBI data model CoE kit.png

App Connection Reference table:

20240131 PBI App Connection Reference table CoE kit.png

In the example above, the app ending in -4ec78aa7ff49 in the PowerApps table would have a value of "Yes" in the Has Blockable Connector column because one of its four connectors is blockable.

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey @Brin2040 ,

 

you can create the calculated column "Has Blockable Connector" in the table "Power Apps" using the below DAX:

 

Has Blockable Connector = 
var noOfBlockableConnectors = COUNTROWS( FILTER( RELATEDTABLE( 'App Connection Reference' ), 'App Connection Reference'[Is Blockable] = "Blockable" ) )
return
IF( noOfBlockableConnectors > 0 , "yes" , "no" )

 

 

This is how my model looks like:

image.png

The content of the table "App Connection Reference":

image.png

And the result of the calculated column in the table Power Apps:

image.png

 

Hopefully, this provides what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

2 REPLIES 2
Brin2040
New Member

@TomMartensworks beautifully and very clearly explained. Thank you!

TomMartens
Super User
Super User

Hey @Brin2040 ,

 

you can create the calculated column "Has Blockable Connector" in the table "Power Apps" using the below DAX:

 

Has Blockable Connector = 
var noOfBlockableConnectors = COUNTROWS( FILTER( RELATEDTABLE( 'App Connection Reference' ), 'App Connection Reference'[Is Blockable] = "Blockable" ) )
return
IF( noOfBlockableConnectors > 0 , "yes" , "no" )

 

 

This is how my model looks like:

image.png

The content of the table "App Connection Reference":

image.png

And the result of the calculated column in the table Power Apps:

image.png

 

Hopefully, this provides what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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.