Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
EternalDX
Contributor III
Contributor III

Date format are different

Hi, im new in QlikView and in make a board to integrate data from different databases and all well fine, but when i try to  see this values in a chart some data is not there and found a strange problem with dates and i don't know how to fix it, i attached a image

errordefecha.png

 

Regards

Isaias

Labels (1)
13 Replies
EternalDX
Contributor III
Contributor III
Author

I'm sorry, it gives me the same result a '-'
pradosh_thakur
Master II
Master II

Please attach screenshot of the source data
Learning never stops.
EternalDX
Contributor III
Contributor III
Author

This is the source

 

errordefecha03.png

 

And this is the load script:

 

 

Indicadores:
Load
Bloque
,Año
,Mes
,Dia
,alt(date(date#(Fecha,'DD/MM/YYYY'),'DD/MM/YYYY'),date(date#(Fecha,'YYYY-MM-DD'),'DD/MM/YYYY')) As Fecha
,[PotencialBruta]
,[PotencialNeta]
,[PotencialAgua]
,[PotencialGas]
,PotencialCondensado
,[DiferidaBruto]
,[DiferidaNeta]
,[DiferidaAgua]
,[DiferidaGas]
,DiferidaCondensado
,[HorasDiferida]
,[BombeoBruta]
,[BombeoNeto]
,[BombeoAgua]
,BombeoCondensado
,[PozosActivos]
,[PozosInactivos]
,[PozosTempInactivos]
,Gas
,[Produccion]
,[ProduccionNeta]
,[ProduccionAgua]
,ProduccionGas
,[Existencias];

SQL SELECT [Bloque]
,Year(Fecha) As Año
,Month(Fecha) As Mes
,Day(Fecha) As Dia
, Fecha
,[PotencialBruta]
,[PotencialNeta]
,[PotencialAgua]
,[PotencialGas]
,[PotencialCondensado]
,[DiferidaBruto]
,[DiferidaNeta]
,[DiferidaAgua]
,[DiferidaGas]
,[DiferidaCondensado]
,[HorasDiferida]
,[BombeoBruta]
,[BombeoNeto]
,[BombeoAgua]
,[BombeoCondensado]
,[PozosActivos]
,[PozosInactivos]
,[PozosTempInactivos]
,[Gas]
,[Produccion]
,[ProduccionNeta]
,[ProduccionAgua]
,[ProduccionGas]
,[Existencias]
FROM [dbo].[t_01_Indicadores];

 

Indicadores2:
Load
Bloque
,Año
,Mes
,Dia
,alt(date(date#(Fecha,'DD/MM/YYYY'),'DD/MM/YYYY'),date(date#(Fecha,'YYYY-MM-DD'),'DD/MM/YYYY')) As Fecha
,[PotencialBruta]
,[PotencialNeta]
,[PotencialAgua]
,[PotencialGas]
,PotencialCondensado
,[DiferidaBruto]
,[DiferidaNeta]
,[DiferidaAgua]
,[DiferidaGas]
,DiferidaCondensado
,[HorasDiferida]
,[BombeoBruta]
,[BombeoNeto]
,[BombeoAgua]
,BombeoCondensado
,[PozosActivos]
,[PozosInactivos]
,[PozosTempInactivos]
,Gas
,[Produccion]
,[ProduccionNeta]
,[ProduccionAgua]
,ProduccionGas
,[Existencias];
SQL SELECT 0 As Bloque
,Year(Fecha) As Año
,Month(Fecha) As Mes
,Day(Fecha) As Dia
,Fecha
,[PotencialBruta]
,[PotencialNeta]
,[PotencialAgua]
,[PotencialGas]
, 0 As PotencialCondensado
,[DiferidaBruto]
,[DiferidaNeta]
,[DiferidaAgua]
,[DiferidaGas]
,0 As DiferidaCondensado
,[HorasDiferida]
,[BombeoBruta]
,[BombeoNeto]
,[BombeoAgua]
,0 As BombeoCondensado
,[PozosActivos]
,[PozosInactivos]
,[PozosTempInactivos]
,[PGMMPCD] As Gas
,[Produccion]
,[ProduccionNeta]
,[ProduccionAgua]
,0 As ProduccionGas
,[Existencias]
FROM [dbo].[v_qv_Indicadores];

 

EternalDX
Contributor III
Contributor III
Author

Thanks to all, i resolve this with the function MakeDate