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

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors