SSRS Parameters help!
Dear All, sorry my last post was not written properly.
I need some urgent help creating a report on SSRS (Microsoft Visual Studio 2008)
I am currently using certain parameters to get a specific data list.
Only after this list has been created I want to use another parameter to further filter down my list
Can someone please tell me how I go about doing this?
Kind regards,
JS
Hi JS,
Just as Kishore and RSingh suggested, we can use cascading parameter to further filter down the list. With cascading parameters, the list of values for one parameter depends on the value chosen in preceding parameter.
There are two methods to create cascading parameters, please see:
Method1:
Create a new dataset query like this below:
SELECT DISTINCT field3
FROM table_name
WHERE field1 IN (@parameter1) and field2 IN (@parameter2)
Create parameter3 to get available values from the new dataset.
Add a new filter to the main dataset or tablix to further filter the list.
Method2:
Create a new dataset query like this below:
SELECT DISTINCT field3
FROM table_name
Create two filters as below in the new dataset:
Expression: [field1]
Operator: In
Value: [parameter2]
Expression: [field2]
Operator: In
Value: [parameter2]
Repeat Step2 and Step3 in Method 1.
If there are any other questions, please feel free to let me know.
Thanks,
Katherine xiong
Katherine Xiong
TechNet Community Support
Similar Messages
-
SSRS parameters are not valid in subscription, but are valid when run report on-demand
What is the cause?
Somebody has also that problem? Can it be the report or the SSRS server itself?
The SSRS is also not always consequent. So share me your experience.
Thanks!Sorry did understand what the issue is. Have you set a default value for parameters?
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Hello,
Is there anyway to default to the first day of the month in a SSRS expression. I'm looking to do the reverse of the EOMONTH() function.
The date value is coming from a parameter @BegDate and formatted YYYY-MM-DD. So if the parameter is set to 2015-08-31 it would show 2015-08-01
Any information would be greatly appreciated.
xI ended up using the following:
DateSerial(Year(Parameters!BegDate.Value), Month(Parameters!BegDate.Value), 1
x -
SSRS Parameters using SSAS Tabular model get cleared
I have an SSRS report that uses data from a SSAS Tabular model. In the query designer, from the calendar dimension I choose a "Date Inclusive" filter and make it a parameter. I also choose to add another filter using and Organisation Unit
dimension and also make this a parameter. The report is written and deployed to a SharePoint 2013 library.
Most of the time, the report runs as expected with the parameters cascading off each other as expected. However, occasionally, parameters get cleared (either after changing a single value such as the Org Unit selection or sometime whilst the report
is being rendered). Sometimes you cannot select a value from the available values - you need to navigate somewhere else and then start over.
I changed the data source for the parameters to use SQL queries that return the same values as the MDX queries and the probably seems to have gone (time will tell)
This report has a child (detail) report that has one extract parameter. This parameter happens to have over 1,000 values. With the change of the parent report, you are now able to get to the child report. However, the child report seems
to exhibit the same problem with the parameters being cleared - and with a much higher frequency.
So, that leaves me wondering whether
anyone else has experienced this ?
is this an issue with SSRS 2012 and SSAS Tabular models (I have not seen this behaviour before and I have been using SSRS (since version 1) and SSAS Multi-dimensional (from when it was called "OLAP Services") ?We applied SQL Server 2012 Service Pack 2 to the SharePoint farm (the SP Admin needed to re-create the service applications) and the problem is fixed
-
Hello all,
I need help in creating report subscription to run on every Wednesday for Year to last Friday.So we were to generate the report next week, we should generate it for 01/01/2014- 06/06/2014. I am new to SSRS subscriptions. Please help.
Thankswe should generate it for 01/01/2014- 06/06/2014.
Hi Lshi123,
In Reporting Services, we can create subscription to send report to specified E-mail address on a schedule. However, the execute time on the schedule cannot be the past date. So in your scenario, we cannot create subscription and generate it for 01/01/2014/-06/06/2014.
Here are some link about SSRS subscription for you reference.
http://msdn.microsoft.com/en-IN/library/ms160334.aspx
http://msdn.microsoft.com/en-us/library/ms154020.aspx
http://www.youtube.com/watch?v=sO0Y_IxdE8w
If I have anything misunderstand, please point it out and elaborate your requirement, so that we can make further analysis.
Regards,
Charlie Liao
TechNet Community Support -
SSRS – Parameters filtering – getting data from SSAS
Dear all
I am working with SQL Server 2012, SSRS Report Builder, SSAS.
I created a new report with 2 Parameters from my SSAS.
First Parameter is Year.
Second Parameter is Month.
What I want to do is that when I select specific year it automatically filter all the month inside the second parameter.
Here is an example:
Year
Month
2012
January
2012
February
2012
March
2013
May
2014
Jan
How can I achieve this?
Thanks,
Ramzy N.Ebeidyou need to create cascade parameter
in SSRS report (parameter month will be calculated by filtering based on parameter @Year selection)
You may need to write mdx query as an expression something like below as data set for month parameter.
select [Measures].Months on 0,
Filter(Time.[Year].members,
Time.[Year].CurrentMember.Name =
@Year) on 1
from [Cubename]
Gaur -
SSRS Design help : How to embed Graphs in a Word doc
Hi All
we got the requirement that we need to embed Graphs to a fixed test Word document . what is the best way to achieve this requirement .
Regards
Surendra Thota
Surendra ThotaHi Surendra,
If I understand correctly, you want to embed a chart from Reporting Services report to an existing word file. If in that case, we can create a chart in a report, then export it to word file, and then copy it and paste it to the existing word file. For more
details steps, please see:
In a report, drag a chart control from toolbox to design surface.
Click the chart to open the Chart Data pane.
Add one or more fields to the Values area and one or more fields to the Category Groups area.
Preview or run the report.
Select Word option in the export drop-down list to export the report.
Open the exported word file, copy the chart.
Paste it to the existing word file.
References:
Add a Chart to a Report (Report Builder and SSRS)
Export a Report as Another File Type (Report Builder and SSRS)
If there are any other questions, please feel free to let me know.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Any suggestions for wifi parameters "Search Domains" and "Client ID" for iPad 2 with wifi + 3g?
Thanks,
davidfromBIMDWhat exactly is it that you want to do?
If you want to connect your iPad to your WiFi router, simply enter the password for your WiFi connection on your iPad. -
Hi Gurus
In the main dataset query i created a parameter "where k.jlocat=:LOC or :LOC is null". These are ORACLE Parameters and hence the :. In another dataset i created a simple query as
select distinct jlocat as LOC
FROM TABLE1
Every thing works fine so far. Now i want to select multiple values for this i edited the @LOC parameter to select multiple values and changed my WHERE CLAUSE in the main dataset as where k.jlocat=:LOC or :LOC='All'.
Now when i save and run the report , i cannot click on 'Select All' as it gives me an error:ORA-00907: missing right parenthesis.
I'm confused as where i'm missing the right parenthesis.Please need advice.
ThanksHi Pmunshi,
The error "ORA-00907: missing right parenthesis." occur when you entered a left parenthesis, but missed the closing right parenthesis; or you entered invalid data within the parentheses. Please refer to the link below to see the detail information.
http://www.techonthenet.com/oracle/errors/ora00907.php
In a Reporting Services report, if we check the "Allow Multiple values" option, than we need to change the "=" operation to "In" in the query.
where k.jlocat in(:LOC)
Besides, which features do you want to achieve by using " or :LOC="All" "? If we check the "Allow Multiple values" option, we do not add any extra query. If we select "Select All" option for this parameter, it will return all the records.
If I have anything misunderstood, please point it out.
Regards,
Charlie Liao
TechNet Community Support -
Hello,
I need to write an expression for the default month parameter for a report.
Report data is imported on the 5th of each month for the previous months data.
currently my expression is this =IIf(Month(DateAdd("m",-1,today ()))
I need an iff statement that says if todays date is 1-5 then set the default to (Month(DateAdd("m",-2,today ()))
Ill then display a otherwise hidden text box that reads the previous months data is not availble untill after the 5th, displayed is data from 2 months ago, or something to that effect.
Thanks.iif(datepart(dateInterval.Day,now()) <= 5, datepart(dateInterval.month,now()), datepart(dateInterval.month,now())-1)
-
Procedure Parameters Help rquired
Hi all,
I have two tables following. I want to create a procedure with two paramters that If a user give input "S" it goes to SAM table and if user give input "A" it goes to ACCT table and select the following satatement
In case of "S"
select * from sam where sam_frequency in ('DAILY',MONTHLY').In case of "A"
select * from acct where acct_frequency in ('DAILY','MONTHLY','QUARTERLY','HALF YEARLY','YEARLY')
SQL> desc sam
Name Null? Type
SAM_BANK_ID VARCHAR2(255)
SAM_CUST_ID NUMBER(22)
SAM_SAM_ID VARCHAR2(255)
SAM_PORT_NAME VARCHAR2(255)
SAM_CCY VARCHAR2(255)
SAM_INDICATOR NUMBER(38)
SAM_MANAGED_ACCOUNT VARCHAR2(255)
SAM_CLOSED_DATE DATE
SAM_INVESTMENT_PGM VARCHAR2(255)
SAM_ACC_OFF NUMBER(38)
SAM_FREQUENCY VARCHAR2(255)
SQL> desc acct
Name Null? Type
AC_BANK_ID NUMBER(38)
AC_ACCT_ID VARCHAR2(255)
AC_CUST_ID NUMBER(38)
AC_CCY VARCHAR2(255)
AC_CATEGORY VARCHAR2(255)
AC_ACCOUNT_OFFICER NUMBER(38)
AC_OTHER_OFFICER NUMBER(38)
AC_SHORT_NAME VARCHAR2(255)
AC_INACTIVE_MARKER VARCHAR2(7)
AC_LOCAL_A1 VARCHAR2(255)
AC_LOCAL_A2 VARCHAR2(255)
AC_LOCAL_A3 VARCHAR2(255)
AC_LOCAL_N1 NUMBER
AC_LOCAL_N2 NUMBER
AC_LOCAL_N3 NUMBER
ACT_STMNT_FRQ VARCHAR2(20)
OPENING_DATE DATE
CLOSURE_DATE DATE
STATUS VARCHAR2(20)please tell me how can i achieve the followin result while S and A vaules are not in table structures.
Regards
nullcreate or replace procedure myProc ( v_parameter in char, v_cursor out sys_refcursor )
is
v_sql varchar2(1000);
begin
if v_parameter = 'S' then
v_sql := 'select * from sam where sam_frequency in (''DAILY'',''MONTHLY'')';
elsif v_parameter = 'A' then
v_sql := 'select * from acct where acct_frequency in (''DAILY'',''MONTHLY'',''QUARTERLY'',''HALF YEARLY'',''YEARLY'')';
end if;
open v_cursor for v_sql;
end;
I think, code that you ask is above...
null -
Consuming external web service in SSRS
Hi,
I am working on SSRS.I deployed my application in reporting server 2012 R2.I am having only RDL files and HTML file.Through HTMl with parameters i am calling RDL files.
Now i need to external consume web service for the live data.I have the WSDL file and i need to consume in SSRS.Please help me how to consume web service in SSRS.
Thanks,
VijayHow do we use credentials for the web service? . The web service I am using requires a username and password. When I try to use the xml data source it only allows me to use windows authentication. It gives me the below error
Unable to connect to data source 'DataSource1'.The data extension supports Windows Integrated Security and No Credentials (anonymous request) only.
Thanks -
SSRS how to get for number of months
Hi All;
below is my SSRS expression
=Cdate(Format(Cdate(Mid(Fields!createdon.Value,4,2) & "/" & Mid(Fields!createdon.Value,1,2) & "/" & Mid(Fields!createdon.Value,7,4)),"MMMM yyyy"))
which gives me the month in MMMM yyyy format in Jan 2014, Feb 2014, Mar 2014... so on
i need to remove a average of a month
i.e Months value/No of months
I do i get number of months dynamically in SSRS
Any help much appreciated
Thanks
Pradnya07Hi Pradnya07,
In your scenario, it seems that the createdon is a string data type field with this format: 15/09/2014.
If we want to get the number of the month in the createdon field, we can directly use the expression below:
=cint(Mid(Fields!createdon.Value,4,2))
If you also need to get the average data for a month like ‘Months value/No of months’, please refer to the following expression:
= Fields!Amount.Value /cint(Mid(Fields!createdon.Value,4,2))
If there are any misunderstanding, please elaborate the issue for further investigation.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Need help with QoS config/setup for my home network.
I have a home network that spans two buildings, has and FTP download server, VoIP phones,and several computers among other IP devices. I run a home based business where my clients get access to the company FTP download server (NOT illegal file sharing). the problem is that when they are downloading files my VoIP takes a big hit and gets choppy when speaking to my customers. Below is the layout of the network.
Our Internet access is Verizon 4G, there are no other options available at this time or we would switch. The Verizon 4G MiFi connects to a TP-Link wifi router that then connects to port fa0/5 on the Office 3550PoE switch. There is a trunk between the Office switch to the House 3550PoE switch. The House switch then connects to the Shop 3524XL switch also using a trunk. Please note that EVERYTHING works fine other than the VoIP issue, VoIP makes and receives calls without connections issues.
Auto QoS has been run on the Office switch ports fa0/1 and fa0/2 as well as on the House switch ports fa0/3 and fa0/5. There is NO auto QoS on the 3524XL
What is the best way to give VoIP traffic top priority over FTP and web browsing when going out port fa0/5 on the Office Switch? Over the internal network we are not having any call quality issues between the IP phones, just calls to our SIP provider. Yes, I understand that once calls exit the Office switch to the TP-Link wifi router there will not be any QoS. But, if I can give priority to the packets at the layer 3 Office switch (or wherever you suggest) then at least I will not have to kill a users FTP download while I am on the phone.
Thank YouI can make ANY changes necessary, just need to know what to do.
First, did you notice the output of the command sh mls qos fa0/5 above? Is it working correctly?
Next, Yes I do have version W17 and can install if if needed. The lost of possible commands I listed above was from the conf t - config interface fa0/x level. There is class and policy mapping commands the the config global level along with all these other commands:
aaa Authentication, Authorization and Accounting.
access-list Add an access list entry
alias Create command alias
arp Set a static ARP entry
banner Define a login banner
boot Boot Commands
buffers Adjust system buffer pool parameters
cdp Global CDP configuration subcommands
cgmp Global CGMP configuration commands
class-map Configure QoS Class Map
clock Configure time-of-day clock
cluster Cluster configuration commands
default Set a command to its defaults
default-value Default character-bits values
downward-compatible-config Generate a configuration compatible with older software
enable Modify enable password parameters
end Exit from configure mode
errdisable Error disable
exception Exception handling
exit Exit from configure mode
file Adjust file system parameters
help Description of the interactive help system
hostname Set system's network name
interface Select an interface to configure
ip Global IP configuration subcommands
line Configure a terminal line
logging Modify message logging facilities
mac-address-table Configure the MAC address table
map-class Configure static map class
map-list Configure static map list
mvr Enable/Disable MVR on the switch
no Negate a command or set its defaults
ntp Configure NTP
policy-map Configure QoS Policy Map
power power configuration
priority-list Build a priority list
privilege Command privilege parameters
queue-list Build a custom queue list
rmon Remote Monitoring
scheduler Scheduler parameters
service Modify use of network based services
shutdown Shutdown system elements
snmp-server Modify SNMP parameters
spanning-tree Spanning Tree Subsystem
stackmaker Specify stack name and add its member
tacacs-server Modify TACACS query parameters
tftp-server Provide TFTP service for netload requests
time-range Define time range entries
udld Configure global UDLD setting
username Establish User Name Authentication
vmps VMPS settings
vtp Configure global VTP state -
Hello, Expert,
Could you please help me with the following problem? Thanks in advance!
I have designed the matrix report (SSRS 2012) with database table structure looks like below.
Week
Version
Count
Week1
V1.1
4000
Week1
V1.2
4000
Week1
V1.3
4000
Week2
V1.1
3000
Week2
V1.2
3000
Week2
V1.3
3000
Week3
V1.1
2000
Week3
V1.2
2000
Week3
V1.3
2000
Week4
V1.1
1000
Week4
V1.2
1000
Week4
V1.3
1000
The matrix report displays like below. Column grows based on no of Week in the table.
Week1
Week2
Week3
Week4
V1.1
4000
3000
2000
1000
V1.2
4000
3000
2000
1000
V1.3
4000
3000
2000
1000
What I want to do now is: instead of the Count values, I need to calculate the percentage of each week over the
Count in Week1 so that each cell displays Count(Week2)/Count(Week1), Count(Week3)/Count(Week1), etc. What is the SSRS expression for that? I’m new to SSRS, Please help!Heidi,
Thank you so much for your reply and solution! Now I know how to get the first field in a group. But I can't apply your solution directly just yet because in order to explain my problem I simplified my data structure. My real data structure has a nested
group like this:
Week VersionMajor VersionMinor Count
Week1 V1 V1.1 2000
Week2 V1 V1.1 1500
Week3 V1 V1.1 800
Week1 V1 V1.2 1000
Week2 V1 V1.2 500
Week3 V1 V1.2 200
Week1 V1 V1.1 2000
Week2 V1 V1.1 1500
Week3 V1 V1.1 800
Week1 V1 V1.2 1000
Week2 V1 V1.2 500
Week3 V1 V1.2 200
Here is the query for the above data:
SELECT 'Week1' AS Week, 'V1' AS VersionMajor, 'V1.1' AS VersionMinor, 2000 AS Count
UNION ALL
SELECT 'Week2' AS Week, 'V1' AS VersionMajor, 'V1.1' AS VersionMinor, 1500 AS Count
UNION ALL
SELECT 'Week3' AS Week, 'V1' AS VersionMajor, 'V1.1' AS VersionMinor, 800 AS Count
UNION ALL
SELECT 'Week1' AS Week, 'V1' AS VersionMajor, 'V1.2' AS VersionMinor, 1000 AS Count
UNION ALL
SELECT 'Week2' AS Week, 'V1' AS VersionMajor, 'V1.2' AS VersionMinor, 500 AS Count
UNION ALL
SELECT 'Week3' AS Week, 'V1' AS VersionMajor, 'V1.2' AS VersionMinor, 200 AS Count
UNION ALL
SELECT 'Week1' AS Week, 'V1' AS VersionMajor, 'V1.1' AS VersionMinor, 2000 AS Count
UNION ALL
SELECT 'Week2' AS Week, 'V1' AS VersionMajor, 'V1.1' AS VersionMinor, 1500 AS Count
UNION ALL
SELECT 'Week3' AS Week, 'V1' AS VersionMajor, 'V1.1' AS VersionMinor, 800 AS Count
UNION ALL
SELECT 'Week1' AS Week, 'V1' AS VersionMajor, 'V1.2' AS VersionMinor, 1000 AS Count
UNION ALL
SELECT 'Week2' AS Week, 'V1' AS VersionMajor, 'V1.2' AS VersionMinor, 500 AS Count
UNION ALL
SELECT 'Week3' AS Week, 'V1' AS VersionMajor, 'V1.2' AS VersionMinor, 200 AS Count
And my matrix table looks like this:
What I need to do is to calculate the percentage of each week over week1 for
1) V1 Total
2) V1.1
3) V1.2
I can't use your solution directly because I need to apply Sum function for each cell and the Sum function gives me error when I try to use it on the denominator
First(Fields!Count.Value,"VersionMinor"). If you could help me further to get to the final solution, I'd really appreciate it!!
Happy New Year!
Maybe you are looking for
-
DMS:Original file path overriding configuration ?
Hi, Running 4.6c. We use vault method for originals. We have configured data carrier type "Server,frontend" -> PC and are maintaining a path as c:\ for the temporary files. We also have configured 'frontend computers' by putting in the entry as 'Defa
-
Latest update 10.10.2 wifi issues
Hi Folks, I need your assistance. I recently did the update to 10.10.2. I am having issues with connecting via wifi to my printer. My printer is an HP laserjet pro 200 M251nw. I worked fine before update. Is there any fixes?
-
Keep a Socket Server connection/port open for incoming requests
Hi, I have a socket server which listens to the incoming messages. The problem is that the socket server terminates the socket connection once it receives a message. I want this Socket server to keep on running and process all the requests it receive
-
Restore Error 3 in iPad 3 plz help me
Restore Error 3 in iPad 3 plz help me
-
I have a denormailized table which consists of data in this format .I am trying it to query data from it as per my requirements . Can someone help me on this ID groupid ROLE TOPIC 1 2001 FIREMAN SAFETY,MAIN