Forum Discussion
Countrows function for 2 colums
- 2 years ago
I hope it'll work for you.
MTM Greater than 10,000 and 1 =
CALCULATE(
COUNTROWS('cftc 10 %'),
'cftc 10 %'[ABSMTMDifferenceValue] > 10000,
'cftc 10 %'[age] = "1"
)This approach correctly counts the rows per AssetClass that meet your both criteria.
My suggestion: It's better to avoid spaces in table and column names to keep your DAX formulas cleaner and more readable.
Best Regards,
Muhammad YousafIf this post helps, then please consider "Accept it as the solution" to help the other members find it more quickly.
Try with ALLSELECTED in place of ALL and see if it works!
- EricKautz2 years ago
Helper I
No, it did not work.
- muhammad_786_12 years ago
Solution Supplier
I hope it'll work for you.
MTM Greater than 10,000 and 1 =
CALCULATE(
COUNTROWS('cftc 10 %'),
'cftc 10 %'[ABSMTMDifferenceValue] > 10000,
'cftc 10 %'[age] = "1"
)This approach correctly counts the rows per AssetClass that meet your both criteria.
My suggestion: It's better to avoid spaces in table and column names to keep your DAX formulas cleaner and more readable.
Best Regards,
Muhammad YousafIf this post helps, then please consider "Accept it as the solution" to help the other members find it more quickly.
- EricKautz2 years ago
Helper I
This worked for me, thank you.