Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

Trying to count distinct warehouses per order and get the total

$
0
0
[code="vb"]Name OrderNum WH WH_CountCustomer1 11111111 WH1 Customer1 11111111 WH1 1 -----------------------------------------------Customer1 22222222 WH1Customer1 22222222 WH2 2-----------------------------------------------Customer1 33333333 WH1Customer1 33333333 WH2Customer1 33333333 WH2 2-----------------------------------------------Customer1 44444444 WH1Customer1 44444444 WH2 2----------------------------------------------- Orders:4 7Warehouse/Orders = 1.75[/code]I'm trying to create an SSRS report that will count the distinct warehouse's for each order. I've tried using a group variable (varCount = CountDistinct(WarehouseCode) but not having any luck. Any suggestions?

Viewing all articles
Browse latest Browse all 2791

Trending Articles