What Grafana version and what operating system are you using?
9.4.7
What are you trying to achieve?
Create a column from infinity datasource by adding a substring (Roll alone) of a existing column (Roll-Name). Example in the pasted json, i want create a column called RollNum and include the substring before first hyphen (-) of the string of column Roll-Name
How are you trying to achieve it?
using infinity datasource and uql queries
What happened?
Not getting the required data filtered
What did you expect to happen?
without using the transformations, want to create a new column with the existing column’s substring.
Can you copy/paste the configuration(s) that you are having problems with?
Could you help me with the exact content screenshot. Because, i tried extract, substringBefore but these but all were giving nothing. Please help with content screenshot.
The JSON you posted above is not formatted with the correct double quotes. When pasted, it does not render. Can you please fix and paste here using the correct formatting? That will allow others to paste in your sample JSON.
I put your JSON structure into try.jsonata.org just to experiment. A JSONata function like $uppercase works nicely as long as you put in backticks the Roll-Name key. I have not figured out how to map the $substringBefore function, but I think it should be straightforward.