Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Replace function in ssrs report Expand / Collapse
Author
Message
Posted Wednesday, January 30, 2013 3:59 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Tuesday, February 4, 2014 8:11 AM
Points: 78, Visits: 233
Hi All,

am using a Stored Procedure in my report, for that I need to pass 3 parameter @string, @storeKey, @language.
when am running SP in Management studio, am getting resultset, but not in report.
In report passing those 3 parameters, for store parameter , expression is below.
I need to pass Storekey value as int 468.

I have a doubt about the expression result , can anybody tell the result of this expression when my dim members are like this [Store DIM].[Store].&[10] and parameter store value are like M300, M301 so on..


=Replace(Replace(Join(Parameters!Store.Value,","),"[Store DIM].[Store].&[",""),"]","")


Thanks,
Niha



Post #1413556
Posted Wednesday, February 6, 2013 10:04 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Tuesday, February 4, 2014 8:11 AM
Points: 78, Visits: 233
Hi , please share your ideas about above expression result..
Post #1416624
Posted Wednesday, February 6, 2013 10:10 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 2:49 PM
Points: 13,069, Visits: 11,908
Duplicate post. Direct replies here. http://www.sqlservercentral.com/Forums/Topic1413549-147-1.aspx

_______________________________________________________________

Need help? Help us help you.

Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

Need to split a string? Try Jeff Moden's splitter.

Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Understanding and Using APPLY (Part 1)
Understanding and Using APPLY (Part 2)
Post #1416631
Posted Thursday, February 7, 2013 1:35 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Tuesday, February 4, 2014 8:11 AM
Points: 78, Visits: 233
Hi, I need to convert a multi valued parameter string value into int/number. example:

parameter value is [Land DIM].[Land].&[567], [568],[569]....

but out of this value i just need to pass 567, 568, 569.. values to another parameter in SSRS expression.

How can we achieve this, please help me in this


Thanks,
Niha
Post #1416865
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse