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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Rebecca_Hadad
Regular Visitor

Need to Calculate conversion rates for the count of a measure

Hello

 

I am new to Power BI and having trouble creating a new measure called 'Conversion'

 

My data is as follows in one column;

 

Application

Application

Admit

Admit

Admit

Offer

Accept

Accept

Application

Offer

Admit

Application

 

I would like to divide the count of Accept by the count Application.

I think it is something like the following, but can't get it to work as it is not numeric data but rather count of values.

Measure = DIVIDE( SUM([Number of Acceptances]) / SUM([Number of Applications]) )

 

Thanks

RH

1 ACCEPTED SOLUTION

Hi @Rebecca_Hadad,

not sure I follow, you say you want the ratio of "Accept" and "Admit" over total applications. You have two "Accept" and four "Admit" in your example, i.e. 50%. Anyway, a simpler formula to accomplish this:

Conversion = 
CALCULATE(COUNTROWS(Applications), 
                    Applications[Status] = "Accept" || Applications[Status] = "Admit")
/ COUNTROWS(Applications)

 

View solution in original post

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi @Rebecca_Hadad,

 

You may download my solution from here.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-qiuyu-msft
Community Support
Community Support

Hi @Rebecca_Hadad,

 

You can create a measure below: 

 

Measure = DIVIDE(CALCULATE(COUNT(Table1[Column1]),FILTER(ALL(Table1[Column1]),'Table1'[Column1]="Accept")),CALCULATE(COUNT(Table1[Column1]),FILTER(ALL(Table1[Column1]),'Table1'[Column1]="Application")))

 

r1.PNGr2.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

 

Thank you for the reponse. 

 

Also, if I want to treat every data line (every measure as an application), even those that are offered and admit, then the true acceptance conversion would be 25% (3 (2 x accept plus 1 Admit) divided by 12 Applications).

 

How then, could I modify the measure calc to include each measure as an application.

 

Thanks

Hi @Rebecca_Hadad,

not sure I follow, you say you want the ratio of "Accept" and "Admit" over total applications. You have two "Accept" and four "Admit" in your example, i.e. 50%. Anyway, a simpler formula to accomplish this:

Conversion = 
CALCULATE(COUNTROWS(Applications), 
                    Applications[Status] = "Accept" || Applications[Status] = "Admit")
/ COUNTROWS(Applications)

 

Hi Erik,

Apologies, perhaps I didn't make myslef clear. But Any row in the data is an application, i.e. offer or admit should also be counted as an application its just that they are at a different stage of the application process.

 

Thankyou for the simplified formula.

 

 

Hi @Rebecca_Hadad,

 

From your description, it seems the issue is solved now, right? 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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