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)

  1. source_expression: (variant) expression evaluated in current scope , specifies name or key up. example, =fields!prodid.value.
  2. destination_expression: (variant) expression evaluated each row in dataset , specifies name or key match on. example, =fields!productid.value.
  3. result_expression: (variant) expression evaluated row in dataset source_expression = destination_expression, , specifies value retrieve. example, =fields!productname.value.
  4. 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

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........