Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Joe_100
Helper I
Helper I

Filter 0 from matrix

Hi all,

 

I think i have a simple question but cant find a way to do it in Powerbi.

Please see simplified table below.

Joe_100_0-1701770890320.png

If i filter 0 from the matrix, the top row dissapears as 1 and -1 = 0.

How can i keep this row and remove column E in this case.

I somehow need a DAX formula that respects the context of sum per column and row?

 

many thanks in advance!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Joe_100 ,

I am afraid that there is no elegant way to implement it. Anyway, you can use the following method as a  workaround:

1.Create a simple table.

vjiewumsft_0-1701854916875.png

2.Select a Matrix visual. Move the Column2 to Rows, move the Column1 to Columns, and move the value to Values.

vjiewumsft_1-1701854937077.pngvjiewumsft_2-1701854952023.png

3.Create a Sum of Value Measure.

vjiewumsft_3-1701854979155.png

4.The matrix remove the column E.

vjiewumsft_4-1701854997103.png

5.If the above one can't help you, could you please provide more raw data(exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution.

 

Looking forward to your replay.

Best Regards,

Wisdom Wu

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Joe_100 ,

I am afraid that there is no elegant way to implement it. Anyway, you can use the following method as a  workaround:

1.Create a simple table.

vjiewumsft_0-1701854916875.png

2.Select a Matrix visual. Move the Column2 to Rows, move the Column1 to Columns, and move the value to Values.

vjiewumsft_1-1701854937077.pngvjiewumsft_2-1701854952023.png

3.Create a Sum of Value Measure.

vjiewumsft_3-1701854979155.png

4.The matrix remove the column E.

vjiewumsft_4-1701854997103.png

5.If the above one can't help you, could you please provide more raw data(exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution.

 

Looking forward to your replay.

Best Regards,

Wisdom Wu

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors