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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Annemie19
Helper II
Helper II

Generador de informes POwe Bi - Error en la conversión de fecha y hora

Hola

Estoy empezando a usar el generador de informes de Power Bi. Cuando intento ver mi informe sigo recibiendo el error a continuación.

Annemie19_0-1604920175351.png

Mi consulta se muestra a continuación. Tan pronto como sustituya el @ProjEndDate y @ProjStartDate por '2020-03-31', '2020-04-15', respectivamente, el informe funciona.

Seleccione
d.[DealID]
,d.[DealNumber]
,d.[PreviousDealNo]
,d.[NextDealNo]
,d.[PayMethod]
,d.[PayBranch]
,d.[PayAccountNumber]
,d.[NoOfShares]
,d.[NominalAmount]
,CONVERT( date,d.[IssueDate],103) A medida Issue_Date
,CONVERT( date,d.[RedemptionDate],103) As RedemptionDate
,d.[SecurityDescription]
,d.[CertifiecNos]
,d.[CertificateHeldWhere]
,d.[TypeOfClass]
,d.[CaptureDate]
,CONVERT( date,d.[RiskDate],103) As RiskDate
,CONVERT( date,d.[CreditDate],103) As CreditDate
,CONVERT( date,d.[ManagementDate],103) As ManagementDate
,CONVERT( date,d.[ReleaseDate],103) As ReleaseDate
,CONVERT( date,d.[ProjectionDate],103) As ProjectionDate
,d.[UserID]
,d.[NetCapitalChanges]
,d.[CurrentNominalAmount]
,d.[PayBranchCode]
,d.[PayAccountHolder]
,d.[DealType]
,d.[BankName]
,d.[LastInterestType]
,s.Name COMO Nombre Subsidiario
,s.RegNo AS [RegNo subsidiario]
Cp. Nombre AS CounterpartyName
Cp. CTitle1
Cp. CName1
Cp. CSurname1
Cp. CSurname2
Cp. PAddress1
Cp. PAddress2
Cp. PAddress3
Cp. PPostCode
,CONVERT( date,ProjStartDate,103) AS ProjStartDate
,CONVERT( date,ProjEndDate,103) AS ProjEndDate
,ProjectedAmount

DESDE [InfoMart_FinancialProducts]. [dbo]. [VwPrefSharesDeal] d

UNIRSE a [dbo]. [VwPrefSharesSubsidiary] s en s.SubsidiariaHashKey á d.SubsidiaryHashKey
UNIRSE a [dbo]. [VwPrefSharesCounterparty] cp en cp. CounterpartyHashKey á d.CounterpartyHashKey
UNIRSE a [dbo]. [VwPrefSharesCashProjection] c en c.DealHashKey á d.DealHashKey

DONDE DealID @DealID
Y CONVERT( date,ProjStartDate,103) á @ProjStartDate
Y CONVERTIR( fecha,ProjEndDate,103 @ProjEndDate)

¿Puede alguien por favor ayudar con este error?

Atentamente

Annemie

1 ACCEPTED SOLUTION

@amitchandak - Encontré el problema. Mi tipo de datos de parámetro se estableció en texto y no en fecha/hora

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Annemie19 , alguna razón por la que está convirtiendo fechas a texto? traerlos directamente

@amitchandak - Encontré el problema. Mi tipo de datos de parámetro se estableció en texto y no en fecha/hora

@amitchandak - ¿Se refiere al CONVERT( fecha,... acaba de añadir esto antes porque pensé que podría ser el problema. Pero incluso sin el CONVERT( fecha,.. todavía da el mismo error.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors