The value expression for the textbox âCiudadâ refers to the field âCiudadâ. Report item expressions can only refer to fields within the current data set scope or, if inside an aggregate, the specified data set scope.
This is the query:
SELECT ISNULL(solicitante_dir_ciudad,'DESCONOCIDO'),
COUNT(*) AS [Cantidad_de_Solicitantes],
COUNT(*) * 100.00 / (SELECT COUNT(*) FROM dat_datos_importados) AS [Por Ciento%] FROM dat_datos_importados
WHERE solicitante_dir_ciudad = CASE WHEN @Ciudad='TODOS' THEN solicitante_dir_ciudad ELSE @Ciudad END
GROUP BY solicitante_dir_ciudad
ORDER BY solicitante_dir_ciudad
|