BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
metallon
Pyrite | Level 9

Hello,

searching the web I gathered that a count distinct is not possible using WRS.

I have various clients groups that need to count disintct amongst different variables (group by)

does that mean I need to create X SAS Information Maps to address all those different grouping variable requirements?

Bye

1 ACCEPTED SOLUTION

Accepted Solutions
Madelyn_SAS
SAS Super FREQ

I"m sorry, but I think I misunderstood your original question. You are correct that you cannot create the count distinct data item in Web  Report Studio. You would have to create the count distinct data item in the information map.

View solution in original post

3 REPLIES 3
Madelyn_SAS
SAS Super FREQ

If you are using at least 4.2_M2, you should be able to use distinct aggregation types such as COUNT(Distinct), AVG(Distinct), and SUM(Distinct). Are you seeing an error when you try to use it?

metallon
Pyrite | Level 9

Hi,
Thanks for the reply.
I got WRS 4_4.
When I select 4 elements (categories) from my dataset, all alphanumeric and no measures. I cant find
a way in the UI to count distinct ( categoryA) group by categoryB, categoryC, categoryD.
I am reasing the giant 370p user manual but no luck so far.

Madelyn_SAS
SAS Super FREQ

I"m sorry, but I think I misunderstood your original question. You are correct that you cannot create the count distinct data item in Web  Report Studio. You would have to create the count distinct data item in the information map.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1548 views
  • 1 like
  • 2 in conversation