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
AnnaH11
Frequent Visitor

How calculate number of True values shown in a column in a filtered table?

Hi,

 

I have a table where we have one column with Engagements and one column with a company that belongs to this engagement. An engagement can have several companies, ie there can be several rows with the same engagement. I also have made a column that gives the value true if one or more of the same engagement have a contact registered in the row.

 

I have a table and a Multi-row card in the Report view, see picture below.

 

I have filtered so I have 5 engagements, and in some cases there are two companies for that engagement. So in total 7 companies for these 5 engagements. So long all is good.

 

But I would need a way to get the number of True in the Client contacts column, in this case 5. Ie if 5 Engagements show in the table, how many Trues are in the Client contacts column. Anyone who might know how to do this?

 

 

AnnaH11_0-1717490446462.png

 

Kind regards,

Anna

 

1 ACCEPTED SOLUTION

Hi @AnnaH11 

 

You can try this measure.

 

Measure = CALCULATE(DISTINCTCOUNT('Table'[Engagement]),'Table'[Client Contact]="TRUE")

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

View solution in original post

3 REPLIES 3
Moetazzahran
Resolver II
Resolver II

Hello, 
Can you please provide a sample dataset?

Hi, it can look like this

 

AnnaH11_0-1717497346099.png

 

Hi @AnnaH11 

 

You can try this measure.

 

Measure = CALCULATE(DISTINCTCOUNT('Table'[Engagement]),'Table'[Client Contact]="TRUE")

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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