Forum Discussion
Penn
Resolver I
7 years agoCountrows last quarter in a matrix
Hi all, I have a table with two text columns [Quarter] and [ID]. How I want to return the count of [ID] last quarter as below. Here are the calculations used in the matrix. Measure: ...
- 7 years ago
Hi Penn,
You could try to create a column like below(order quarter ace)
Then create a measure like beow
last q = CALCULATE ( COUNT ( 'LAST QUARTRE'[ID] ), FILTER ( ALL ( 'LAST QUARTRE' ), 'LAST QUARTRE'[Custom] = MIN ( 'LAST QUARTRE'[Custom] ) - 1 ) )Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Penn
Resolver I
7 years agoI think I better build a date table then...problem solved
dax
Community Support
7 years agoHi Penn,
You could try to create a column like below(order quarter ace)
Then create a measure like beow
last q =
CALCULATE (
COUNT ( 'LAST QUARTRE'[ID] ),
FILTER (
ALL ( 'LAST QUARTRE' ),
'LAST QUARTRE'[Custom]
= MIN ( 'LAST QUARTRE'[Custom] ) - 1
)
)Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Penn7 years ago
Resolver I
Good idea!