Forum Discussion
Count if with existing measure
Thank you that's a great step towards what I need, it helps me calculate a total number of Weeks.
How can I amend the formula to get to number of weeks where AUP is below 1.10 i.e. [AUP]<=1.10?
Thanks
Ewa
Try with this
Measure =
COUNTX (
FILTER ( ALLSELECTED ( TableName[Week_Column] ), [AUP Measure] < 1.1 ),
1
)- ewuchatka8 years ago
Helper II
Hi guys
Thanks very much :)
I'm almost there.... I think the formula is counting rows and in the data there is more than one row per date as there are different products for each date. So what I need is for the formula to calculate AUP for each date and then count weeks with AUP <1.
Thanks
- Ashish_Mathur8 years ago
Super User
Hi,
Have you tried my formula? It will count the Week Numbers.
- ewuchatka8 years ago
Helper II
Thanks
I'm not sure what I am doing wrong I created a calendar table with three columns (it is the first calendar table I ever created!?):
Date = CALENDAR (DATE(2000,1,1), DATE(2025,12,31))
Week Number = WEEKNUM('Date'[Date])
Year = YEAR('Date'[Date])
Then not sure but this formula doesn't work...
=COUNTROWS(FILTER(SUMMARIZE(Calendar[Week Number],[Week Number],"ABCD",[AUP]),[ABCD]>1))
Thanks
Ewa