La red del Business Intelligence
Hola a todos hice mi reporte en Pentaho Report Designer y tengo 3 querys llamados "consulta ventas","consulta_meses","consulta_anio", cuando ejecuto mi reporte me sale todo bien, pero cuando publico mi reporte a pentaho BI server y lo ejecuto me sale un mensaje "ERROR, the specified query 'consulta_anios is not executable here'", no se si talves estoy usando alguna funcion que no este soportado en pentaho BI server
query consulta ventas
SELECT
YEAR(`dimtiempo`.`FECHA`) AS AÑO,
CASE MONTH(FECHA)
when "01" then "Enero"
when "02" then "Febrero"
when "03" then "Marzo"
when "04" then "Abril"
when "05" then "Mayo"
when "06" then "Junio"
when "07" then "Julio"
when "08" then "Agosto"
when "09" then "Setiembre"
when "10" then "Octubre"
when "11" then "Noviembre"
when "12" then "Diciembre"
END AS MES,
`cantidad` AS GALONES,
CONCAT('S/. ',ROUND(`hechoventas`.`precioventa`,2)) AS PRECIO_VENTA,
CONCAT('S/. ',ROUND(`hechoventas`.`venta_total`,2)) AS VENTA_TOTAL,
`dimproducto`.`PRODUCTO` AS PRODUCTO,
`dimtiempo`.`FECHA`
FROM
`hechoventas` INNER JOIN `dimtiempo` ON `hechoventas`.`tiempoid` = `dimtiempo`.`TIEMPOID`
INNER JOIN `dimproducto` ON `hechoventas`.`productoid` = `dimproducto`.`PRODUCTOID`
WHERE
YEAR(`dimtiempo`.`FECHA`) = ${ANIO}
AND MONTH(`dimtiempo`.`FECHA`) = ${MES}
query consulta_anios
SELECT DISTINCT
YEAR(`dimtiempo`.`FECHA`) AS ANIO
FROM
`dimtiempo`
query consulta_meses
SELECT DISTINCT
`dimtiempo`.`MES`,
MONTH(`dimtiempo`.`FECHA`) as mesnumero
FROM
`dimtiempo`
Adjunto el resultado final de mi reporte
Etiquetas:
Problema resuelto lo que pasa es que uso el pentaho BI server 3.8.0 y estaba usando el pentaho report designer 3.9.0 para hacer mis reportes, pero cuando uso el pentaho report designer 3.8.0, no me sale ningun error, buscando en internet encontre un articulo que dice que para evitar esos tipos de problemas es recomendable usar el mismo tipo de version
Gracias por compartir.
Bienvenido a
Open Business Intelligence
© 2024 Creado por Emilio. Tecnología de