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

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

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
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.