cancel
Showing results for 
Search instead for 
Did you mean: 
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 IV
Super User IV

@Krish89 ,

Try a measure like 

Measure =

var _1 =Sum( ElectronicSales[Revenue] )

return

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

3 REPLIES 3
amitchandak
Super User IV
Super User IV

@Krish89 ,

Try a measure like 

Measure =

var _1 =Sum( ElectronicSales[Revenue] )

return

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

@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
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors