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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Rygaard
Resolver I
Resolver I

m-código después de 18:00:00 dinámico ayer (filtro, consulta de energía)

im tratando de establecer un filtro en mi importación quiero datos que es después de ayer 18:00:00

Este trabajo, pero no es dinámico:

= Table.SelectRows(#"Fjernede andre kolonner", each [WS.VE_TID2] = #datetime(2021, 1, 3, 18, 0, 0))

así que intenté

>#datetime(date.year(Date.IsInPreviousDay([WS.VE_TID2])),date.month(Date.IsInPreviousDay([WS.VE_TID2])),date.day(Date.IsInPreviousDay([WS.VE_TID2])), 18, 0, 0)

pero eso no está funcionando

en realidad cualquier cosa, pero los números no parecen funcionar en #datetime() incluso #datetime(date.year(2021),1,3,18,0,0 ) no funcionará.

Así que cómo hacer esto

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Rygaard probar esto

= Table.SelectRows(#"Fjernede andre kolonner", each [WS.VE_TID2] = DateTime.From(Date.AddDays(Date.From(DateTime.LocalNow()),-1) & #time(18,0,0))))

Consulta mi última entrada de blog Año-2020, Pandemia, Power BI y más allá para obtener un resumen de mis versiones favoritas de las características de Power BI en 2020

Me gustaría elogios si mi solución ayudara. 👉 Si puedes dedicar tiempo a publicar la pregunta, también puedes hacer esfuerzos para dar Felicitaciones a quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!

Visítenos en https://perytus.com, su ventanilla única para proyectos/formación/consulta relacionadas con Power BI.



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

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HAY @Rygaard,

Si desea filtrar con el resultado dinámico, significa que debe utilizar la función que proporciona la consulta de potencia que se integra con la información del sistema y anidada con las funciones de fecha para obtener los resultados de cálculo correspondientes. (calcula en las funciones que devuelven el estado del sistema basado en resultados para que cambien cuando se actualice el estado del sistema)

Funciones DateTime

saludos

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
parry2k
Super User
Super User

@Rygaard probar esto

= Table.SelectRows(#"Fjernede andre kolonner", each [WS.VE_TID2] = DateTime.From(Date.AddDays(Date.From(DateTime.LocalNow()),-1) & #time(18,0,0))))

Consulta mi última entrada de blog Año-2020, Pandemia, Power BI y más allá para obtener un resumen de mis versiones favoritas de las características de Power BI en 2020

Me gustaría elogios si mi solución ayudara. 👉 Si puedes dedicar tiempo a publicar la pregunta, también puedes hacer esfuerzos para dar Felicitaciones a quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!

Visítenos en https://perytus.com, su ventanilla única para proyectos/formación/consulta relacionadas con Power BI.



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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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