Below is the table showing data, here what I want is to show name and leave type as a separate column so is this possible ? if please guide
Below is the format in grafana for representing time series data in table format .
SELECT il.DateFrom as time, // this is required for time series
il.NoOfDays,// for calculation of value
ie.FirstName +' '+ie.LastName +' ,'+' '+(( select name from IMS_LookupDetail where id=ic.TypeCode) ) as metric // for metric column
FROM IMS_LeaveManagement il JOIN
IMS_Employee ie
ON il.EmpId = ie.Id JOIN
IMS_LeaveConfiguration ic
ON ic.Id = il.LeaveConfigurationId JOIN
IMS_LookupDetail id
ON id.Id = ic.TypeCode or id.Code = ie.DepartmentCode
WHERE $__timeFilter(il.DateFrom) AND
il.Status in ('1','2') and id.name in ($dept)
Here i am not able to display more then three column in the table , what want is to show leave details as a separate column but in time series i don't know how to do so