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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
gladies123
Helper I
Helper I

Reg:Active Count and Inactive Count

Hi Team,

Kindly provide the solution for the following issue, i have Table and B Table. A Table contains id, name ,salary date, B table has the same as table A conatains , So i would like to have an output as shown in the image , Hereby i have attached an image for your reference.Bi_Issue.jpg

Thanks,

Gladis

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @gladies123 ,

Use the following dax create measure:

TOTAL = COUNT(A[A ID])
ACT = COUNTROWS(FILTER('A',CONTAINS('B',[ID],'A'[A ID])))
INACT = COUNT(A[A ID])-COUNTROWS(FILTER('A',CONTAINS('B',[ID],'A'[A ID])))

Final get :

vluwangmsft_0-1626850689213.png

Wish it is helpful for you!

 

 

Best Regards

Lucien

View solution in original post

1 REPLY 1
v-luwang-msft
Community Support
Community Support

Hi @gladies123 ,

Use the following dax create measure:

TOTAL = COUNT(A[A ID])
ACT = COUNTROWS(FILTER('A',CONTAINS('B',[ID],'A'[A ID])))
INACT = COUNT(A[A ID])-COUNTROWS(FILTER('A',CONTAINS('B',[ID],'A'[A ID])))

Final get :

vluwangmsft_0-1626850689213.png

Wish it is helpful for you!

 

 

Best Regards

Lucien

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors