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

Notifications

Announcements

Community site session details

Community site session details

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

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,099 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard