Aggregrate function sum

We're using a datagrid b which is listening to another grid a. Datagrid b has several column which are using the aggregate function sum. So far so good. When you select a record in a, b will be populated with records and then the sum of the columns are calculated. There is one issue. When there is nothing selected in a, no records are shown in b. But the sum function works and it calculates a very high value. It shouldn't calculate the sum when nothing is selected in b. Is there any way to trigger the some after one record is selected? Edit: Is there some way to select an item in a datagrid with a microflow?
0 answers