Forum Discussion
Divide function giving different results
- 6 years ago
Anonymous,
Is your table like this?
I created a measure but didn't meet the error:
Measure 2 = VAR x = COUNTX( FILTER( Sheet9, [Status] = 2 ), [Status] ) VAR y = COUNTAX( Sheet9, Sheet9[Status POT] ) RETURN DIVIDE( y, x )The error is very strange.
Why did you add filters on this visual?
Maybe you can remove the filters , then, try it again.
Hi , Yes right result 0.79 but i am getting as 1 After Using GROSS - Payment On Time % = COUNTAX( 'Append-France,Greece,Monaco', 'Append-France,Greece,Monaco'[Status POT ] ) / [Volume of Supplier Invoices Paid] Thanks In Advance.
Anonymous
if you get 1, maybe you just do not define Decimal places parameter as it need?
do not hesitate to give a kudo to useful posts and mark solutions as solution
- v-lionel-msft6 years agoCommunity Support
I think this is the reason.
- Anonymous6 years agoNot applicable
- v-lionel-msft6 years agoCommunity Support
Anonymous,
Is your table like this?
I created a measure but didn't meet the error:
Measure 2 = VAR x = COUNTX( FILTER( Sheet9, [Status] = 2 ), [Status] ) VAR y = COUNTAX( Sheet9, Sheet9[Status POT] ) RETURN DIVIDE( y, x )The error is very strange.
Why did you add filters on this visual?
Maybe you can remove the filters , then, try it again.- Anonymous6 years agoNot applicable
Hi v-lionel-msft ,
I want calulate it on :
- GROSS - Payment On Time %: Filter Status=”30”, Status POT =” Before Due”,Country="France" and Process Count of Status POT divided by Volume of supplier invoices paid .
- I have to use all the filters..