Forum Discussion
Anonymous
6 years agoNot applicable
dax help
- hi , I need count of my bidc column where "all units usa" measure is greater than 10. I am not able to write measure inside a calculate function as filter. =Calculate(count(da...
Anonymous
6 years agoNot applicable
hist units usa:=TRUNC(SUMX(product, product[historical_qty_usa])/[num distinct periods],2)
[all units usa] = CALCULATE([hist units usa],FILTER(all('date'[date_key]), 'date'[date_key]=max('date'[date_key])))
Now i want to create a measure like
[usa sku count] = calculate(count(product[sku]), [all units usa] >1)
error msg -
A function 'CALCULATE' has been used in a True/False expression that is used as a table filter expression. This is not allowed.
hope i am able to clear you the requirement.
Anonymous
6 years agoNot applicable
Hi Anonymous ,
Share sample data if you can.
else try
[usa sku count] =
VAR _allunitsusa = [all units usa]
RETURN
COUNTX (
FILTER (
'Product',
_allunitsusa > 1
),
Product[Sku]
)
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)