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.png

📢

ANNOUNCEMENT

The early bird rate has been extended! Register by March 18 for just $695 - $100 off the standard rate.

 

Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events. 

 

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