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

Hi SAS Community,

 

 

I am working on SAS Visual Analytics and Struck in some logic. I have a column of character which has three flag "0","1" and "DROP".

i need to count the flag based on conditions of flag. I working on Cross tab  and i need to count the "0" flag against different Shops.

I tried custom category but it wont work as measure in cross tab and i also tried this Count [_ByGroup_] (( 'New_Code'n[Raw] Contains '0' )) and other different approach but it is giving error. please suggest some solution.

 

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
FredrikE
Rhodochrosite | Level 12

You should be able to do that with a calculated measure.

 

if [flag] = '0' then 1

else 0

 

and then use this measure in your calculations?

//Fredrik

View solution in original post

1 REPLY 1
FredrikE
Rhodochrosite | Level 12

You should be able to do that with a calculated measure.

 

if [flag] = '0' then 1

else 0

 

and then use this measure in your calculations?

//Fredrik

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 714 views
  • 0 likes
  • 2 in conversation