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

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.

Reply
lbamburoski
Frequent Visitor

Tabla de fechas: Columna para ayer

Hola

Estoy tratando de crear una columna en una tabla de fechas para la fecha de ayer. Tengo una columna en mi tabla de citas que dice la fecha de hoy. La fórmula para esa columna es Hoy - HOY(). Estoy tratando de calcular una columna para ayer usando esta fórmula: DATEADD(Dates[Today], -1, DAY). No hay ningún error en esta columna. Sin embargo, la columna está en blanco.

También he probado PREVIOUSDAY(Dates[Today]) y se produce el mismo problema.

Gracias de antemano por su ayuda.

2 ACCEPTED SOLUTIONS
parry2k
Super User
Super User

@lbamburoski añadir esto

Yesterday = TODAY()-1

Me gustaría elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

amitchandak
Super User
Super User

Hoy debe utilizarse como se sugiere @parry2k .

Si usted está buscando el día anterior, puede tratar de

Last Day Non Continous ? CALCULATE(sum('order'[Qty]),filter(all(Table),Table[Date] ?MAXX(FILTER(all(Table),Table[Date]<max(Table[Date])),Table[Date])))
Día detrás de las Ventas: CALCULATE(SUM(Sales[Sales Amount]),dateadd(Table[Date],-1,Day))

Para obtener lo mejor de la función de inteligencia de tiempo. Asegúrese de que tiene un calendario de fechas y se ha marcado como la fecha en la vista de modelo. Además, únase a él con la columna de fecha de su hecho/s. Consulte:
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

View solution in original post

3 REPLIES 3
lbamburoski
Frequent Visitor

@parry2k @amitchandak

¡Muchas gracias a ambos por su ayuda! ¡Te lo agradezco mucho!

amitchandak
Super User
Super User

Hoy debe utilizarse como se sugiere @parry2k .

Si usted está buscando el día anterior, puede tratar de

Last Day Non Continous ? CALCULATE(sum('order'[Qty]),filter(all(Table),Table[Date] ?MAXX(FILTER(all(Table),Table[Date]<max(Table[Date])),Table[Date])))
Día detrás de las Ventas: CALCULATE(SUM(Sales[Sales Amount]),dateadd(Table[Date],-1,Day))

Para obtener lo mejor de la función de inteligencia de tiempo. Asegúrese de que tiene un calendario de fechas y se ha marcado como la fecha en la vista de modelo. Además, únase a él con la columna de fecha de su hecho/s. Consulte:
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

parry2k
Super User
Super User

@lbamburoski añadir esto

Yesterday = TODAY()-1

Me gustaría elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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