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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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