Forum Discussion

YaleSOM's avatar
YaleSOM
Frequent Visitor
9 years ago
Solved

Weighted Average for Email Open Rate

My data table, called "Email Stats" contains analytics for each email campaign. I'm trying to create a new measure that calculates the weighted average of email open rate across all 50 email campaign...
  • KGrice's avatar
    KGrice
    9 years ago

    That error means OpenRateSum doesn't work as a measure because it's trying to do a Sum on a string, i.e., text. I suspect that the Open Rate is a string in your table, rather than an actual number. 25% is probably the number 25 and then the percent sign, not 0.25. 

     

    You should be able to tell in your Edit Queries. The left-hand corner of each column has a symbol that indicates the data type. Open Rate should be 1.2, not ABC. If you see ABC, you might be able to click it and select 1.2 instead and see if it auto-converts correctly, which will depend on how it's stored. If that doesn't work and you're still stuck, post back.

     

    Once that error's cleared, you'll be able to use Weighted Average in the card visual.