1

Is it possible to have the summary below in one textbox within the same column:

Apple
Banana
Apple
Banana
Banana
Orange

Output:

Apple: 2
Banana: 3
Orange: 1

Giorgos Betsos
  • 71,379
  • 9
  • 63
  • 98
ohhzumm
  • 98
  • 1
  • 12

2 Answers2

1

Assuming that the fruits come from a field "Fruit" in your dataset, I would write something like this on the expression for the field where you want to set the summary:

= "Bananas: " & Sum(Iif(Fields!Fruit.Value = "Banana", 1, 0)) & Environment.NewLine &
"Apples: " & Sum(Iif(Fields!Fruit.Value = "Apple", 1, 0)) & Environment.NewLine &
"Oranges: " & Sum(Iif(Fields!Fruit.Value = "Orange", 1, 0)) & Environment.NewLine

See this --> Reporting Services - Count Column Values if equals A

Alicia
  • 776
  • 6
  • 10
0

Here you will find something related to grouping in SSRS

https://stackoverflow.com/questions/18379581/grouping-in-ssrs
Alfaiz Ahmed
  • 1,698
  • 1
  • 11
  • 17