Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 28687

Calcuate maximum number of rows in a given category

$
0
0

Hi,

I have a dataset in SSRS report. The dataset has two columns Category and Product.

(Note: DataSet is not attached to a table/matrix)

Requirement: I need to calcuate the number of rows in each category and then findout the maximum number among the row count for each category.

For Ex:

Category

Product

Category1

Prod-a

Category1

Prod-b

Category2

Prod-c

Category3

Prod-d

Category2

Prod-e

Category1

Prod-f

Category3

Prod-g

No. of rows in Category 1: 3

No. of rows in Category2: 2

No. of rows in Category3: 2

Maximum number among (3,2,2): 3

Thanks


NC


Viewing all articles
Browse latest Browse all 28687

Trending Articles



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