cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rebeccak
Helper III
Helper III

Line chart- Not include blank values so lines don't drop off

I have a line chart with 4 series.  Some fields are blank and i would like those lines to start and end only if they are not blank. Im unsure how to do this. Below is a screenshot of my chart. I am looking at a collection as the datasource. data.pngline chart.png

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Rebeccak ,

Could you please share a bit more about the Line Chart configuration in your flow?

Do you want the Manager column data to start from March, and the rest of records starts from Jan in your Line Chart?

 

If you want the Manager column data to start from March, and the rest of records starts from Jan in your Line Chart, I afraid that there is no way to achieve your needs in PowerApps curretly.

 

As an alternative solution, please consider update the Blank value within your colelction into 0. I have made a test on my side, please take a try with the following workaround (set the OnStart property of the App to following😞

ForAll(
          RenameColumns(YourCollection, "All", "All1", "Division", "Division1", "Internal", "Internal1", "Manager", "Manager1", "Month", "Month1", "Supervisor", "Supervisor1"),
          UpdateIf(
                         YourCollection,
                          Month = Month1,
                          {
                                All: If(IsBlank(All1), 0),
                                Division: If(IsBlank(Division1), 0),
                                Internal: If(IsBlank(Internal1), 0),
                                Manager: If(IsBlank(Manager1), 0),
                                Supervisor: If(IsBlank(Supervisor1), 0)
                          }
          )
)

Please consider execute above formula, then set the Items property of the Line Chart to following:

YourCollection

then re-load your app, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
jhall
Skilled Sharer
Skilled Sharer

I'm not 100% clear on the exact ask, but if you want to filter what is shown in a chart (e.g. don't display entries w/ blank Manager values), then use Filter on your DataSource for the chart.  Something similar to:

  • Filter(myChartData, !IsBlank(Manager))

 

I would like to include all the data. If I filter as you said with the Manager, then all data disappears for the months that the manager field is blank. What i would like is the manager data to start in March but the rest to start in January. Does that make sense?  I don't want to see the dropoffs. I want them to start and end at a clear data point. 

v-xida-msft
Community Support
Community Support

Hi @Rebeccak ,

Could you please share a bit more about the Line Chart configuration in your flow?

Do you want the Manager column data to start from March, and the rest of records starts from Jan in your Line Chart?

 

If you want the Manager column data to start from March, and the rest of records starts from Jan in your Line Chart, I afraid that there is no way to achieve your needs in PowerApps curretly.

 

As an alternative solution, please consider update the Blank value within your colelction into 0. I have made a test on my side, please take a try with the following workaround (set the OnStart property of the App to following😞

ForAll(
          RenameColumns(YourCollection, "All", "All1", "Division", "Division1", "Internal", "Internal1", "Manager", "Manager1", "Month", "Month1", "Supervisor", "Supervisor1"),
          UpdateIf(
                         YourCollection,
                          Month = Month1,
                          {
                                All: If(IsBlank(All1), 0),
                                Division: If(IsBlank(Division1), 0),
                                Internal: If(IsBlank(Internal1), 0),
                                Manager: If(IsBlank(Manager1), 0),
                                Supervisor: If(IsBlank(Supervisor1), 0)
                          }
          )
)

Please consider execute above formula, then set the Items property of the Line Chart to following:

YourCollection

then re-load your app, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-xida-msft!
I think the question is how to get the line chart control to ignore the blank values and not pretend the value is zero.
So when the value is blank/null the control should leave a gap and not draw anything. It will then look like the data for the Manager column starts from March and you won't get a line from 0 (zero) to 98.03594421. Similarly you won't get the drop-off from Aug onward where there's no values yet...
I have the same problem where I want the blank/null values to be ignored and not drawn (leaving a gap if it's in the middle).
If I've understood the accepted solution correctly it will only fill the blanks with zero, witch will draw them accordingly. This is not the desired outcome, as I understand the question.
Is there a way to get the line chart control in PowerApps to not draw blank values as zero?

Best regards,
Hans E

I am also facing the same issue, Is it resolved for you?

I ended up resolving it in the database by carrying over the numbers month to month when the value was blank. This way the line doesn't drop

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,559)