Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hello Friends,
Sample table here. I need a average from Returns (Qty), Shipped (Qty)
Returns (Qty) : 3296
Shipped (Qty) : 18732408
Rate (%) : 0.21%
Rate (%) =If [Shipped (Qty)]=0 Then 0 Else 12 * [Returns (Qty)] / [Shipped (Qty)] + 0
Can we get average with if Condition like above formula.
Thanks in Advance
Solved! Go to Solution.
@harib - The DIVIDE function has 3 parameters - Numerator, Denominator and Alternate Result. You could create a measure like this:
Rate (%) = var num = SUM([Returns (Qty)]) * 12 var den = SUM([Shipped (Qty)]) return divide(num, den, 0)
Hope this helps,
Nathan
Hi @harib ,
We can also use the IF() function.
Rate (%) = IF ([Shipped (Qty)]=0 , 0 , 12 * DIVIDE([Returns (Qty)] ,[Shipped (Qty)] )+ 0)
Best Regards,
Teige
Hi @harib ,
We can also use the IF() function.
Rate (%) = IF ([Shipped (Qty)]=0 , 0 , 12 * DIVIDE([Returns (Qty)] ,[Shipped (Qty)] )+ 0)
Best Regards,
Teige
@harib - The DIVIDE function has 3 parameters - Numerator, Denominator and Alternate Result. You could create a measure like this:
Rate (%) = var num = SUM([Returns (Qty)]) * 12 var den = SUM([Shipped (Qty)]) return divide(num, den, 0)
Hope this helps,
Nathan
User | Count |
---|---|
67 | |
61 | |
47 | |
34 | |
32 |
User | Count |
---|---|
87 | |
72 | |
56 | |
49 | |
45 |