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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

calculate percentage

Hi all, I'm trying to calculate the open rate for email messages based on the following data. How would I create a measure that divides emails opened/emails sent?

 

FeatureMonthTotal
Emails sentApril1000
Emails OpenedApril100
1 ACCEPTED SOLUTION
harshnathani
Community Champion
Community Champion

Percentage =

var _sent = Calculate (Sum(Table[Total]), Filter(ALLExcept(Table,Table[month])), Table[Feature]) = "Email sent")
var _open = Calculate (Sum(Table[Total]), Filter(ALLExcept(Table,Table[month])), Table[Feature]) = "Email opened")

Return
Divide(_open,_sent)

View solution in original post

3 REPLIES 3
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

Measure =

var _sent = Calculate (Sum('Table'[Total]), Filter(ALLExcept('Table','Table'[month]), 'Table'[Feature] = "Emails sent"))
var _open = Calculate (Sum('Table'[Total]), Filter(ALLExcept('Table','Table'[month]), 'Table'[Feature] = "Emails Opened"))

Return
Divide(_open,_sent)
 
 

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

az38
Community Champion
Community Champion

 

@Anonymous 

Measure = 
DIVIDE(
CALCULATE(SUM(Table[Total]), Table[Feature] = "Emails Opened"),
CALCULATE(SUM(Table[Total]), Table[Feature] = "Emails sent")
)

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
harshnathani
Community Champion
Community Champion

Percentage =

var _sent = Calculate (Sum(Table[Total]), Filter(ALLExcept(Table,Table[month])), Table[Feature]) = "Email sent")
var _open = Calculate (Sum(Table[Total]), Filter(ALLExcept(Table,Table[month])), Table[Feature]) = "Email opened")

Return
Divide(_open,_sent)

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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