Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hola
Estoy empezando a usar el generador de informes de Power Bi. Cuando intento ver mi informe sigo recibiendo el error a continuación.
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
Solved! Go to Solution.
@amitchandak - Encontré el problema. Mi tipo de datos de parámetro se estableció en texto y no en fecha/hora
@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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |