SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Setting same filter on Chart gives different results than setting on datset


Setting same filter on Chart gives different results than setting on datset

Author
Message
tdiroff
tdiroff
Valued Member
Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)

Group: General Forum Members
Points: 57 Visits: 66
HI

I am using SSRS 2102 and trying to make a series of sales charts that first show regional data and then customer data from each region. I am finding that the same filter applied at the dataset level works differently than at the chart level

It looks like :

Fiscal Year

Region sum( transaction)

CustID sum(transaction)

I have 2 charts... one to display sales data by region then another chart to display sales data by CustID

I use a Report Parameter (RegionParamter)to figure out the region for which the customer data is displayed

In order to only display customers within a specific region on my second chart I apply a region=RegionParameter filter on my CustID group in the second chart

Everything works fine if a customer only exists in 1 region however if a customer exists in 2 or more regions I only get customer data in one region... usually the last one in an ordered list.

However, if I apply the same region=RegionParameter filter at the dataset level the second chart works as expected... all customer data for each and every region is displayed... even if a customer is in multiple regions.

Has anyone experienced this and if so is there a workaround that you could share?

Thank you

Tom
Scott Murray-240410
Scott Murray-240410
Old Hand
Old Hand (397 reputation)Old Hand (397 reputation)Old Hand (397 reputation)Old Hand (397 reputation)Old Hand (397 reputation)Old Hand (397 reputation)Old Hand (397 reputation)Old Hand (397 reputation)

Group: General Forum Members
Points: 397 Visits: 3116
This issue is very odd as the filter should be the same when applied at the dataset or the chart level. Maybe you cold display the parameter on the report to see what is different.
tdiroff
tdiroff
Valued Member
Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)Valued Member (57 reputation)

Group: General Forum Members
Points: 57 Visits: 66
Hi

I actually do that.. I put the parameter in a title to identify what Region is being displayed on the chart and it all seems to be "correct".

I worked around the problem by creating a duplicate dataset to be used only for the one particular chart and applying the filter at the dataset gave me the result I needed. I sure wish that I could figure out what the chart filtering is not working as expected.

Tom
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search