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
Berl21
Helper III
Helper III

DAX: write a measure that corrects conversion rate to a 100%

Hi,

I have the following issue:

A lead can generate 2 or more opportunities, or never convert. I want to compute the conversion rate of leads into opportunities but not take into account all the additional opportunities after the 1st one.

For instance, I have the following:
Lead A generates 34 opportunities
Lead B generates 0 opportunities
Lead C generates 1 opportunity

Lead A and C should generate a 100% CR, Lead B a 0%.

I am thinking there is a way to write an if statement in DAX, in the likes of if CR > 100%, then write 100%. But I am not sure exactly how and which functions to use.

Can anyone help out?

Thanks,

Pauline.



1 REPLY 1
john_mulqueen
New Member

Might need some more details to give you a good answer, but I'm assuming you have something like this in a table

 

Distinct count =
CALCULATE ( DISTINCTCOUNT ( 'Table'[Lead] ), 'Table'[Status] = "Converted" )

 

 

LeadOpportunityStatus
AA_1Converted
AA_2Converted
AA_3Converted
AA_4Converted
AA_5Converted
AA_6Converted
AA_7Converted
AA_8Converted
AA_9Converted
AA_10Converted
AA_11Converted
AA_12Converted
AA_13Converted
AA_14Converted
AA_15Converted
AA_16Converted
AA_17Converted
AA_18Converted
AA_19Converted
AA_20Converted
AA_21Converted
AA_22Converted
AA_23Converted
AA_24Converted
AA_25Converted
AA_26Converted
AA_27Converted
AA_28Converted
AA_29Converted
AA_30Converted
AA_31Converted
AA_32Converted
AA_33Converted
AA_34Converted
BB_1Not Converted
CC_1Converted

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.

Top Solution Authors