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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.