tw_scm_test_results(snapshotDate=""$tokMaxDate$"", policyFamily=""$prmPolicyFamily$"", policyName=""$prmPolicyName$"", policyPlatform=""$prmPolicyPlatform$"", policyTest=""$prmPolicyTest$"", dataSource=""$prmDataSource$"", assetName="*", waiverUnknownHandling=""$prmWaiverUnknownHandling$"", testResult="*" )
tw_scm_test_results_tag_filter(tagSet=""$prmTagSet$"", tagValue=""$prmTagValue$"")
Read the documentation:
https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Searchmacroexamples
We need Waaaaaaaaaaaaaaaaaaay more detail and explanation. What is that fragment that you posted? Is it the inside of a macro? Is it a dashboard panel? How is it executed? Nobody can possibly help you here without a great deal more work ON YOUR PART.