Forum Discussion
Anonymous
7 years agoNot applicable
Count values that match criteria
Hey guys, I need some help trying to count how many times that multiple condition occur based upon a distinct count. e.g. Invoice | Charge Type 123 | Basic 123 | Intermediate 124 | Basic 124...
- 7 years ago
I am assuming when you say "blanks" you mean the Charge type being blank? Try this measure
Invoices with 3 Charges = COUNTROWS ( FILTER ( VALUES ( Table1[Invoice ] ), CALCULATE ( COUNTROWS ( CALCULATETABLE ( VALUES ( Table1[Charge Type] ), Table1[Charge Type] <> BLANK () ) ) ) = 3 ) )
Anonymous
7 years agoNot applicable
That definetly helps thank you.
The only thing that that does is also count blanks. What is the easiest way for it not to count the blank ones
ChandeepChhabra
Impactful Individual
7 years agoI am assuming when you say "blanks" you mean the Charge type being blank? Try this measure
Invoices with 3 Charges =
COUNTROWS (
FILTER (
VALUES ( Table1[Invoice ] ),
CALCULATE (
COUNTROWS (
CALCULATETABLE (
VALUES ( Table1[Charge Type] ),
Table1[Charge Type] <> BLANK ()
)
)
) = 3
)
)