1. Add a measure with a DAX formula with the following structure- TagetsNotAchieved = IF(calculation, warning_msg, else_msg), where:
- calculation is a calculation to check if the target was achieved(E.g. SUM([Sales]) >= target).
- warning_msg is a static textual to be shown when the target was not achieved(E.g. "Sales target is not achieved").
- else_msg is a static textual value to be shown when the target was achieved,or an empty string(I.e. "") if you don't want a message to be shown.
2. Add a card visual to your report, and set the TagetsNotAchieved measure as its field.
3. Change the Card's formatting to make it look more "warningy".