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


Query in SSRS


Query in SSRS

Author
Message
sagar0838
sagar0838
Valued Member
Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)

Group: General Forum Members
Points: 56 Visits: 99
hi All ,i have one requirement where the SSRS report is displaying only certain data of a column based on a filter on a date range ,
whereas i should get all the data even though the date range is selected or not for that particular column ,how can we achieve this is SSRS report
davoscollective
davoscollective
SSCommitted
SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)

Group: General Forum Members
Points: 1625 Visits: 1008
You want to get all data even though you have filtered the data? That doesn't really make sense. If you want all the data, don't filter it.

Can you explain a bit more?
Van Heghe Eddy
Van Heghe Eddy
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1476 Visits: 912
Hi Old hand,
i think the OP means he need some average data for 1 particular column even while only a subset is returned in the actual report
If this is the case then i would look into Creating a SP (not needed but easy to maintain)
and some code like the one below (just example, not working code)

;with cteData as (
select col1,col2, datecol1, sum(numcol) as totalFordataset from table x

)

select * from cteData where datecol1 between @DateFrom and @DateTill

You cab easily put this into SSRS Querywindow, it should work without a stored procedure to.

Hope this helps you on your way

Wkr,
Van Heghe Eddy
demonfox
demonfox
SSCrazy
SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)

Group: General Forum Members
Points: 2157 Visits: 1192
davoscollective (3/3/2013)
You want to get all data even though you have filtered the data? That doesn't really make sense. If you want all the data, don't filter it.

Can you explain a bit more?


exactly , could you explain it a little more ..

why do you need the whole data ???

~ demonfox
___________________________________________________________________
Wondering what I would do next , when I am done with this one Ermm
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