I am posting this here but I am having issues to post in Power BI community (for some reason keeps giving me errors when I post the question).
I am trying to get the total Previous Sales basedbut on certain conditions, I keep getting and error when I add IN to the formula:
PrevTotalSales =
Var prev = selectedvalue(sales(previousperiod)
RETURN
CALCULATE (
COUNTA(Sales[SaleNbr]),(Sales[period]=prev), sales[code] in ("a","b","c")
)
Any suggestions? Thanks