I am trying to fetch data from datatable based on particular row value, refer below data table.
Now from this table i want to put some condition like if temp exists in this datatable then fetch date and value.
Thanks in advance.
I am trying to fetch data from datatable based on particular row value, refer below data table.
Now from this table i want to put some condition like if temp exists in this datatable then fetch date and value.
Thanks in advance.
Hi @Riya_Bansal,
You can use Filter Datatable activity to filter this datatable, that will give you the output values in a datatable format.
@sarathi125 I donāt want to filter this table, i just want to fetch the value of date and value for every name.
say for temp i want itās date and value same goes for BP and other columns
Hi @Riya_Bansal
The Filter Data Table Activity will leave, as @sarathi125 mentioned, only the rows with i.e. āTempā in the first Column.
To get the Date or Value, however, you may want to use a āLookup Data Tableā. Keep in mind, this will give you the first Hit (Cell Value - or RowIndex) when it finds your LookupValue (āTempā). In case youād like to print all values, use a āFor Each Row in Data Tableā Activity (loop through your filtered Data Table) and print every Date or Value for the current iteration.
By the way: In your message box Iām noticing you may not have loaded your Datatable with āHeadersā (if you were using āRead Rangeā - Excel Activity - make sure to tick āAddHeadersā in the properties).
Best regards
Roman
You can use linq query to filter out the datas you need
datatable.asenumerable.where(function(row) row(columnname).tostring.tolower.equals(ātempā)).copytodatatable
Please try this
Regards
Sreejith S S
Thankyou guys it worked!
If it helps you please close the topic by marking it as solution
Regards
Sreejith S S
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.