Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Quiero escribir una lógica en power query.
Si el año despachado = año actual, entonces null else Año despachado.
Creé una columna personalizada como IF [Dispatched Year] = Date.Year(DateYear.LocalNow()) then null else [Dispatched Year] Pero no funciona.
Gracias
Tenga en cuenta que M no tiene mayúsculas y minúsculas y que la función localnow era incorrecta.
if [Dispatched Year] = Date.Year(Date.From(DateTime.LocalNow())) then null else [Dispatched Year]
Palmadita
Está devolviendo todos los nulos incluso para el año despachado 2021
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.