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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Krish89
Helper II
Helper II

Remove rows with the value 0 in Matrix visual

Hi Power BI Community,

 

I have a PBI report where I would like to plot the sales data based on the Electonics type for each month..

I have a table "ElectronicsSales" with a column called "Electronics" which has a list of all electronics and other column called "Revenue".

I created a measure.

Sales Revenue= Sum( ElectronicSales[Revenue] )

Now in the matrix visual, I put

Rows field = Electronics

Columns filed = Date 

Values = Sales Revenue measure

The result is something like below screenshot.

Krish89_0-1623148382661.png

But i would like to remove the row Cameras which has 0 for all the months and just want to show remaining rows.

In simple words, I would like to remove the rows which has 0 for all the months from the matrix visual.

 

Thanks in advance

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Krish89 ,

Try a measure like 

Measure =

var _1 =Sum( ElectronicSales[Revenue] )

return

if(_1=0 , blank(), _1)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Krish89 ,

Try a measure like 

Measure =

var _1 =Sum( ElectronicSales[Revenue] )

return

if(_1=0 , blank(), _1)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

could u pls share measure DAX formula again, given formula is not working.

@amitchandak ,

 

Thank you very much for quick response and it helped.

Hi @Krish89 ,

 

Just use the following measure:

 

Sales Revenue= Sum( ElectronicSales[Revenue] )+0

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.