You could use the QueryViewData function
This will export the summary data into CSV format. From there you could complete your checking to see if a goal has been exceeded.
This function is only available from Tableau 10.5 onwards
Hope this helps
This is really a good news!
Thank you for your prompt reply.