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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
mfaulk9258
Frequent Visitor

Calculating client engagement by actions of their employees

Hello all,

I am trying to calculate client engagement using a table showing clients and their employees who have taken action on marketing emails we send them. Actions include opening the email, clicking on a link in the email, accepting an invitation in the email, etc. I have a measure, [Engaged], that denotes an employee as TRUE if the employee took any of the tracked actions. I also have a measure, [Account Engaged], that denotes a client as TRUE if any of its employees took any of the tracked actions. It uses this measure I based on a post I found from 2017: 
Account Engaged = CALCULATE(countrows('table'),'table'[Engaged]=TRUE)>=1. 

Now I need to calculate the client engagement rate by dividing the total number of engaged clients by the total number of all clients. The screenshot below illustrates this scenario -- We have four clients, each with three employees. Employees at three out of the four clients have taken one or more actions on our marketing emails. Therefore, our engagement rate for our clients would be 75% (3 engaged clients/4 Total clients=75%). How can I calculate this Total Client Engagement percentage in Power BI?

mfaulk9258_1-1634931032884.png

 

Thank you.

 

1 ACCEPTED SOLUTION
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @mfaulk9258 ,

 

take a look at this.

 

Calculated Table:

Account Engaged = SUMMARIZE('Raw Data','Raw Data'[Client], "Engaged", CONTAINS('Raw Data','Raw Data'[Engaged],TRUE())) 

 

Total True = CALCULATE(COUNTROWS('Account Engaged'), 'Account Engaged'[Engaged]=TRUE())

 

Total Client = COUNTROWS('Account Engaged')

 

True/Client = DIVIDE([Total True], [Total Client])
Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


View solution in original post

2 REPLIES 2
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @mfaulk9258 ,

 

take a look at this.

 

Calculated Table:

Account Engaged = SUMMARIZE('Raw Data','Raw Data'[Client], "Engaged", CONTAINS('Raw Data','Raw Data'[Engaged],TRUE())) 

 

Total True = CALCULATE(COUNTROWS('Account Engaged'), 'Account Engaged'[Engaged]=TRUE())

 

Total Client = COUNTROWS('Account Engaged')

 

True/Client = DIVIDE([Total True], [Total Client])
Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


That's it exactly and it worked perfectly. Thank you so much!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.