Forum Discussion
Added Measure Not Working.
- 9 years ago
Hi arvindyadav,
Please try to change the part in red color.
Productive Calls = CALCULATE ( DISTINCTCOUNT ( Query1[booked_order_id] ) ) - CALCULATE ( DISTINCTCOUNT ( 'Query1'[booked_order_id] ), 'Query1'[booked_order_id] = 0 )Best Regards!
Dale
This Report from Power BI desktop after adding Measures. and it showing correct productive calls i.e, In june 104.This Report from Power BI Service after publishing and refresh . and it showing wrong productive calls i.e, In june 105.
Hi Dale ,
Please Find the attached for your better reference.
feel free to ask doubt regarding my issues.
Hi @ Dale,
Please Find the attached .
Its not based on date slicer .
Even on the date of 11th july it fluctuating june productve calls.
- v-jiascu-msft9 years agoMicrosoft Employee
Hi arvindyadav,
1. The outcome of the formula below could be 1 or blank. What is the real value in your table, 0 or blank?
CALCULATE( DISTINCTCOUNT('Query1'[booked_order_id]), 'Query1'[booked_order_id] IN { 0 }2. Your formula
is equivalent withthis one, Please have a try.Measure = CALCULATE ( DISTINCTCOUNT ( Query1[booked_order_id] ), 'Query1'[booked_order_id] <> 0 )EDIT: These two formulas are not equivalent. Please try the new one.
Best Regards!
Dale
- arvindyadav9 years agoPost Partisan
Hi @Dale,
The Mine formula i.e,
Productive Calls = CALCULATE(DISTINCTCOUNT(Query1[booked_order_id])) - CALCULATE(
DISTINCTCOUNT('Query1'[booked_order_id]),
'Query1'[booked_order_id] IN { 0 }
)
Give me the value excluding zero.
1. The outcome of the formula below is 0.
CALCULATE( DISTINCTCOUNT('Query1'[booked_order_id]), 'Query1'[booked_order_id] IN { 0 }So from total distinct count of book order id I have count every value excluding Zero so that is the why I am using the formula
Productive Calls = CALCULATE(DISTINCTCOUNT(Query1[booked_order_id])) - CALCULATE(
DISTINCTCOUNT('Query1'[booked_order_id]),
'Query1'[booked_order_id] IN { 0 }
which give me distinct count excluding zero.
Please feel free to ask if you have still any doubt regarding that.
Regards ,
Arvind
- v-jiascu-msft9 years agoMicrosoft Employee
Hi arvindyadav,
Please try to change the part in red color.
Productive Calls = CALCULATE ( DISTINCTCOUNT ( Query1[booked_order_id] ) ) - CALCULATE ( DISTINCTCOUNT ( 'Query1'[booked_order_id] ), 'Query1'[booked_order_id] = 0 )Best Regards!
Dale