Forum Discussion
HopkiJ
2 years agoFrequent Visitor
Grouping data from calculated columns
Hi Everyone, I have been really struggling with a query on my data (very small sample below). I have presence data for when someone is in the office. I want to work out how many people are regular ...
- Anonymous2 years ago
Hi HopkiJ ,
I modified the data and calculated columns.
Column = CALCULATE ( COUNT ( 'Table'[Person Identifier] ), FILTER ( ALL ( 'Table' ), 'Table'[Person Identifier] = EARLIER ( 'Table'[Person Identifier] ) && 'Table'[Office Identifier] = EARLIER ( 'Table'[Office Identifier] ) && YEAR ( 'Table'[Date] ) = YEAR ( EARLIER ( 'Table'[Date] ) ) && MONTH ( 'Table'[Date] ) = MONTH ( EARLIER ( 'Table'[Date] ) ) ) )If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
2 years agoNot applicable
Hi HopkiJ ,
I modified the data and calculated columns.
Column =
CALCULATE (
COUNT ( 'Table'[Person Identifier] ),
FILTER (
ALL ( 'Table' ),
'Table'[Person Identifier] = EARLIER ( 'Table'[Person Identifier] )
&& 'Table'[Office Identifier] = EARLIER ( 'Table'[Office Identifier] )
&& YEAR ( 'Table'[Date] ) = YEAR ( EARLIER ( 'Table'[Date] ) )
&& MONTH ( 'Table'[Date] ) = MONTH ( EARLIER ( 'Table'[Date] ) )
)
)
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
HopkiJ
2 years agoFrequent Visitor
Thanks Clara, that worked a dream!