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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
LukeDurrant
Frequent Visitor

Remove data from Line chart

Hello, i hope everyone is well! Im trying to produce a line chart which cuts off where the red line is.

In May 2024, there is data in there but the data for June 2024 is 0. Is there a way to not show data with a 0 on the line chart?

 

LukeDurrant_0-1718178612737.png

 

Thanks!

2 ACCEPTED SOLUTIONS
Alex87
Solution Sage
Solution Sage

Hello,

Use this logic for your sum of Actuals

FilteredValue = 
IF (
    SUM('YourTable'[Value]) = 0,
    BLANK(),
    SUM('YourTable'[Value])
)

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!




View solution in original post

rajendraongole1
Super User
Super User

Hi @LukeDurrant - you can try @Alex87  suggested, alternative without creating another measure there is a way by exclude data points with a value of 0 in visual-level filters

For Sum of Actual, set it to "is not 0".

rajendraongole1_0-1718179509530.png

 

Hope it works

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

4 REPLIES 4
rajendraongole1
Super User
Super User

Hi @LukeDurrant - you can try @Alex87  suggested, alternative without creating another measure there is a way by exclude data points with a value of 0 in visual-level filters

For Sum of Actual, set it to "is not 0".

rajendraongole1_0-1718179509530.png

 

Hope it works

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hello! This has also got me to the result i needed! Thanks for the help 🙂

Alex87
Solution Sage
Solution Sage

Hello,

Use this logic for your sum of Actuals

FilteredValue = 
IF (
    SUM('YourTable'[Value]) = 0,
    BLANK(),
    SUM('YourTable'[Value])
)

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!




Hi Alex, exactly what i needed! Thanks for the quick response 🙂

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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