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. ...
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 ) )
tamerj1
4 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
- elandry98404 years agoFrequent Visitor
Replied to above
- elandry98404 years agoFrequent Visitor
Sorry. Here it is:
- tamerj14 years agoCommunity Champion
Would you please add the moving average measure and snother measure: COUNTROWS ( 'PriceTable')