BookmarkSubscribeRSS Feed
titan31
Quartz | Level 8

Hi, 

 

I'm trying to filter out from a crosstab or table, any members that have a sum of a value that's equal to 0. As the filter under properties doesn't allow me to filter where the Aggregrated measure is equal to 0, is there any way to filter it out using something similar to a having clause in SQL.

 

 

select value ,count(distinct mem_no) as mem_count, sum(total_billed) as total_billed
from table
group by value
having sum(total_billed) <> 0
order by value;

 

The above is what I'm effectively trying to recreate in VA. Is there anyway possible to do that?

 

Thanks,

1 REPLY 1
FredrikE
Rhodochrosite | Level 12

Hi!

Maybe my answer to another post could help you?

In that we were using a parameter, but the concept should be the same?!

 

https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-7-4-Use-a-parameter-and-con...

 

//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
  • 492 views
  • 0 likes
  • 2 in conversation