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
0tk
Regular Visitor

Hide data points on line chart

I have a line chart as below,

0tk_0-1688454921323.png

Is there a way to hide data points where it's zero. I basically don't want to connect where it's  zero. In this exampl,e it should show lines till May and a single dot for the last value "YTD".

1 ACCEPTED SOLUTION
SamInogic
Super User
Super User

Hi @0tk ,

 

In Power BI Formatting properties, there is no direct option to disable the data label for 0 values as they provide option to either enable or disable the data labels.

 

But as a workaround you can use below approach,

 

If your graph is with background white colour as shown below screenshot.

 

Data1.png

We will create a custom column in the table with below DAX expression,

 

DataLabelCOlor = IF('Sample Data'[Value] =0, "White","")

Data2.png

 

Then navigate to Data Label Setting options in Format Your Visual section and find the Values area where we can give Conditional Formatting to the Data Label text.

 

Please refer to the below screenshot for the same,

Data3.png

 

Click on Conditional Formatting icon and it will open a Color – Series dialog where you can select the Format Style as “Field Value” and select the field “DataLabelCOlor” from table,

Data4.png

 

Then click Ok, now the Labels having value as 0 will be hidden and other data will be displayed.

Data5.png

 

Thanks!

Inogic Professional Services Division

Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!

Drop an email at crm@inogic.com

Services:  http://www.inogic.com/services/

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

View solution in original post

1 REPLY 1
SamInogic
Super User
Super User

Hi @0tk ,

 

In Power BI Formatting properties, there is no direct option to disable the data label for 0 values as they provide option to either enable or disable the data labels.

 

But as a workaround you can use below approach,

 

If your graph is with background white colour as shown below screenshot.

 

Data1.png

We will create a custom column in the table with below DAX expression,

 

DataLabelCOlor = IF('Sample Data'[Value] =0, "White","")

Data2.png

 

Then navigate to Data Label Setting options in Format Your Visual section and find the Values area where we can give Conditional Formatting to the Data Label text.

 

Please refer to the below screenshot for the same,

Data3.png

 

Click on Conditional Formatting icon and it will open a Color – Series dialog where you can select the Format Style as “Field Value” and select the field “DataLabelCOlor” from table,

Data4.png

 

Then click Ok, now the Labels having value as 0 will be hidden and other data will be displayed.

Data5.png

 

Thanks!

Inogic Professional Services Division

Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!

Drop an email at crm@inogic.com

Services:  http://www.inogic.com/services/

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

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!

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.