Forum Discussion
Anonymous
4 years agoNot applicable
How to remove empty rows but keep zero counts in countrows matrix?
Hi everybody. I have to build a matrix which shows count frequencies over 3 variables that form a hierarchy (building-machine-sensor) on a matrix. We need to show 0 when the combination of the ...
Anonymous
4 years agoNot applicable
Hi Anonymous ,
Try
Contatore Anomalie Import =
VAR _a =
COUNTROWS ( DISTINCT ( 'Fact Anomalies Import'[VarKey] ) )
RETURN
IF ( ISBLANK ( _a ), 0, _a )
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.