Forum Discussion
user parameter in dynamic query
Sorry for the delay - I was on business travel and wasn't able to check this... back now...
Looked at the link and I think I see the issue/disconnect now... I was looking for a query parameter that the user could enter and I could pass to the select statement to limit the rows returned (vs a slicer and filtering on it since the dataset is millions of records). However, using the link to query params and templates provided above, it looks like this is only possible using Desktop BI vs published reports that users are using.
If I misunderstood and there is a way to do this where the users can enter the parameter value from the report, would love to hear!
Thanks all for your feedback!!
Hi raji,
Currently I don't think this could be done under Report level with users.
Query Parameter is available ehn query the data, not after the query. If we would like to filter the report, we could add the slicer Visual. Which user could be able to select in Reports:
Regards
- ozmike9 years agoResolver I
Here is an example using a HANA database , with working syntax
enjoy. Note you must use the internal SAP hana column names , the column displayed in PBI are "labels" and may have spaces in them or be completely different to the actual sap columns
let xx = "0000610127", sel = "select ""ColumnName"" from ""ZXXX.XXX::TABLE"" where ""ColumnName"" = '" & xx & "' ", Source = SapHana.Database("Server:12345", [Query=sel]) in Source