Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a sql server query which is running fine in management studio.
select
'Request ID' As Label,
'sr.SHIPMENT_REQUEST_ID' As Value
union all
select
'Trial ID' As Label,
CONCAT('''''','cs.CLINICAL_STUDY_ID', '''''') As Value
union all
select
'Site ID' As Label,
'css.SITE_ID' As Value
and return
Label Value
-----------------------------------------
1 Request ID sr.SHIPMENT_REQUEST_ID
2 Trial ID ''cs.CLINICAL_STUDY_ID''
3 Site ID css.SITE_ID
After inserting this query into PBI Report Builder
as a parameter to the query, which is in the form of the picture below
and selecting parameter value as 'Request ID' everything works fine
then when 'Trial ID' is selected it returns an error
----- Incorrect syntax near '.'. ------
If I have a query like this
select
'Request ID' As Label,
'sr.SHIPMENT_REQUEST_ID' As Value
union all
select
'Trial ID' As Label,
'cs.CLINICAL_STUDY_ID' As Value
union all
select
'Site ID' As Label,
'css.SITE_ID' As Value
it returns
Label Value
-----------------------------------------
1 Request ID sr.SHIPMENT_REQUEST_ID
2 Trial ID cs.CLINICAL_STUDY_ID
3 Site ID css.SITE_ID
After inserting this query into PBI Report Builder
as a parameter to the query, which is in the form of the picture above
and selecting parameter value as 'Request ID' everything works fine
then when 'Trial ID' is selected it returns an error
----- Conversion failed when converting the varchar value '213960_UAT'
to data type int. ------
In addition, I noticed that the data in the database for the 'Shipment Request ID' column are only integers
and in the 'Trial ID' column there are both numbers and letters.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |