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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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

Top Solution Authors