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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
GermanCabrera
New Member

DAX

Hola

 

Alguien sabe como otener la fecha actual cuando la fecha máxima es nulo o en blanco.

Aqui la fórmula:      Fecha Sistema = Max( 'dsl com_Pedido'[FechaSistema] )

Si esto Max( 'dsl com_Pedido'[FechaSistema] ) es nulo o blanco que se le asigne la fecha actual:

 

Ya probe con: Fecha Sistema = If( Max( 'dsl com_Pedido'[FechaSistema] )=Blank(),

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @GermanCabrera ,

Please try the following formula for your measure:

Measure = IF(TRIM(MAX('dsl com_Pedido'[FechaSistema]))=""||ISBLANK(MAX('dsl com_Pedido'[FechaSistema])),TODAY(),MAX('dsl com_Pedido'[FechaSistema]))

current date.JPG

Best Regards

Rena

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @GermanCabrera ,

Please try the following formula for your measure:

Measure = IF(TRIM(MAX('dsl com_Pedido'[FechaSistema]))=""||ISBLANK(MAX('dsl com_Pedido'[FechaSistema])),TODAY(),MAX('dsl com_Pedido'[FechaSistema]))

current date.JPG

Best Regards

Rena

amitchandak
Super User
Super User

@GermanCabrera ,

Try one of the two

coalesce(Max ('dsl com_Order' [SystemDate]), today())
MaxX (filter('dsl com_Order',not(isblank('dsl com_Order' [SystemDate]))),'dsl com_Order' [SystemDate] )

 

I am hosting a webinar on 25th April on Power BI, Check Details - https://www.linkedin.com/posts/amitchandak78_webinar-tech-techforgood-activity-6658266754378231808-y...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors