Forum Discussion
gsed99
8 years agoHelper III
Count formula with filter for Max Year
Hello, I am trying to do a count on # of records, but based on a filter for the year. What I essentialy want to say is count # of SAO Date when SAO Year=MAX (meaning current year). Both SAO Date and...
- 8 years ago
Current Year SAO Records := CALCULATE ( COUNT ( 'TableName'[SAO Date] ), FILTER ( ALL ( 'TableName'[SAO Year] ), 'TableName'[SAO Year] = MAX ( 'TableName'[SAO Year] ) ) )
jmalone
8 years agoResolver III
Current Year SAO Records :=
CALCULATE (
COUNT ( 'TableName'[SAO Date] ),
FILTER (
ALL ( 'TableName'[SAO Year] ),
'TableName'[SAO Year] = MAX ( 'TableName'[SAO Year] )
)
)