Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8894

Unable to pass filters to Data Source

$
0
0

Hi there,

 

I've been working on this issue for a while but have not been able to find a solution. Any help will be appreciated.

 

Example scenario below:

 

I have a data source, DS_1. I am using that to bring in all the countries that our company has accounts in.

Another Data source is used to bring in Sales Data for current year, lets call it DS_2

 

Now, I am trying to filter DS_2 by a List Box that uses DS_1 as a data source using the following script:

DS_2.setFilter(Country, LISTBox_1.getSelectedValues())


Lets say I select USA from LISTBOX_1. Everything works well and I see sales data as shown below:

 

CountryMonthSales
USAJan500
USAFeb600
USAMar700

 

HOWEVER, if I select a country that does not have sales for this year, then I get everything back i.e. all countries, all months, all sales. It seems like if the Dimension that is being filtered is not part of DS_2, it gives you everything, rather than nothing. Blank data is the desired result.

 

I have tried passing in dummy filters that pass "blank" to DS_2, but that does not seem to work.

 

Has anyone encountered this? Is there something I can do to achieve the desired result?

 

Specs: I am using DS 1.4 and my data source is a Bobj Universe built on SQL Server.

 

Thank you,

Nizar


Viewing all articles
Browse latest Browse all 8894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>