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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
kish14all
Microsoft Employee
Microsoft Employee

Count of referenced table rows count

Hi,

 

I have two tables, Projects and Application (1-* relation, One project contains many Applications) and Applications Table has a column IsActive which will be true if the Application is Active else false. Now I need to add a new column IsActive to Projects table such that it will be true when anyone Application is Active and false when all Applications are not Active. I am able to get the total Active projects count using Measure but I can't filter or use the slicer on a Measure so want to add a new column in Projects table.

2 REPLIES 2
harshnathani
Community Champion
Community Champion

Hi @kish14all ,

 

Not sure why you want a column in Project Table. You can create a Column in Application Table and then pull the values from Project and this column in a visual.

 

1.jpg

Create a Calculated Column

 

AllAct =

var _a = COUNTROWs(FILTER(Applications,Applications[Projects] = EARLIER(Applications[Projects]) && Applications[IsActive] = TRUE()))
RETURN
IF (_a>1 ,"True","False")

 

 

2.JPG

 

 

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Hi @harshnathani,

 

Thanks a lot for the response, this is working fine, the reason why I want a column in Projects Table because I have another Organizations Table which having relations to Projects Table (1-* relation) and needs to Apply the same logic of list of Organizations and IsActive ( true - if having at least one Active Project and false when all Projects are not Active) but the Organization Table don't have a direct relation with Applications Table. below is the structure of the tables.

The column I need at Organization level and Project level so that I can use that in the slicer to filter the number of active inactive Projects and Application's view.

 

Organization Table

IdentifierName<Required Column> Have any Active Projects
1Org1 
2Org2 
3Org3 
4Org4 

 

Projects Table

IdentifierOrganization.Identifiername<Required Column> IsActive
12Prj1 
22Prj2 
31Prj2 
43Prj1 

 

Application Table

IdentifierProject.IdentifiernameIsActive
13App1True
23App2False
31App3False
42App1True
54App3False

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.