Forum Discussion
dw700d
4 years agoPost Patron
simple filter measure
I have a list of over 5,000 Purchase order numbers. Each Purchase order can have a variety of different account codes attached to it. There are 14 account codes. I would like to Identify Purchase ord...
- 4 years ago
Hi dw700d
Try this measure :
Purchase <>(10C) = VAR _Count10C = CALCULATE ( COUNT ( 'Table'[Sum of Amt] ), ALLEXCEPT ( 'Table', 'Table'[Purchase Order No] ), 'Table'[Acct Cd] = "10C" ) RETURN IF ( ISBLANK ( _Count10C ), 0, _Count10C )and filter the new meausre to show zero.
Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos✌️!!
VahidDM
4 years agoSuper User
Hi dw700d
Try this measure :
Purchase <>(10C) =
VAR _Count10C =
CALCULATE (
COUNT ( 'Table'[Sum of Amt] ),
ALLEXCEPT ( 'Table', 'Table'[Purchase Order No] ),
'Table'[Acct Cd] = "10C"
)
RETURN
IF ( ISBLANK ( _Count10C ), 0, _Count10C )
and filter the new meausre to show zero.
Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos✌️!!