Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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?
Thank you.
Solved! Go to Solution.
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])
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
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])
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!
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
90 | |
87 | |
84 | |
68 | |
49 |
User | Count |
---|---|
131 | |
111 | |
96 | |
71 | |
67 |