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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to calculate % of valid e-mails converted to case

I am trying to provide a visual on emails which came in which were converted to a support case to the total of emails. The valid email SQL query  for: (Valid e-mails converted to case) / (Total valid e-mails)

( (​Resolution_SubType != SPAM && Action Required Reason !="Manually fixed to not spam") /((​ Resolution_SubType != SPAM && Action Required Reason =="Manually fixed to not spam"))

 

How would I start with DAX? I have gone over the basics but, unsure how to write this out since there are filters. Do I filter on the visual?

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

It would be something like : 

Result = DIVIDE( COUNTROWS(filter(Mails, Mails[Resolution]<>"SPAM" && Mails[Action Required Reason]<>"Manually fixed to not spam")), 
COUNTROWS(filter(Mails, Mails[Resolution]<>"SPAM" && Mails[Action Required Reason]="Manually fixed to not spam")))

Hope this helps

 

Jan 

Anonymous
Not applicable

Thank you @Anonymous ! I was able to get a result out of this! However, how do I get it to not be 185755k%. I've tried decimal, &, * 100...it is not giving me a solid %.

Anonymous
Not applicable

Hi @Anonymous ,

 

You could create two new measures from the numerator and denominator, to check if these numbers meet you expectations. I guess you have a feeling on what it approx. should be. Furthermore I don't know your data model, so I assumed that the fields are in one table. The numbers should not be higher than the total number of records in your table.

Jan 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.