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

Hi!

I am a new SAS VA user.

I have the following data variables: id (records are repeated) , department (three unique ones), status (yes/no)

I need to create a calculated item to count ids if department=one specific one AND status=no. 

When I use AND operator, while creating a calculated item, it returns the result as an error: the expected type is boolean.

 

How can I do it? 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PetriRoine
Pyrite | Level 9

Hello @DarjaJafanova,

 

Please check the Result Type is Numeric

 

Capture.PNG

 

Best regards,

Petri

View solution in original post

2 REPLIES 2
PetriRoine
Pyrite | Level 9

Hello @DarjaJafanova,

 

Please check the Result Type is Numeric

 

Capture.PNG

 

Best regards,

Petri

DarjaJafanova
Calcite | Level 5

Hi @PetriRoine,

Thank you for such a clear and quick explanation provided, I finally managed to create this calculated item. I really appreciate your help.

 

Kind regards, 

Darja Jafanova

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 2 replies
  • 4257 views
  • 1 like
  • 2 in conversation