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
harib
Post Patron
Post Patron

Ratio

I have a data like below. i want a ratio for stage wise lead generation.

below formulas i have used 

Opportunity Name Distinct = DISTINCTCOUNT('ReBU Opportunities History Report'[Opportunity Name])
To Stage count = COUNTA('ReBU Opportunities History Report'[To Stage])
 
ex : tostage/ 18 is a count Opportunity Name Distinct.

but ration is wrong . Appriciate if anyone can help.

Capture.JPGCapture2.JPG

 

 

1 ACCEPTED SOLUTION

 
Below formula is working 
 
Ratio = DIVIDE([To Stage count],'ReBU Opportunities History Report'[Opportunity Name Distinct])-1
 
Thanks
 

View solution in original post

10 REPLIES 10
themistoklis
Community Champion
Community Champion

@harib

 

What is exactly wrong. The numerator or denominator?

Any example of how the correct values should have been displayed?

@themistoklis

Ratio should be come like below . But i have used static values of 18. That's not the correct way. i want it dynamically insead of giving static values of 18.

 

formula : Ratio = [To Stage count]/18

 
hope u understand
Capture3.JPG

 

@harib

 

What is the formula that you use for the denominator?

@themistoklis

 

Opportunity Name Distinct = DISTINCTCOUNT('ReBU Opportunities History Report'[Opportunity Name])

 

above formlula which i have used. if it's wrong kindly provide the correct solution. My project get struck here

 

Thanks

@harib

 

Try the followig:

Opportunity Name Distinct = SUMX (
VALUES ( 'ReBU Opportunities History Report'[Owner] ),
CALCULATE ( DISTINCTCOUNT('ReBU Opportunities History Report'[Opportunity Name]) )
)

@themistoklis

 

The which you have provided also giving the same value of 18. but ration is not coming which i have expected. 

@harib

 

Any chance to share the workbook with us?

 

Mask any sensitive data

@themistoklis

 

Workbook link

 

https://drive.google.com/open?id=1hlL6bhutQkrRefNlafCFRFz87UtAvpHZ

 

Ratio should be come like below when you divide To stage count/Opportunity name distinct

 

Capture3.JPG

 

formulas which have used :

 

Opportunity Name Distinct = DISTINCTCOUNT('ReBU Opportunities History Report'[Opportunity Name])
To Stage count = COUNTA('ReBU Opportunities History Report'[To Stage])
 
 Thanks in advance

@harib

 

Try this formula:

 

Ratio = COUNTA('Table'[To Stage]) / CALCULATE(DISTINCTCOUNT('Table'[Opportunity Name]), ALLEXCEPT('Table','Table'[Owner]))

 
Below formula is working 
 
Ratio = DIVIDE([To Stage count],'ReBU Opportunities History Report'[Opportunity Name Distinct])-1
 
Thanks
 

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.