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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
L_F
Regular Visitor

Slicer showing zero values

I am trying to create a matrix on Power BI where I show rows with zero values when there is no slicer applied as shown:

L_F_0-1710236445961.png

 

However, I don’t want to show all the rows as zero when there is a filter applied. I would only like to show the applicable rows. Currently, it is shown as below:

L_F_1-1710236445964.png

Is this possible in Power BI? I also will be adding more slicers for different geographies. 

 

1 ACCEPTED SOLUTION
Gabriele_hbto
Helper II
Helper II

Hi,

you just need to make a measure to check if something on a slicer is selected and if your expression is = 0, like this:

 

Measure = IF(and(HASONEFILTER(dimension table used as filter),ISBLANK(experssion used to make the count)),1,0)

 

Then in your visualization (matrix) you put this new measure in the filter and you put it's not = 1

Gabriele_hbto_0-1710238477703.png

 

I aspect isblank to work with zero values, but if not, you can put "your count measure = 0" instead of isblank(yourcountmeasure)

Please mark accepted solution.

Good day

View solution in original post

1 REPLY 1
Gabriele_hbto
Helper II
Helper II

Hi,

you just need to make a measure to check if something on a slicer is selected and if your expression is = 0, like this:

 

Measure = IF(and(HASONEFILTER(dimension table used as filter),ISBLANK(experssion used to make the count)),1,0)

 

Then in your visualization (matrix) you put this new measure in the filter and you put it's not = 1

Gabriele_hbto_0-1710238477703.png

 

I aspect isblank to work with zero values, but if not, you can put "your count measure = 0" instead of isblank(yourcountmeasure)

Please mark accepted solution.

Good day

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors