Forum Discussion
elandry9840
4 years agoFrequent Visitor
Problems with COUNT
Hi, First post here. This should be simple for an experienced DAX person, and I'd greatly appreciate a suggestion or two. I have a table with weekly stock closing prices for a few thousand tickers. ...
elandry9840
4 years agoFrequent Visitor
Sure thing! Thanks for the reply!!
Not sure if this will be big enough. If not, let me know.
tamerj1
4 years agoCommunity Champion
The screenshot is very small. However please try
Number of Stocks < 200Day MA =
VAR FortyWeekMA = [40-week MA]
RETURN
COUNTROWS ( FILTER ( 'PriceTable', PriceTable[closeadj] < FortyWeekMA ) )
- tamerj14 years agoCommunity Champion
Have you tried above code?
- elandry98404 years agoFrequent Visitor
Yes. Thank you, but doesn't seem to work. Must be something in my model that is peculiar.
- tamerj14 years agoCommunity Champion
Please use the variable name inside FILTER same as the code I have shared