Forum Discussion

ChrisDg's avatar
ChrisDg
Helper I
2 years ago

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: 
 

 


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