Deltatype in SSRS Query

I have a cube with several measures like cost (bound to a calender week hierarchy) and a calculated measure representing the value from the week before (it is a calculated measure navigating in the CW-hierarchy prevmember). Same for work (Containing an integer
value, also prevmember for the previous week)
A query can somehow look like this:
Document Work PrevWeek Work week Delta Work Deltatype
ABC123 5 10 5 3
ABC124 10 10 2
ABC125 5 5 0 1
I have a calculated column called "Deltatype" with this expression:
IIF
(ISEMPTY([Measures].[Work PrevWeek]) AND ISEMPTY([Measures].[Work]),0,
IIF
(ISEMPTY([Measures].[Work PrevWeek]) AND NOT ISEMPTY([Measures].[Work]),2,
IIF
([Measures].[Work PrevWeek] <> [Measures].[Work], 3,1
So 1 is unchanged, 2 is new and 3 is changed. Works pretty neat, with only one glitch: Performance! It takes ages! (If it does finish at all...)
Does anybody know an expression that needs less performance? I have a table in which i derive the type in the report, here it is pretty fast. But I can't really use it for charts and/or grouping etc.
Thanks a lot in advance,
Christof!
(Disclaimer: I've also asked this question on StackOverflow but my experience getting an answer there is not soooo good, so please forgive me!)

Hi Christof_S,
According to your description, there is a calculated field called Deltatype in the report. If Work PrevWeek is null and Work is null, then Deltatype is 0. If Work PrevWeek in null and Work isn’t null, then Deltatype is 2. If Work PrevWeek is the same with
Work, then Deltatype is 1, else 3. The iif function works but the performance is poor.
According to my knowledge, the Iif function returns one of two values depending on whether the expression is true or not. When we have three or more conditions, nested IIF statements will make expression harder to read and extend, instead, we can use Switch
function to get the same functionality. In this case, we can modify the expression like below:
Switch
(ISEMPTY([Measures].[Work PrevWeek]) AND ISEMPTY([Measures].[Work]),0,
ISEMPTY([Measures].[Work PrevWeek]) AND NOT ISEMPTY([Measures].[Work]),2,
[Measures].[Work PrevWeek] <> [Measures].[Work], 3, true, 1)
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu

Similar Messages

  • Using AD EmployeeID in a SSRS query in SharePoint 2013

    I have successfully installed SSRS 2012 in SharePoint 2013 and have used it to query a SQL database and build a report. Now, I'd like to query only for the data associated only with to the currently logged-in SharePoint user's EmployeeID. The database
    holds a field called EmpID, which I have exported into the EmployeeID field in Active Directory, and sync'd into SharePoint through the User Profile service. The SQL database being queried has no other connections to Active Directory.
    If the query is simple, i.e., Select * from Emp where EmpID=<user's EmployeeID> , how do I pass EmployeeID into the query from the SharePoint User Profile?
    This is my first SSRS project, so please be descriptive!

    Hi AltonBay, Not sure, I understood your query. If your empid is the logon is to windows login, I think samAccountName should be the one you need to map.
    Please refer the below link for mapping:
    http://social.msdn.microsoft.com/Forums/en-US/10815275-28b9-4075-a707-6896e9b54eae/select-first-row-from-multivalued-field-in-active-directory?forum=transactsql

  • SSRS Query Source

    Hello Everyone,
    We have a set of queries that are used for both ETL and Reports.  We would like to store these queries in a central location, such as a SQL Server table, so we can maintain them easier.  Pulling queries out of a table field and storing that query
    in a variable so it can be executed is easy enough in SSIS.  How would we pull a query from a table field and use it in SSRS?
    Thank you all for your help.
    JamesNT
    "If you have to ask about various operating system limits, you're probably doing something wrong." -Raymond Chen

    You'd be best off creating a stored procedure to do this.
    myStorecProc 'queryName'
    But, to be honest, you might well be better served creating a stored procedure for each query, and then executing it from where ever it needs to be run. The queries will still be stored centrally in the database, but there's less moving parts. From SSRS
    you can just call the relevant procedure.
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.

  • Cant use dynamic constant for measure MDX SSRS query

    I am trying to write a dynamic MDX query in SSRS.  I was sucessful with the groups being dynamic,
    but the measures are not working as they do in SQL Mgmnt Studio.  For example,  this text
    is not working (the data set is invalid after when executed):
    ="WITH "
    +" member [Measures].[Measure1] AS "+iif(Instr(Join(Parameters!ColumnValues.Label,","),"01") > 0,Parameters!ColumnValues.Value(0),"0")
    So if ColumnValue "01" was not selected measure1 should just be "0". 
    It works ok if you just hard code : "member [Measures].[Measure1] AS 0", but fails when used in the IIF().
    Anyone see the problem with this?
    Thank You

    Hi billywinter,
    You issue can be caused by the Parameters!ColumnValues.Value(0) will return the integer value which missing the "", so it will cause the issue.
    Please modify the query like below  to have a test:
    ="WITH "
    +" member [Measures].[Measure1] AS "+iif(Instr(Join(Parameters!ColumnValues.Label,","),"01")
    > 0,CStr(Parameters!ColumnValues.Value(0)),"0")
    If you still got some issue, please try to provide the error message to help us better analysis about the issue.
    Any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Dashboard in SSRS Query

    Hi,
    I am new to SSRS, as I have to create on dasboard in ssrs which will cover 4-5 chart and other type of reports on single screen.
    I just want to know, is there any properties need to configure for 5 chart or i have to just drag 5 chart from tool.
    another question.
    every chart will show other data like sum of reveny by state, by country, by region like that.
    so do I have to create 5 dataset or 1 dataset is sufficient for all 5 chart.
    thanks & regards,
    Vipin jha
    Thankx & regards, Vipin jha MCP

    Hi Christof_S,
    According to your description, there is a calculated field called Deltatype in the report. If Work PrevWeek is null and Work is null, then Deltatype is 0. If Work PrevWeek in null and Work isn’t null, then Deltatype is 2. If Work PrevWeek is the same with
    Work, then Deltatype is 1, else 3. The iif function works but the performance is poor.
    According to my knowledge, the Iif function returns one of two values depending on whether the expression is true or not. When we have three or more conditions, nested IIF statements will make expression harder to read and extend, instead, we can use Switch
    function to get the same functionality. In this case, we can modify the expression like below:
    Switch
    (ISEMPTY([Measures].[Work PrevWeek]) AND ISEMPTY([Measures].[Work]),0,
    ISEMPTY([Measures].[Work PrevWeek]) AND NOT ISEMPTY([Measures].[Work]),2,
    [Measures].[Work PrevWeek] <> [Measures].[Work], 3, true, 1)
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • SSRS query shows error no columns

    this is the query command Text:
    ="select pallet_id, pallet_create_dm,pn_id from MATS_ITG.pwax_pen_link where pallet_id  in ("& Join(Parameters!pallet_id.Value,",") &")"
    when it querys it shows error
    An error has occurred during report processing. (rsProcessingAborted)
    Query execution failed for dataset 'DsPartial_lookup'. (rsErrorExecutingCommand)
    ERROR [42703] ERROR 2624: Column "SGAC2207H0" does not exist 
     pallet_id is a multiple value  ,SGAC2207H0 is just my data
    can not figure out why, Please help me

    Hi ,
      Pallet_ID parameter seems to passing string like 'SGAC2207H0' . Check and change the parameter to pass numbers by checking the assignment to the value column in the parameter. If still need the string to be passed , Try the below expression  
    ="select pallet_id, pallet_create_dm,pn_id from MATS_ITG.pwax_pen_link where pallet_id in ('"& Join(Parameters!pallet_id.Value,"','") &"')"
    Best Regards Sorna

  • SSRS Column Chart Design Returning values in a format different from SSRS -SSAS Query Designer

    Hi All,
    I have an SSAS cube Measure Group with Multiple Measures that I am attempting to return on one SSRS report and reflect the 
    values using a ssrs column chart.
    My Measure Group (Patients).
    Measures:
    PatientsOnMeds
    PatientOnRelapse
    PatientsCounseld
    TotalNumberOfPatientsRegisterd
    NewlyRegisteredPatients
    HealthPersonelTrainef
    Demension:
    Time (Year) :filtered to 2012 & 2013
    In my SSRS query designer I have filtered the above Measures with Time Dimesion year 2012 & 2013
    and the data is returned as :
    Year |PatientsOnMeds|PatientOnRelapse|TotalNumberOfPatientsRegisterd|NewlyRegisteredPatients|
    2012 | 700          | 526            |  25                          | 456
    2013 | 245          | 245            |  15                          | 70
    Now the problem is when I return this data on the column Chart it's in messed up mesh
    On the chart Data:
    -Values :Measures
    -Series Group: Dimension
    The report values are returned in multiple columns for each value segmented by year i.e year 2012,Year 2013.
    I want a single column for each Measure (value) for each single year and The chart axis to reflect the measures(values) 
    instead of grouping values according to series group.
    instead the legend returns:
    -Year A -PatientsOnMeds
    -Year A -PatientOnRelapse
    -Year B -PatientsOnMeds
    -Year B -PatientOnRelapse
    I would like the legend to reflect on -Year A,Year B in color code that will be highlighted in the column values.
    Please point me in the right course if you can.Your insights are highly appreciated.Thank you in advance.

    Hi Charlie, 
    Thank you for your kind response. 
    In actual I want the legend to show:
    -2012
    -2013
    And the bottom axis to show:
    PatientsOnMeds
    PatientOnRelapse
    PatientsCounseld
    TotalNumberOfPatientsRegisterd
    NewlyRegisteredPatients
    HealthPersonelTrained
    Indicating in color code for Year 2012 and Year 2013.
    This the challenge that I am struggling with.I hope you understand my scenario.
    It aint easy.

  • SSRS report running very slow but query is very fast in SSMS

    I am running a very basic report. I am just retrieving some data from a table and I am using a parameter in the Where clause of the query. The query runs fast (in less than 5 secs) if I hardcode the parameter in the SSRS query but if it's left as a dynamically
    chosen parameter the query takes over 5 minutes to render. I have read a little about "Parameter Sniffing" but I am not sure if that applies to my case since I am only using a TSQL query and not a SP.
    Any feedback would be appreciated.
    PS: My query looks like below:
    Select Col1, Count(*)
    From Tbl1
    Where Col2 = @Para1
    Group By Col1
    KK

    Hi Kk,
    Is your data retrieval takes time or report rendering takes time? Run this query in your report server database to get the above two. Select * From Executionlog2
    Check the timings data retrieval time, processing time, and report rendering time.
    If data retrieval takes time,
    Give some default values to filters (parameters).
    If parameter rendering takes time
    Choose different options for parameter selection. Instead of multiselction of parameter, use like etc.
    Let me know which causing this problem after running the SQL profiler or executionlog query so that I can help you more. Or you can use SQL profiler to check what query takes more time.
    Hope this helps.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Stored Proc with SSRS multi value parameter gives " Must Declare scalar Varaiable @StateID

    Hi All,
    I have one stored proc with @fromDate , @Todate and multivalue input
    parameter@StateID of type integer.
    When I run below stored proc via SSRS by selecting multiple values thru multiValue parameter into @StateID...it gives error saying "Must Declare scalar variable @StateID"
    Not sure what is wrong with the input parameters.
    ID is Integer type in all the 3 tables - dbo.EastCities, dbo.WestCities  , dbo.Country
    I need help fixing this  "Must Declare scalar variable @StateID" error
    This is the UDF split() I am using..
    Function:
    CREATE FUNCTION dbo.SplitStateID
    (    @List VARCHAR(MAX))
    RETURNS TABLE
    AS   
    RETURN   
    (        SELECT DISTINCT [Value] = CONVERT(INT, LTRIM(RTRIM(CONVERT( VARCHAR(12),SUBSTRING(@List, Number, CHARINDEX(',', @List + ',', Number) - Number))))
     FROM  dbo.Numbers       
     WHERE Number <= CONVERT(INT, LEN(@List))AND SUBSTRING(',' + @List, Number, 1) = ','    );
     GO
     SELECT [Value] FROM dbo.SplitStateID('10,30,50');
    Also, I have created dbo.Numbers table which is used in udf..
    reference url -- > 
    http://sqlblog.com/blogs/aaron_bertrand/archive/2009/08/01/processing-a-list-of-integers-my-approach.aspx
    SET NOCOUNT ON;
    DECLARE @UpperLimit INT;
    SET @UpperLimit = 10000;
    WITH n AS(   
    SELECT        rn = ROW_NUMBER() OVER        (ORDER BY s1.[object_id])   
    FROM sys.objects AS s1   
    CROSS JOIN sys.objects AS s2   
    CROSS JOIN sys.objects AS s3)
    SELECT [Number] = rn - 1
    INTO dbo.Numbers FROM n
    WHERE rn <= @UpperLimit + 1;
    CREATE UNIQUE CLUSTERED INDEX n ON dbo.Numbers([Number]);
    Stored procedure:
    Create Procedure dbo.CountrySelection
    ( @FromDate Date, @ToDate Date, @StateID Int)
    AS
    BEGIN
    set nocount on;
    SELECT * INTO #EastCities
    FROM (
    SELECT ID,Description from dbo.EastCities
    Where ID IN (SELECT Value from dbo.SplitStateID(@StateID))
    ) AS A
    SELECT * INTO #WestCities
    FROM (
    SELECT ID,Description from dbo.WestCities
    Where ID IN (SELECT Value from dbo.SplitStateID(@StateID))
    ) AS B
    SELECT * INTO #Country
    FROM (
    SELECT ID , Description, State,Country From dbo.Country
    ) AS C
    SELECT EC.ID AS East, WC.ID AS West , EC.Description AS EastDesc, WC.Description AS WestDesc, CT.State, CT.Country
    FROM #Country CT
    LEFT JOIN #EastCities EC ON CT.ID=EC.ID
    LEFT JOIN #WestCities WC ON CT.ID=WC.ID
    DROP TABLE #EastCities
    DROP TABLE #WestCities
    DROP TABLE #Country
    END
    Above 3 temp tables are joined by #Country.ID key
    It works fine when single value is passed in @StateID
    Exec dbo.CountrySelection '01/01/2010','02/01/2010',10
    It fails when multi value passed into @StateID
    Exec dbo.CountrySelection '01/01/2010','02/01/2010','10,30,40'
    SSRS error log shows "Must declare scalar variable @StateID"
    Need help in fixing this issue.
    Thanks,
    RH
    sql

    Visakh,
    I changed @StateID date type to varchar(max) and still I get this error.  
    System.Data.SqlClient.SqlException: Must declare the scalar variable "@StateID".
       at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
    I am running this SO in SSRS quert Type =Text
    Actually sp created on db2 database and due to some limitations I am running(via SSRS) this from different db1 database data source within the same db server. When I run this sp from SSRS query designer(edit query designer button) and pass
    multivalue parameters to @StateID as 10 , 20 it works and gives expected resultset.
    Thanks,
    RH
    sql

  • MDX Query Desinger Slow to Respond on a WAN

    We are seeing the MDX Designer take a long time to open and to select filters.  Running a Query is fast, but selecting filters from dimension members that only have 2 to 10 members can take up to a minute to display and the same is true when dragging
    the member into the Filter pane.  Executing the query is not an issue and the returned results even 1000's of rows is fairly quick. 
    raym

    Hi rayishome,
    According to your description, when you using multiple parameters in Filter in MDX Query Designer, it takes long time to execute the query. Right?
    In this scenario, I want to know the version of SSRS you are using. It has reported similar issue in SSRS 2008, and this issue has been released in both SQL 2008 SP1 and SQL 2008 R2. Please refer to link below:
    SSRS BIDS Query Designer very slow when using multiple parameters
    Also please refer to a blog below:
    Speeding up the Query Parameters Dialog in the SSRS Query Designer
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Unable to preview ssrs report in visual studio

    Hi, I'm new to ssrs. i'm created a report but cannot preview the data. the query is working fine in sql server but return 0 when i execute in query designer in visual studio. i've try to create the new one but still the same problem occur. anyone can help
    me? thanks.

    Hi accy,
    According to your description, you have a query which runs properly in SSMS. When execution the query in SSRS query designer, it returns incorrect result. Right?
    In Reporting Services, the query we execute in query designer will be sent to corresponding database and run, then return the result. However, it still have some limitations for query designer.
    All the query in query designer will only be executed one time. Unless we re-run the report, the query will not execute again and the return data will not change.
    In query designer, The result set must be a single set of rows and columns where the same number of values exist for each row of data. Multiple results sets from a single query are not supported. It will only return the first result set. Ragged hierarchies,
    which do not have a constant number of columns and can produce different number of data values for each row, are not supported. 
    In this scenario, the issue should be on query side. Please check the input parameter and the return result set. If possible, you can post your query so that we can have some deep analysis.
    Best Regards,
    Simon Hou

  • Is it possible to create a formula that converts a resource hours into full time units in project server 2010

    Hi
    Is it possible to create a formula that converts a resource available hours into full time equivalent units in project server 2010? Say a resource has 160 available hours for any given month this will translate into 1 FTE for this month. If it is 80 hours
    for that month then it will be 0.5 FTE and so on and so forth.
    Thanks,
    -Maurizio

    Maurizio,
    It's a bit late, but there are two OLAP cubes that can provide you with this information in a pivot table in Project Server 2010.
    "MSP_Portfolio_Analyzer" and "Resource Timephased" contains capacity measures that be used to provide calculated measures when the cube database is generated. You change OLAP cube configuration in "Server Settings -> Database Administration -> OLAP
    Database Management". In either of the aforementioned cubes, use "Calculated Measures" to create two measures:
    Member Name
    MDX Expression
    Available (FTE)
    ([capacity]-[work])/[capacity]
    Work (FTE)
    [Work]/[Capacity]
    These two fields will appear in the pivot table field list as "Values", and when combined with a "Time" column, can give you a picture of FTE usage and availability.
    I prefer the portfolio version since it contains project/assignment data and resource data, letting you see just  how resources are being utilized.
    One thing I have not been able to get around is getting ""Maximum Units" for a resource factored into the measure. A common practice is to allocate more that "100%" to generic resources to represent teams for planning purposes. The OLAP measures will show
    only 0.0 to 1.0 FTE for any resource, even if a resource represents more than one body.
    If you have an SSRS query you could share, I would appreciated it!
    Hope this helps!
    JTC
    JAckson T. Cole, PMP, MCITP

  • Reports not opening

    When i open Report Definitions from Site Permissions --> Libraries --> Report Definitions and then try and open any report created by me i get the following error:
    An error has occurred during report processing. (rsProcessingAborted)
        Query execution failed for dataset 'Default'. (rsErrorExecutingCommand)

    Hi William,
    According to your description, my understanding is that you got an error when you opened a report in SharePoint 2013.
    This issue may be cuased by permission issue, please do as the followings:
    Open the SQL Server Management studio
    Right click on the respective database (TestDatabase) and select properties. Under Properties add the following user if not existing already: NT AUTHORITY\NETWORK SERVICE.
    Give  the "Select" and "Execute" permissions to the NT AUTHORITY\NETWORK SERVICE
    More information, please refer to the link:
    http://rajblogsworld.blogspot.com/2012/10/query-execution-failed-for-dataset.html
    This issue also may be caused by the Timeout Expired, please take a look at:
    http://anoopcnair.com/2011/07/20/configmgr-sccm-sql-server-reporting-service-timeout-expired/
    Here are some simiar posts for your reference:
    http://stackoverflow.com/questions/10847054/ssrs-query-execution-failed-for-dataset
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/0cacc2e5-bd00-490d-8d4f-bea040b8a443/query-execution-failed-for-dataset-dataset1-rserrorexecutingcommand?forum=sqlreportingservices
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Numbering table with parent grouping

    Hi, i have a table that i grouped by email in ssrs, and i would like to insert a row number, that will be by the parent grouping
    i tried using a solution from another question.
    ;with cte as
    (select *,dense_rank() over(order by row1) as rowID
    from @table
    select * from cte
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/078e45e5-edbf-4451-a5d2-bcf2f0382353/how-to-make-a-grouped-row-number?forum=transactsql
    but i was not able to get it working. this was the query i used to prepare the table
    SELECT        FirstName, LastName, EmailAddress, tused, CourseTitle, lastlogindate, Noofmodules, COUNT(coursecompleted) AS modulesstarted, 
                             REPLACE(REPLACE(REPLACE('<' + STUFF
                                 ((SELECT        ',' + CAST(CourseModule AS varchar(20)) AS Expr1
                                     FROM            edsf1
                                     WHERE        (FirstName = e.FirstName) AND (LastName = e.LastName) AND (coursecompleted = '1') AND (CourseTitle = e.CourseTitle)
    FOR XML PATH('')), 1, 1, ''), 
                             '<Expr1>', ''), '</Expr1>', ''), ',', '') AS CoursesCompleted
    FROM            edsf1 AS e
    WHERE        (coursecompleted = '1') OR
                             (coursecompleted = '0')
    GROUP BY FirstName, LastName, EmailAddress, CourseTitle, lastlogindate, Noofmodules, tused

    Sorry 
    not fully clear
    sounds like this
    SELECT DENSE_RANK() OVER (ORDER BY EmailAddress),
    FirstName, LastName, EmailAddress, tused, CourseTitle, lastlogindate, Noofmodules, COUNT(coursecompleted) AS modulesstarted,
    REPLACE(REPLACE(REPLACE('<' + STUFF
    ((SELECT ',' + CAST(CourseModule AS varchar(20)) AS Expr1
    FROM edsf1
    WHERE (FirstName = e.FirstName) AND (LastName = e.LastName) AND (coursecompleted = '1') AND (CourseTitle = e.CourseTitle) FOR XML PATH('')), 1, 1, ''),
    '<Expr1>', ''), '</Expr1>', ''), ',', '') AS CoursesCompleted
    FROM edsf1 AS e
    WHERE (coursecompleted = '1') OR
    (coursecompleted = '0')
    GROUP BY FirstName, LastName, EmailAddress, CourseTitle, lastlogindate, Noofmodules, tused
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page
    it works in sql server when i run the query, it assigns the row number to the right person. but when i try to use it in ssrs query, i get 
    The OVER SQL construct or statement is not supported.
    Make it into proc like this
    CREATE PROC ProcName
    AS
    SELECT DENSE_RANK() OVER (ORDER BY EmailAddress),
    FirstName, LastName, EmailAddress, tused, CourseTitle, lastlogindate, Noofmodules, COUNT(coursecompleted) AS modulesstarted,
    REPLACE(REPLACE(REPLACE('<' + STUFF
    ((SELECT ',' + CAST(CourseModule AS varchar(20)) AS Expr1
    FROM edsf1
    WHERE (FirstName = e.FirstName) AND (LastName = e.LastName) AND (coursecompleted = '1') AND (CourseTitle = e.CourseTitle) FOR XML PATH('')), 1, 1, ''),
    '<Expr1>', ''), '</Expr1>', ''), ',', '') AS CoursesCompleted
    FROM edsf1 AS e
    WHERE (coursecompleted = '1') OR
    (coursecompleted = '0')
    GROUP BY FirstName, LastName, EmailAddress, CourseTitle, lastlogindate, Noofmodules, tused
    Then in SSRS use below as command
    EXEC ProcName
    and it will work fine
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Added field to dataset not showing on report

    I have a report with multiple datasets for an existing report.  I am adding a field to one of these datasets (Monthly Summary) titled BonusYTD.  When I run the sp in the SSRS query designer it shows that the field BonusYTD is populated but when
    I place the field in the table it shows nothing.  I have checked the textbox to see if it had an hidden properties and even went to a different textbox that was displaying data and changed the field to BonusYTD and it still didn't show up.  I checked
    my connection to ensure I was previewing the report on the correct development server and refreshed the fields again in the dataset.  I am not understanding why the field BonusYTD is showing up in the list of available fields for this dataset yet the
    textbox that I put it in is not displaying any data.  Please help.

    Hi There
    Normally when we preview a report the data for the report is cached to a file on the local computer.
     When we preview the report again using the same query, parameters, and credentials,
     Report Designer retrieves the cached copy rather than running the query. The data file is normally
     saved as <yourreportname>.rdl.data in the directory as the report definition file save.
    Normally the cached file doesn’t work once we modify the query. At this time,
     I can suggest that you please delete the cached .rdl.data file and then check the problem again.
    If you have any question please let me know.
    Many Thanks
    Syed Qazafi Anjum
    Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful.

Maybe you are looking for