You pretty much decided it yourself! To write this to T-SQL, right-click on the chart name and change its value to the following expression:
IIF(Fields!chart.Value="110300" AND Fields!division.Value="100","Intercompany AP - USA",IIF(Fields!chart.Value="110300" AND Fields!division.Value="200","Intercompany AP - RUS","Default Chart Name")
See here for an explanation of how the IIF function works.
From the link you can see that it takes the following format, where commas are used instead of “Then” or “Else”:
IIF ( boolean_expression, true_value, false_value )
So, to break the expression:
IIF(Fields!chart.Value="110300" AND Fields!division.Value="100", "Intercompany AP - USA", IIF(Fields!chart.Value="110300" AND Fields!division.Value="200", "Intercompany AP - RUS", "Default Chart Name" ) )
Tom jenkin
source share