Lookup function issue or specific cell data binding problem

I  have a dataset which has datatable having 2 columns i.e
Table( Id string,Value string)
Every single record in the datatable represents an answer to particular question, Id column being question identifier and Value column  being an answer and every question has answer being stored for 7 days.
Now i have designed a report which is in the form of grid like
                     Day1 Answer, Day2 Answer, Day3 Answer............................Day7 Answer
Question 1 
Question 2
.Question 40
I tried using lookup function in ssrs reporting service to bind every single cell in the report using data from dataset like
= Lookup("question_identifier",QuestionId.Value,AnswerValue.Value,"mydataset");
The report is working absolutely fine in the report designer as expected but when i take it to the ASP.NET website where i have to generate it, it never shows up and i get report couldn't be found and make sure you have published the report kind of errors.
I figured that this is the problem with lookup function because as soon as i removed all lookup function expressions in the report , the report started to show up but without data.
Please let me know if there is another way to go around this problem or fix this issue.
Thanks,
BR,

Hi Jolly,
I don't think we need lookup function for this. We have only one dataset, the report can be easily created by simply modifying the query of the dataset and place those fields in the tablix report. Refer below example,
create table reporttable(id int, value varchar(200))
insert into reporttable values(1,'abc')
insert into reporttable values(1,'abc1')
insert into reporttable values(1,'abc2')
insert into reporttable values(1,'abc3')
insert into reporttable values(1,'abc4')
insert into reporttable values(2,'abc')
insert into reporttable values(2,'abc1')
insert into reporttable values(2,'abc2')
insert into reporttable values(2,'abc3')
insert into reporttable values(2,'abc4')
insert into reporttable values(3,'abc')
insert into reporttable values(3,'abc1')
insert into reporttable values(3,'abc2')
insert into reporttable values(3,'abc3')
insert into reporttable values(3,'abc4')
select id as [Question],'Day ' + cast(row_number() over (partition by id order by id) as varchar) + ' Answer' as AnsCol
from reporttable
Regards, RSingh

Similar Messages

  • Issues with removing Flex data binding to use Air 14

    Hello,
    I was wondering if anyone had optimal solution for replacing the Flex data binding classes in Air 14. I'm unable to merge the Flex and Air SDK together anymore so all the binding handlers need to be replaced. Has anyone else run into this issue yet? The automated binding generation and handling was the best feature of Flex and now that it's broken it creates huge issues for me.
    This is for Air desktop and mobile applications. They still build just no of the event handling works.
    Cheers,
    Pete

    I had forgotten I solved this myself last Dec. So basically from what I can tell the precompiler no longer does any [Bindable] conversions so you have to manually create the getters and setters for your model when this changes. I hope this helps anyone who may run into the same problem. There's literally no documentation on this any wheres.
    i.e.
    [Bindable]
    public var username : String;
    becomes
    private var _username : String;
            [Bindable(event="propertyChange")]
            public function get username():String
                return this._serviceState;
            public function set username(value:String):void
                var oldValue:Object = this._username;
                if (oldValue !== value)
                    this._username = value;
                    if (this.hasEventListener("propertyChange"))
                        this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "username", oldValue, value));
    You also need to make sure what ever class contains this property implements IEventDispatcher and has the following functions:
    IEventDispatcher implementation
    private var _bindingEventDispatcher:flash.events.EventDispatcher =
    new flash.events.EventDispatcher(flash.events.IEventDispatcher(this));
      * @inheritDoc
    public function addEventListener(type:String, listener:Function,
      useCapture:Boolean = false,
      priority:int = 0,
      weakRef:Boolean = false):void
    _bindingEventDispatcher.addEventListener(type, listener, useCapture,
    priority, weakRef);
      * @inheritDoc
    public function dispatchEvent(event:flash.events.Event):Boolean
    return _bindingEventDispatcher.dispatchEvent(event);
      * @inheritDoc
    public function hasEventListener(type:String):Boolean
    return _bindingEventDispatcher.hasEventListener(type);
      * @inheritDoc
    public function removeEventListener(type:String,
    listener:Function,
    useCapture:Boolean = false):void
    _bindingEventDispatcher.removeEventListener(type, listener, useCapture);
      * @inheritDoc
    public function willTrigger(type:String):Boolean
    return _bindingEventDispatcher.willTrigger(type);

  • Performance issue during SharePoint list data bind to html table using Ajax call(Rest API)

    Hello,
    I am having multiple lists in my SharePoint Site. I am using SharePoint REST APIs to get data from these lists and bind a HTML Table. Suppose, I have 5 lists with 1000 records each, I am looping 5000 times to bind each row(record) to this html table. This
    is causing performance issue which is taking a very long time to bind. 
    Is there any way So that I can reduce this looping OR is there any better approach to improve the performance. Please kindly Suggest.  Thank you for your help :)
    Warm Regards,
    Ratan Kumar Racha

    Hi Racha,
    For handling large data binding in a page,
    AngularJS would be a great option if you might would worry about the performance.
    You can get more information about using AngularJS from the two links below:
    https://www.airpair.com/angularjs/posts/angularjs-performance-large-applications
    http://www.sitepoint.com/10-reasons-use-angularjs/
    Best regards
    Patrick Liang
    TechNet Community Support

  • Cell data format problem

    Hello,
    I just began using the new version of Numbers.
    I tried to make a distance-speed-time function and have it as hour, minute and second but when I switch from automatic data format to custom data format (Duration) and go to the next cell to do the same, it switch back to automatic data format and I can't have it as time but just a a number with decimals.
    What can I do ?

    I have a similar issue.
    Every number I enter is understood by Numbers as a date.
    199 becomes the date 1/1/199 00.00.00 when I try and change the auto format it jumps right back to the date.
    I have to format the cell to be a number before I enter a value.
    is your system language english or non english? I have a suspicion it's a locale bug (one that Apple QA should have found had they done any testing...)

  • Flashbuilder 4 Beta 2 / Data binding problems

    Hello,
    i´m trying the first time FB 4 beta and i have a problem with the data services.
    I have cerated a cfc on coldfusion 8 returning data from an SQL-Server. The service is imported well and also the test works an returns the right data.
    But when i bind this service to any Control like a data grid, i get an error by compiling:
    Error 1180 datagrid_creationCompleteHandler not defined
    The code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768" xmlns:st_gruppeservice="services.st_gruppeservice.*">
    <fx:Script>
      <![CDATA[
       import mx.controls.Alert;
      ]]>
    </fx:Script>
    <fx:Declarations>
      <s:CallResponder id="getAllST_GRUPPEResult"/>
      <st_gruppeservice:ST_GRUPPEService id="sT_GRUPPEService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <mx:DataGrid x="82" y="145" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getAllST_GRUPPEResult.lastResult}">
      <mx:columns>
       <mx:DataGridColumn headerText="NAME" dataField="NAME"/>
       <mx:DataGridColumn headerText="INFO" dataField="INFO"/>
      </mx:columns>
    </mx:DataGrid>
    </s:Application>
    I think, i have build the project the same way as in adobe labs described. And also, the test works so the service is configured right.
    Any Idea?
    Regards

    Sunil,
    attached the two log files.
    If i remove the CDATA-Block, i get also the error 'Property alert not found'.
    Additional Infos:
    Environment: German
    Client system: Windows 7
    Server: Coldfusion 8 on IIS (Windows 2003)
    Regards
    Thomas

  • Adobe Flash Islands for Web Dynpro ABAP Data Binding problem

    I have downloaded the NetWeaver 7.1 Trial (includes Adobe Flash Islands for Web Dynpro ABAP). I try to create a very simple FlashIslands component running within the Web Dynpro Application, everything looks good. However, all binding to the Flex component is not working. Does anyone know why?
    Since it's trial version, I login as BCUSER into NSP system. When I load up the build-in sample, such as Chart Demo, the binding to Flex seems working. I suspect if it has anything to do with package? I could only create my Web Dynpro under the $TMP package, as all the build-in sample are defined in SWDP_DEMO.
    Please help.
    Alan

    hi,
    Check out this link. It will give you an idea how to integrate Aobe island comp with web dynpro.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/307b434f-ff32-2b10-e885-991247270480
    Thanx.

  • Import from Excel-Mapping Specific cells

    I've used the SQL Import/Export tool to import simple Excel data in the past. These were often simple column to table imports...easy mappings. I currently have an Excel spreadsheet kept by our Sales people that needs to be imported. The data in these sheets
    are not grouped into simple columns. For example, data values are either horizontal or I need to import specific data FROM cell A4 TO table column 'CCode' and cell A6 to 'CCode'.
    The trouble I'm facing is that the import wizard wants to simply map column for column from Excel. Even when I go into, "Edit Mappings" I'm not really finding a way to map specific cell data to the SQL column. Any help would be greatly appreciated...
    Excel Example:
    SQL Table:

    I'm seeing that now. I'll admit the format of the spreadsheet will be changing after I get these imported and moving forward.  I should have mentioned this is on an older SQL 2005 server, and am playing around with an Integration Services Project...
    Essentially I need to pluck the data in cells A1, C2, A4, C4-E4 and insert those values into an existing SQL table. I've defined my Excel Source. Seeing as the source sheet is a mess and I need to select certain cells (not all are in a neat range like C4-E4...I
    have some single cell values I ALSO need to import like A1 & C2) I chose "SQL Command" as my data access mode.
    The one thing I can't figure out is how to write a select statement that allows me to select certain cells and a small range of cells. I can select a single value by using: SELECT * FROM [sheet1$A1:A1] OR I can choose a range with the following: SELECT *
    FROM [sheet1$C4:E4]...how would I format a select statement that will allow me to pick not only the individual cells but ALSO the ranges I need?
    I have tried SELECT...UNION...SELECT but am limited to two select statements and places everything into a single F1 column when I need it in a row view to map with the SQL columns...so each cell I pull has a separate F value so I can properly map the data
    to the correct SQL column like the following:
    F1    F2   F3   F4    F5  F6   F7
    A1   C2   A4    A6   C4   D4   E4    

  • Aggregate using Lookup function

    Is there any way to get a sum or average of data from a dataset using a Lookup function?
    I have daily currency data, and want to use a lookup function to get monthly averages - at this stage, the lookup function will only return the data for the first entry of the month.
    Thanks

    Hi MIDASuer,
    Per my understanding that you want to get the sum or monthly average value based on the daily currency data, right?
    I have tested on my local environment and I assumed that you have an date/time type field in the table, if so, we can get the month value based on the daily date and then create row group based on the month, finally we can use the avg or sum function
    to get the monthly average values.
    Detail information below for your reference:
    We can modify the query in the dataset to get the month value from the date:
    SELECT   Amount, Date, DATEPART(month, Date) AS Month
    FROM      TableName
    Add an row gorup of the month(Month)
    Use expression below to get the average value of the month and the sum of the month:
    Monthly Average: =Avg(Fields!Amount.Value,"Month")
    Monthly Sum :  =Sum(Fields!Amount.Value,"Month")
    If the amount value comes from another dataset using the lookup function, you can use expression below o get the monthly average:
    =Avg(Lookup(source_expression, destination_expression, result_expression, dataset),Month")
    preview like below:
    More details information about the LookUp function for your reference:
    https://technet.microsoft.com/en-us/library/ee210531(v=sql.110).aspx
    If your problem still exists, please try to provide us some sample data and more detail information about your requirements.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Comment or attach document for specific cell of data

    Dear all,
       Is it possible to create comment or attached document for specific cell of data in Webi report?
       For example, the sales of certain product & yearmonth is lower than previous month. I want write some comment for that cell of data . Which function should I use? I try the "Discussion" function. But, it's for the whole report not for certain range of data and I can't attached document in there. Please advise.
    Thx,
    Jeff

    Hi Jeff,
    This one is the most popular request from most of our customers. But what we always tell the client is that the reports that are created in webintelligence are analytical in nature and it is not cell based. For every refresh of the report, you may get different results based on the parameters and your annotation will not hold good.
    We suggest two methods to solve this issue. 1) Discussions - Standard text with the parameters used for refreshing and the observation. This would be a good option if the report is shared with many people.
    2) Add a cell to the report, place it at the right place adjacent to the block which you want to observe. Make your comments in different colors. This would be good for reports which need to be presented to some audience.
    The below link shows a prototype called Comment It for Crystal Reports. But I don't think this is available for webintelligence.
    Comment it [original link is broken]
    Thanks
    Mohanraj CP
    http://blog.mohanraj.org

  • How can I link specific cells in two different speadsheets so the data from a specific cell in spreadsheet A automatically updates in a specific cell in spreadsheet B. It works in Xcel- Any ideas?

    How can I link specific cells in two different tables so the data from a specific cell in table A automatically updates in a specific cell in table B? It works in Xcel- Any ideas?

    (1) your title ask the way to link different spreadsheets.
    In Numberland, a spreadsheet is an entire document.
    There is no way to link different documents.
    (2) in the message, you ask the way to link different tables.
    This feature is available and is described in iWork Formulas and Functions User Guide (which is available for free from the Help menu).
    Getting the info just requires a simple search in this available resource !
    Yvan KOENIG (VALLAURIS, France) 14 mai 2011 10:37:50

  • Is there a way of getting LOOKUP function to return the address of a cell rather than the value?

    Hi
    I am wondering if there is a way of converting the value found in a LOOKUP function into a reference for the cell in question.
    I have constructed the following formula:
    =OFFSET(LOOKUP(A2,August :: $A),2,2)
    In an attempt to return the value of a cell which is two rows and two columns away from the cell returned by a LOOKUP function.
    But I am getting the error Argument 1 of OFFSET expects a reference but found "Name."
    Could someone advise?
    Thanks,
    Nick

    nick_harambee wrote:
    Hi
    I am wondering if there is a way of converting the value found in a LOOKUP function into a reference for the cell in question.
    I have constructed the following formula:
    =OFFSET(LOOKUP(A2,August :: $A),2,2)
    In an attempt to return the value of a cell which is two rows and two columns away from the cell returned by a LOOKUP function.
    But I am getting the error Argument 1 of OFFSET expects a reference but found "Name."
    Could someone advise?
    Thanks,
    Nick
    Nick,
    To find the row that a searched-for value is in, use MATCH.
    Jerry

  • How to make specific cell(s) read-only in a data-grid

    Hi there!
    Is there a way to make an specific cell read-only in a data-grid?
    Best regards,
    Ciro

    Hi !
    After some months... here is the solution:
    Private WithEvents _gridTaste As DataGrid
    Private Sub MyScreen_Created()
    AddHandler FindControl("GridTaste").ControlAvailable,
    Sub(s, e)
    _gridTaste = CType(e.Control, DataGrid)
    End Sub
    End Sub
    Private Sub _gridTaste_BeginningEdit(sender As Object, e As DataGridBeginningEditEventArgs) Handles _gridTaste.BeginningEdit
    ' I want do set the cell (2,0) as read only:
    If e.Row.GetIndex = 2 AndAlso e.Column.DisplayIndex = 0 Then
    e.Cancel = True
    End If
    End Sub
    I hope this post help you too!
    Best regards,
    Ciro

  • Certain Numbers templets allow you to drag and drop contacts to populate cell data, how can I create that functionality in my own tables?

    Certain Numbers templets allow you to drag and drop contacts to populate cell data, how can I create that functionality in my own tables?

    If you haven't come across the workarounds thread you may find helpful tips there on this and other ways to work with Numbers 3.
    ronniefromcalifornia discovered how to bring contacts into Numbers 3. As described in this post:
    "Open Contacts
    Select all the cards you want
    Copy
    In Numbers, in a table, select cell A1
    Paste
    Boom. Works great. Even brought in the pictures. Cool."
    So instead of drag and drop, just select in Contacts, copy, and paste into Numbers
    SG

  • Enable data paging with parameters count() on new php function issue (BUG?)

    I've got my app prototyped quickly with the default settings in Flex Builder 4.  Now I'm going back and adding/modifying features to polish the app off.
    For this application I'm using PHP5 as the server side.
    The data paging is really cool and simple to call using the default settings.  However, I'm running into issues with customizing the data paging feature.
    This is the default header of the php function that was created for me:
    public function getTblbrowserrecord_paged($startIndex, $numItems){...}
    Instead of dumping all data back to the function I want to be able to search on certain fields so I created a new function called:
    getTblbrowserrecord_search_paged ($szName, $szIP, $szRule, $szURL, $szDateLow, $szDateHigh, $szCode, $startIndex, $numItems  ) {...}
    The new function is tested and operates as designed.
    I set the input types of the variables and return type (Tblbrowserrecord[]) of the new function then went to enable data paging.  The first screen came up and asked me for the key to use which I selected.  The next screen came up and asked me for the number of records which I set to 100 then went to select the count operation.
    I initially selected the automatically created count() function but it came up with the error " Count operation parameters should match the paged operation parameters list."
    So I created another function to match the search function's parameter's list:
    public function count_searched($szName, $szIP, $szRule, $szURL, $szDateLow, $szDateHigh, $szCode, $startIndex, $numItems)  {...}
    But I still ge the error "Count operation parameters should match the paged operation parameters list."
    But they DO match.  I looked at the default functions that were created by FB4 and noticed that the automatically generated function count() has no parameters and the paged function has the two functions $startIndex and $numItems which are not identical yet they work.  I tried removing those two fields from the count function but got the same results.
    What am I doing wrong?
    Thanks!

    Nevermind... For some reason my FB4 is not updating correctly.  After removing the two control fields at the end of the list AND exiting the app/re-entering everything worked ok.  I've been having this issue a lot lately and am thinking that is is a bug of some sort?

  • A data-binding issue with a combo box.

    Hi,
    Iu2019m having a data-binding issue with a combo box.  The field it is bound to is an integer.  The valid values in the combo box are 1, 2, and 3.  If I add a record when it is set to 1 or 2, the value gets stored correctly.  If I add a record when it is set to 3, it is stored as 1.  However, I can bring up the record just added on the form, change it to 3, and click u201CUpdateu201D and it is saved correctly as 3.  If I change it so that the valid values are 4, 5, and 6, it saves a 1 regardless of what is selected in the combo box.  It looks like the combo box is correctly bound for updates but not for adds.  The table is a master type UDO.  Any ideas?  Iu2019m somewhat committed to the field being an integer.  I'm using 2007A PL47.
    Thanks,
    Mike
    Edited by: Mike Angelastro on Jul 1, 2009 2:43 PM

    I tried a few things on my own.  The result is that I decided that it was not a good idea to use a combo box bound to an integer (numeric) field.  I donu2019t think the SDK can handle it.  The reason it was an integer field in the first place is that before I changed it to a combo box it was a group of two option buttons.  Option buttons use an integer (numeric) field.  This worked just fine until I added a third option; the SDK didnu2019t handle the third option correctly when adding records.  I thought that using a combo box instead would fix that.  I was wrong; the problem remained.  So I decided to use a character (alphanumeric) field instead.  This works just fine.
    So here is my advice:  Never use option buttons if they need to be bound to the database; a combo box will actually work better when bound to the database.  But use a character (alphanumeric) field.
    Edited by: Mike Angelastro on Jul 5, 2009 9:15 PM

Maybe you are looking for