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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ChrisDg
Helper I
Helper I

DAX Formula for Average Unique Email Open Rate

Hi,

 

I am trying to figure out how to create a DAX formula for the average of another DAX formula. I already created a formula for showing the unique open rate:  

Open Rate = SUM(Combined_EmailGroupOverview[Unique Opens])/SUM(Combined_EmailGroupOverview[Total Delivered])
 
This works correctly, but now I need to do an Average Open rate of all of the Open Rates from the DAX 'Open Rate' calculation, which I don't know how to do. 
 
I tried these formula:
Average Open Rate =
AVERAGEX(
   VALUES(Combined_EmailGroupOverview[Email Subject Line]),
   [Open Rate]
)
 
And this formula:
 
Average Open Rate by Content Type =
AVERAGEX(
   VALUES(Combined_EmailGroupOverview[Content Type]),
   DIVIDE(
       SUM(Combined_EmailGroupOverview[Unique Opens]),
       SUM(Combined_EmailGroupOverview[Total Delivered]),
       0
   )
)
 
It got me these results when I filtered for the average open rate based on content type: 
 
ChrisDg_3-1724768255305.png

 


I know these averages aren't right and the 2nd formula just gave me the same result as the regular open rate formula. For example, if I see these open rates: 100.00%, 100.00%, 100.00%, 50.00%, 39.13% then I want the average to be 77.83%.

 

I want to do the average open rates of many different categories: content type, email send date, email subject line, etc. Do I have to do different formulas for each category that I want the averages from? This also spans across 5 years worth of data and over 1 millon rows.


Thank you,

 

Christopher Degler


 

 
5 REPLIES 5
ChrisDg
Helper I
Helper I

Hi Ibendlin,

 

Sorry to post a screenshot. I've tried adding my sample data set multiple different ways and it keeps giving me this error:

ChrisDg_0-1724854623720.png

 

Sometimes it will let me post the sample data set and it says that the content has posted, but when I refresh the page the comment disappears.

ChrisDg_2-1724854837020.png

 

 

Is there another way to do this or am I doing something wrong?

 

Thank you,

 

Chris

 

 

Hi Ibendlin,

 

I now see the sample data uploaded correctly based off of the link. It shown as Message 3 of 6. It must have had a lag in uploading.

 

ChrisDg_0-1724861139411.png

 

 

Thank you,

 

Chris

ChrisDg
Helper I
Helper I

Hi Ibendlin,

 

Here is the data:

 

Email Send DateContent TypeOpen RateSum of Unique OpensSum of Total Delivered
3/10/2021 21:00Tradeshow100.00%11
3/11/2021 22:00Tradeshow100.00%11
3/11/2021 23:00Tradeshow100.00%11
3/12/2021 13:00Tradeshow50.00%12
3/12/2021 15:00Tradeshow80.00%45
3/12/2021 16:00Tradeshow60.00%35
3/15/2021 11:00Tradeshow21.51%2093

 

Thank you,

 

Chris

lbendlin
Super User
Super User

You cannot measure a measure directly. Either materialize it first, or create a separate measure that implements the entire business logic.

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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