The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Dear All,
I need to claculate number of call to number of opportunity ratio. i.e. if i have made 10 calls to a customer and those calls generated 5 oppotunities, my calls to opportunity ratio is ( 10/5 = 2) 1:2.
I wanted to know how to display the ratio 1:2 , what are the fomratting OR DAX i should use ?
I dn't want to display "2" instaed i want to display "1:2".
Kindly help.
Regards,
Krishna
Solved! Go to Solution.
Well, you could return "1:" & [num]. Or if you want to keep it as a number under the hood, you could use the technique found here:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389
You have to calculate 2 measures:
[Number of Calls]
[Number of Opportunities]
Then you have to find the GCD using the GCD DAX function and then divide both by this GCD and then create such a measure:
[Your Final measure] =
var __calls = [Number Of Calls]
var __opps = [Number of Opportunities]
var __gcd = GCD( __calls, __opps )
var __result =
COMBINEVALUES(
":", // delimiter
int(__opps / __gcd ),
int(__calls / __gcd )
)
return
__result
Best
D
You have to calculate 2 measures:
[Number of Calls]
[Number of Opportunities]
Then you have to find the GCD using the GCD DAX function and then divide both by this GCD and then create such a measure:
[Your Final measure] =
var __calls = [Number Of Calls]
var __opps = [Number of Opportunities]
var __gcd = GCD( __calls, __opps )
var __result =
COMBINEVALUES(
":", // delimiter
int(__opps / __gcd ),
int(__calls / __gcd )
)
return
__result
Best
D
@Anonymous thanks a lot. But what i am getting with your DA is shown in table below.
What i need is, for eg - i have had 49 meetings with HDFC and generated 9 deals. So my meeting to deal ratio is =DIVIDE (49,9) and show 5:1. that means i have to have 5 meetings to generate 1 deal.
Account | Total Meeting | # of Deals | Calls to Deal Ratio | Actualy it should show |
HDFC | 49 | 9 | 9:49 | 5:1 |
@Anonymous Thanks a lot
Well, you could return "1:" & [num]. Or if you want to keep it as a number under the hood, you could use the technique found here:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389
Thanks a lot Greg.
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
11 | |
7 |