web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Blank() values display...
Power Apps
Answered

Blank() values displayed as 0 on line graph in Power App Studio

(1) ShareShare
ReportReport
Posted on by 2
Hi,
 
I am trying to present three series on a line graph in power app studio. 
However, one of the series contains blank values and it should be displayed as blank instead of dropping to 0.  
 
Does anyone know the trick to do it?
I tried to filter like Filter(mymodel, my_series1 >0) but it does not change the result.
 
 
Categories:
I have the same question (0)
  • Verified answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at
    Hey,
     
    Here is how I would handle it. 
     
    Since it is not possible to do it with Power apps Chart I Used a, API to do it. Don't worry it's a simple one.
     
    Basically you can replace the Chart component with a simple image controll. In the Image you need to put this Code: 
    "https://quickchart.io/chart?c={
      type: 'line',
      data: {
        labels: ["&Concat(colGraph,Quartal,",")&"],
        datasets: [
          {
            label: 'Value',
            backgroundColor: 'rgb(255, 99, 132)',
            borderColor: 'rgb(255, 99, 132)',
            data:["&Concat(colGraph,Value,",")&"],
            fill: false,
          },
          {
            label: 'Value2',
            fill: false,
            backgroundColor: 'rgb(54, 162, 235)',
            borderColor: 'rgb(54, 162, 235)',
            data:["&Concat(colGraph,Value2,",")&"],
          },
        ],
      },
      options: {
        responsive: true,
        title: {
          display: true,
          text: 'Line Chart',
        },
        tooltips: {
          mode: 'index',
          intersect: false,
        },
        hover: {
          mode: 'nearest',
          intersect: true,
        },
        scales: {
          xAxes: [
            {
              display: true,
              scaleLabel: {
                display: true,
                labelString: 'Quartal',
              },
            },
          ],
          yAxes: [
            {
              display: true,
              scaleLabel: {
                display: true,
                labelString: 'Value',
              },
            },
          ],
        },
      },
    }"
     
    colGraph needs to be replaced by your Database and Quartal, Value and Value2 have to be replaced with your columns. 
    When the Database gets refreshed the Chart refreshes also automatically. 

    Here's what it looks like:
     
    The colors can be changed with the borderColor inside the code. 
     
     
    You can use it for free if it's not used commercially. 
     
    If you have any question don't hesitate. 
     
    If this solved your Problem accept this solution so others can find it as well.
    If it helped in any other way consider liking it so we can keep supporting eachother. 
     
     
  • Suggested answer
    NPPlatform Profile Picture
    606 Moderator on at
    Hi, Filter(mymodel, Not(IsBlank(my_series1))) should work.

    -- Edit: 
    Filter(mymodel, my_series1 <> Blank()) is a better option. This doesn't give a delegation warning.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard