SSRS Lookup Function
i have textbox, want display rownumber located in table based upon
here lookup not work:
it wants see aggregate. there 1 distinct value "rm 1005" in fields!roomno.value column dataset, , want display rowid.
what wrong here?
=lookup(fields!roomno.value,
"rm 1055", fields!rowid.value, "dscheckinsteps")
hi jmcpsd,
the syntax of lookup function is:lookup(source_expression, destination_expression, result_expression, dataset)
- source_expression: (variant) expression evaluated in current scope , specifies name or key up. example, =fields!prodid.value.
- destination_expression: (variant) expression evaluated each row in dataset , specifies name or key match on. example, =fields!productid.value.
- result_expression: (variant) expression evaluated row in dataset source_expression = destination_expression, , specifies value retrieve. example, =fields!productname.value.
- dataset: constant specifies name of dataset in report. example, "products".
in expression, pass string second parameters of lookup function. should change filed value in dataset.
=lookup(fields!roomno.value,fields!column.value,fields!rowid.value,"dscheckinsteps")
if have questions, please feel free ask.
regards,
charlie liao
if have feedback on our support, please click here.
charlie liao
technet community support
SQL Server > SQL Server Reporting Services, Power View
Comments
Post a Comment