I have a collection of data called PupilMathData which has lots of columns. I want to create another collection, with two columns from that larger collection so I can chart it. One column needs to be the test name, and I want the user to choose the other column (the one they want to view on the graph) from a dropdown.
What I have tried here is to assign the selected value from the dropdown to a variable, and use that variable as the column to add into the new collection called MathChartData, but I get the error 'Argument DisplayChart is invalid. Expected a text literal' - as the showcolumns function like the columns in quotes. Any ideas on how I can do this?
Once these two columns are in a separate collection, I will use that collection for the datasource of the bar chart.
Set(DisplayChart,MathChartSelection.SelectedText.Value);
ClearCollect(MathChartData, ShowColumns(PupilMathsData,"Test",DisplayChart))
