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.
Solved! Go to Solution.
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,
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:
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.
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,
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