Hi everyone,
I have two distinct datasets which have different x-values. I would like to plot these on a same line chart.
So I would like to plot Y , Y2 and Y3 together.
First, I made Dataset1:
ClearCollect(Dataset1,
{X:1.40, Y1:14.49, Y2:12.96},
{X:1.70, Y1:12.01, Y2:11.02},
{X:2.00, Y1:10.06, Y2:9.36},
{X:2.20, Y1:9.00, Y2:8.43},
{X:2.50, Y1:7.72, Y2:7.29},
{X:3.00, Y1:6.20, Y2:5.96})
Then Dataset2:
ClearCollect(Dataset2,
{X:2.2, Y3:5.7},
{X:2.5, Y3:6.7}
)
And finally Dataset3 which combines the two:
ClearCollect(Dataset3,{X:Value(Blank()),Y1:Value(Blank()), Y2:Value(Blank()),Y3:Value(Blank())});
Collect(Dataset3,Dataset1);
Collect(Dataset3,Dataset2);
Remove(Dataset3,First(Dataset3))
This combines the two tables. Then to plot it on line chart I wrote in Items:
SortByColumns(Dataset3, "X", Ascending)
What I got is this:
As we can see the graph treats blanks in the table as zeros for plotting:
What I would like is for the graph to have only one X value for all 3 series (like for x= 2.2 or 2.5) and to ignore blanks when plotting. So essentially the graph should look like this (made in Excel):
Does that make sense?
Not sure if that's possible to do on a line chart in PowerApps . Any help would be really appreciated.

Report
All responses (
Answers (