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
Hi elandry9840
how does your report look like? Can you share a screenshot of your data model?
elandry9840
4 years agoFrequent Visitor
Sure thing! Thanks for the reply!!
Not sure if this will be big enough. If not, let me know.
- elandry98404 years agoFrequent Visitor
This is better:
- elandry98404 years agoFrequent Visitor
Best:
- tamerj14 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.