Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problema con formula InMonthToDate

Buenos dias

Tengo una duda en cuanto al manejo de formulas en QlickView

Tengo una relación de tablas que es la siguiente

  image001.png

Las ventas están a Nivel Día (transacción de venta) y los pronostico solo tengo una fecha para todo el Mes

si yo agrego una Gráfica y coloco un Sum(Ventas_detalle_unidades) y un sum(Pronostico) los datos se presentan de manera correcta

pero si agrego una formula como esta otra multiplica los datos del pronostico

Sum (if (InMonthToDate (fecha, AddMonths(Today(),Variable1), 0), ventas_detalle_unidades))

Sum (if (InMonthToDate (fecha, AddMonths(Today(), Variable1), 0), Pronostico))

El dato de Ventas sale de manera correcta pero el Dato de Pronostico Sale multiplicado por un Factor de 261 en un mes y así si cambio de meses pues va cambiando ese factor.

Sabes como puedo evitar eso de que se multiplique o se sume varias veces que pienso es lo que esta ocurriendo

Saludos

6 Replies
martin59
Specialist II
Specialist II

Hi,

I don't speak spanish but you mustn't have "$Syn tables".

Please refer to QV help for more informations about synthetic tables.

Hope that helps you

Martin Favier

martin59
Specialist II
Specialist II

Hi,

I don't speak spanish but you mustn't have "$Syn tables".

Please refer to QV help for more informations about synthetic tables.

Hope that helps you

Martin Favier

martin59
Specialist II
Specialist II

Hi,

I don't speak spanish but you mustn't have "$Syn tables".

Please refer to QV help for more informations about synthetic tables.

Hope that helps you

Martin Favier

martin59
Specialist II
Specialist II

Hi,

I don't speak spanish but you mustn't have "$Syn tables".

Please refer to QV help for more informations about synthetic tables.

Hope that helps you

Martin Favier

martin59
Specialist II
Specialist II

Hi,

I don't speak spanish but you mustn't have "$Syn tables".

Please refer to QV help for more informations about synthetic tables.

Hope that helps you

Martin Favier

hectorgarcia
Partner - Creator III
Partner - Creator III

creo que lo primero que tenes que resolver, es el modelo de datos , antes de pasar al siguiente nivel.
tantas llaves sinteticas te pueden llevar a resultados inesperados!!!

Hector