Forum Discussion
Count Rows of Joined Tables with multiple conditions
- 3 years ago
CALCULATE(COUNTROWS("correct_table"), Filter1, Filter2, etc) resolved this.
Was using the incorrect table thanks.
Hi Leon12Smith usually measure for count number of rows for some of table is
Count rows=COUNTROWS ( table )
Adjust your table name
If you filter something and want to calculate "the rest" number of rows meaning non filtered rows you should use
Count rows rest =
VAR __rows_all=CALCULATE (
COUNTROWS ( table ),
ALL()
)
VAR __rows_allselected=CALCULATE (
COUNTROWS ( table ),
ALLSELECTED()
)
VAR __Result=__rows_all-__rows_allselected
RETURN __Result
Did I answer correctly?
Kudos appreciate / accept solution
some_bih, there is an additional condition "Written Amount > 0" mentioned.
Maybe something like this:
Rows =
CALCULATE(
COUNTROWS(yout_table),
Written Amount > 0
)
Leon12Smith Just an extended idea to suggested solution from some_bih
Regards