简体   繁体   中英

Display Mutiple Values in one column using SSRS

I have a report in which I want to display value of 2 engineers in one column.I am using a cube to generate a matrix.

For Example

   Customer   Engineer     Support
    Citi       ABC           
    Citi       XYZ           EFG

I used the below code

=First(Fields!string.Value)+","+ Last(Fields!string.Value)

Then I am getting something like this

  Customer   Engineer     Support
  Citi      ABC,XYZ       EFG,EFG 

But I want to display it like this

   Customer   Engineer     Support
    Citi       ABC,XYZ      EFG     

How can I display like above?

=IIF(First(Fields!string.Value) = Last(Fields!string.Value), First(Fields!string.Value), First(Fields!string.Value)+","+ Last(Fields!string.Value))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM