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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
PBNikr
Helper I
Helper I

Hiding missing values in a line chart (direct query)

 

I would like to hide certain values in a line chart. Is there any way to do this?

 

As you can see in the line chart below there are values missing for "Value" and these disappear when "Average" is removed from the chart. We would however like to keep "Average" in the chart and just hide the missing values for "Value" somehow.

 

Can this be done?

 

grafen.JPG

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @PBNikr

Could you show some data for better analysis?

Such as the columns in the X-Axis, Value field, legend field?

 

Best Regard

Maggie

Hi @v-juanli-msft!

 

I have attached a table with sample data:

 

table.JPG

 

As you can see, the gaps in data occur on weekends. I am connected to a model using Direct Query and am therefore limited to what I can alter directly in Power BI. 

Hi @PBNikr

It seems you face the similar problem like line chart not representing null values, you could create a measure to replace "Value" .

Measure = IF(MAX([value])=BLANK(),0,MAX([value]))

9.png

 

Best Regards

Maggie

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors