|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Friday, April 12, 2013 7:42 AM
Points: 225,
Visits: 809
|
|
Dear All,
I'm trying to do a simple query where I want to count a Column with a Dataset but its not working for some reason. I'm using the following query: Count(Fields!columnname.Value, "Dataset1")
Thank you in advance!
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 1:53 AM
Points: 1,474,
Visits: 2,342
|
|
Hi, how is it not working - error, wrong count, something else?
Cheers Gaz
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Friday, April 12, 2013 7:42 AM
Points: 225,
Visits: 809
|
|
Gazareth (3/1/2013) Hi, how is it not working - error, wrong count, something else?
Cheers Gaz
Thank you for your reply!
I now changed the expression to =CountDistinct(Fields!columnname.Value) but I get the following results:
Year Count %Var
2000 1 1
2001 1 1 1 1
2002 1 1 1 1 1 1
But I need the total per year to be added together.
Thank you!
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 1:53 AM
Points: 1,474,
Visits: 2,342
|
|
Hi, yeah CountDistinct will do that, if every value in the column is the same, which it looks like it is (year?). One solution would be to change the column in your expression to one that's unique in every row, and that you can guarantee it always will (else future counts could be wrong), or go back to using just Count - still not sure what was wrong with that first time around 
Cherrs
|
|
|
|