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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Syndicate_Admin
Administrator
Administrator

Antes y después de hoy dentro de una medida

Hola

Me gustaría poder tener una función IF dentro de una medida que me permita llamar a otra medida si es antes de hoy y otra si es después de hoy. ¿Es posible hacer esto y si es así cómo?

La lógica es esencialmente = if( Calander[Fecha] <= Hoy() , Suma acumulada , Previsión )

Cualquier ayuda será apreciada.

saludos

Shaun

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

@Syndicate_Admin ,

if( max(Calander[Fecha]) < Today() , [Suma acumulada], [Previsión] )

O

calculate([Suma acumulada], filtro(Calander, Calander[Fecha] < Hoy() )) + calculate([Forecast] , filter(Calander, Calander[Date] >= Today() ))

View solution in original post

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@Syndicate_Admin ,

if( max(Calander[Fecha]) < Today() , [Suma acumulada], [Previsión] )

O

calculate([Suma acumulada], filtro(Calander, Calander[Fecha] < Hoy() )) + calculate([Forecast] , filter(Calander, Calander[Date] >= Today() ))

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors