Quantcast
Channel: SQL Server Reporting Services
Viewing all articles
Browse latest Browse all 1418

SSRS Background Colour with Rules

$
0
0

Hi All,

I written this

Parameters!AgreementTypeRule.Value = "test,test2"

=IIF(Split(Parameters!AgreementTypeRule.Value,",").Length=2, IIF((Fields!LatestAgreementType.Value Like "*"+Split(Parameters!AgreementTypeRule.Value,",").GetValue(0)+"*") or (Fields!LatestAgreementType.Value Like "*"+Split(Parameters!AgreementTypeRule.Value,",").GetValue(1)+"*"),"Aqua",""),IIF(Splt(Parameters!AgreementTypeRule.Value,",").Length=3, IIF((Fields!LatestAgreementType.Value Like "*"+Split(Parameters!AgreementTypeRule.Value,",").GetValue(0)+"*") or (Fields!LatestAgreementType.Value Like "*"+Split(Parameters!AgreementTypeRule.Value,",").GetValue(1)+"*") or(Fields!LatestAgreementType.Value Like "*"+Split(Parameters!AgreementTypeRule.Value,",").GetValue(2)+"*"),"Aqua",""),""))

No background returned.

=IIF(Split(Parameters!AgreementTypeRule.Value,",").Length=2, IIF((Fields!LatestAgreementType.Value Like "*"+Split(Parameters!AgreementTypeRule.Value,",").GetValue(0)+"*") or (Fields!LatestAgreementType.Value Like "*"+Split(Parameters!AgreementTypeRule.Value,",").GetValue(1)+"*"),"Aqua",""),"")
Then background return Aqua if matched with the above keyword.

Let me know why the IIF not work. 1st I need to check the Split(Parameters!AgreementTypeRule.Value,",").Length, If meet then only run the particular code else it'll skip. However I believe the caused of not working is due to (Fields!LatestAgreementType.Value Like "*"+Split(Parameters!AgreementTypeRule.Value,",").GetValue(2)+"*") not exist. 

Please advise.

Thanks

Regards,

Micheale


Viewing all articles
Browse latest Browse all 1418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>