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
obuolys123
Helper I
Helper I

Filtering, when line chart values are with zero

Hello, PBI users,

I have this issue so I wanted to know if maybe someone knows a workaround to this situation. I have a Line Chart (sc added below) where I already made that IF the value is BLANK it returns zero, it seems ok since I know that if there is a BLANK value in the Line Chart it returns a gap. But I face a problem when I try to filter the data, I get the result of all data shown where the value is 0. I know it's kind of tricky, but is it possible to show 0 value in the chart, but when filtering I want it to become BLANK, and not appear in the chart.

When the value is 0 without filtering I get the right result.

obuolys123_1-1658212874122.png


When I filter only this year I get a line of other dates with 0 values, which I do not want. I need to see only this year in the chart without the highlighted space.

obuolys123_2-1658212950690.png


So is it possible to show BLANK values as 0, but also show them as blank when they are filtered by the date table?

Thank you for the response.

 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @obuolys123 ,

According to your description, I create a sample.

Original:

vkalyjmsft_0-1658473583343.png

Create a measure to replace the blank value with 0:

vkalyjmsft_1-1658473617787.png

Select this year in the slicer:

vkalyjmsft_2-1658473724094.png

Because the date column is in the same table with the year column, so the dates can be filtered by the year slicer naturally.

vkalyjmsft_3-1658473863706.png

Not sure what's the difference between your sample and mine, I attach my sample below, you can download it to see.

Look forward to your reply.

 

Best Regards,
Community Support Team _ kalyj

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

View solution in original post

3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

Hi @obuolys123 ,

Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

Best Regards,
Community Support Team _ kalyj

Hi @v-yanjiang-msft ,
Yes it is, even though I found another solution yours works as well. Thank you!

v-yanjiang-msft
Community Support
Community Support

Hi @obuolys123 ,

According to your description, I create a sample.

Original:

vkalyjmsft_0-1658473583343.png

Create a measure to replace the blank value with 0:

vkalyjmsft_1-1658473617787.png

Select this year in the slicer:

vkalyjmsft_2-1658473724094.png

Because the date column is in the same table with the year column, so the dates can be filtered by the year slicer naturally.

vkalyjmsft_3-1658473863706.png

Not sure what's the difference between your sample and mine, I attach my sample below, you can download it to see.

Look forward to your reply.

 

Best Regards,
Community Support Team _ kalyj

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

Helpful resources

Announcements
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!

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.

Top Solution Authors