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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Anonymous
Not applicable

Fecha tipo incorrecto

Cuando estaba tratando de crear YTD fórmula del año pasado, su conseguir un error cuando se tiró a visual.

Error.png

Dax:

Spent_Amnt_YTD_LY de VAR DataMaxDate ( VAR DataMaxDate)
CALCULAR (DATE(YEAR(max(DETAIL[CHECK_DATE]))-1,MONTH(MAX(DETAIL[CHECK_DATE])),DAY(MAX(DETAIL[CHECK_DATE]))))
devolución
CALCULAR (
[INV AMT$], ALLSELECTED('DATE'),
FECHASYTD(
INTERSECT (
VALORES ( 'DATE'[Fecha] ),
DATESBETWEEN ( 'DATE'[Date], BLANK (), DataMaxDate )
)
)
)

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hola @ja832153 ,

Tipo de datos incorrecto del parámetro en la función datesbetween().

recomienda:

https://docs.microsoft.com/en-us/dax/datesbetween-function-dax.

Si puede compartir algunos datos de ejemplo y el resultado esperado, podríamos ayudarle a tratar con la fórmula.

Saludos

Jay

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hola @ja832153 ,

Tipo de datos incorrecto del parámetro en la función datesbetween().

recomienda:

https://docs.microsoft.com/en-us/dax/datesbetween-function-dax.

Si puede compartir algunos datos de ejemplo y el resultado esperado, podríamos ayudarle a tratar con la fórmula.

Saludos

Jay

amitchandak
Super User
Super User

@ja832153 , ¿por qué está dando en blanco en DATESBETWEEN

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors