@Vijay Antony M You can build the dynamic content in the string variable and check for individual action. For reference I have used the Compose action and you need to update it as per your action names and value.
concat(
if(
contains(outputs('Compose')?['error']?['message'],'already'),
'PowerBI 1 not refresh',
''
),
if(contains(outputs('Compose_2')?['error']?['message'],'already'),
'PowerBI 2 not refresh',
''
)
)
To learn more about different function expressions you can refer to this document.