Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hello,
I created a visual matrix in Power BI. Few of the rows have zero as data. I would like to know a way to hide these. The matrix is as below:
| Department | USA | Canada | UK | France | Total |
| Accounting | 1 | 0 | 1 | 1 | 3 |
| Finance | 0 | 0 | 0 | 0 | 0 |
| Dev | 1 | 0 | 1 | 1 | 3 |
| Manufacturing | 1 | 0 | 1 | 1 | 3 |
| Total | 3 | 0 | 3 | 3 | 9 |
This is just a sample there are multiple columns and rows that add to zero. Is there a way to filter the zero out from the totals column that is automatically calculated when I make the matrix viz.?
Thanks
Solved! Go to Solution.
Hi @Anonymous
You could create a measure
Measure =
VAR total_ =
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER (
'Table',
'Table'[Value] <> 0
)
)
RETURN
IF (
ISINSCOPE ( 'Table'[Country] ),
IF (
ISINSCOPE ( 'Table'[Department] ),
SUM ( 'Table'[Value] ),
total_
),
total_
)
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
You could create a measure
Measure =
VAR total_ =
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER (
'Table',
'Table'[Value] <> 0
)
)
RETURN
IF (
ISINSCOPE ( 'Table'[Country] ),
IF (
ISINSCOPE ( 'Table'[Department] ),
SUM ( 'Table'[Value] ),
total_
),
total_
)
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the reply. I tried the below filter. EBITDA is the measure but it did not work.