cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

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

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

4 REPLIES 4
Highlighted
Continued Contributor
Continued Contributor

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

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))

 

Highlighted
Helper III
Helper III

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

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. 

Highlighted
Community Support
Community Support

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

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

Highlighted
Frequent Visitor

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

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,204)