cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Rebeccak
Level: Powered On

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
Community Support Team
Community Support Team

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
jhall
Level 8

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

 

Rebeccak
Level: Powered On

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. 

Community Support Team
Community Support Team

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

hansebs
Level: Power Up

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,633)