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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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 Kudoed Authors