User1711366110 posted
Kindly help me how to create and use that function in RDLC .
As per my understanding of this case, you can try with switch statement like below :
Formula1:
=Switch(
StrComp(Fields!PurchaseOrSale.Value,"S",CompareMethod.Text) = 0, "Revenue",
StrComp(Fields!PurchaseOrSale.Value,"P",CompareMethod.Text) = 0, "Expense",
1=1,"Gross Profit" )
=count(Fields!Formula1.Value)
If you want to sum of values, you can try like below :
Formula1:
=Switch(
StrComp(Fields!PurchaseOrSale.Value,"S",CompareMethod.Text) = 0, 1,
StrComp(Fields!PurchaseOrSale.Value,"P",CompareMethod.Text) = 0, 2,
1=1, 3 )
=sum(Fields!Formula1.Value)
--
with regards,
Edwin