Forum Discussion
joshua1990
Post Prodigy
4 years agoCOUNTROWS with ALL and data selection
Hi experts! I use a simple COUNTROWS Measur to count the number of weeks with a value below a target: COUNTROWS(FILTER(ALL(Dates[Week]), [Sales] < 500)) I use a slicer in the same...
BeaBF
Super User
4 years agojoshua1990 Hi!
CALCULATE(COUNTROWS(Dates[Week]), [Sales] < 500, ALLSELECTED(Dates[Week]))
BF
joshua1990
Post Prodigy
4 years agoThanks, but this measure will not work. COUNTROWS allows just tables, not columns
- BeaBF4 years ago
Super User
joshua1990 so use COUNT, why do you need to use COUNTROWS? Can't you count the rows of the entire table?
It would be easier if you paste some sample data and show the result you would like to get
BF
- joshua19904 years ago
Post Prodigy
BeaBF : please find in the initial post the structure of the tables. Works COUNT if you have multiple rows with the same week?
- BeaBF4 years ago
Super User