Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Solved! Go to Solution.
It's a bit hard to say without seeing some sample data, but maybe you could create an [Open Count] measure something like the following:
Open Count = SUMX(VALUES(Email_Activity[Message Title]),
CALCULATE (DISTINCTCOUNT (Email_Activity[Recipient E-mail] ) , Email_Activity[Opened] = 1)
)
Then your Open Rate measure would reference this measure
Open Rate = [Open Count] / SUM( Email_Activity[Sent] )
The problem centers around the distinctcount(). Why are you using distinctcount? Do you have multiple rows if someone opens an email twice?
If not and the grain of your Email_Activity table is just one row for each email that was sent, and you update the Opened flag when someone opens the email then could you just write your expression as follows
SUM(Email_Activity[Opened]) / SUM(Email_Activity[Sent])
If this does not work can you post a few rows of example data that show us why you need to do the distinctcount?
d_gosbell sorry for the late response, but yes I have multiple rows for each time a email address opens an email. Unfortuntely that is something I cannot change as part of the export. I also have 1 row for each time someone clicks on an email. Do you have any suggestions?
It's a bit hard to say without seeing some sample data, but maybe you could create an [Open Count] measure something like the following:
Open Count = SUMX(VALUES(Email_Activity[Message Title]),
CALCULATE (DISTINCTCOUNT (Email_Activity[Recipient E-mail] ) , Email_Activity[Opened] = 1)
)
Then your Open Rate measure would reference this measure
Open Rate = [Open Count] / SUM( Email_Activity[Sent] )
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
6 | |
4 | |
3 | |
3 | |
2 |