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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

OUTSTANDING Fecha de vencimiento de la fecha de entrega vs Fecha de recepción del pedido

Hola Equipo

Tenía una pregunta .

Detalles a continuación

outstanding.png

cualquier sugerencia de DAX

Gracias

Shybs

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Gracias por su respuesta

Probé vuestro DAX , pero i conseguía un asunto para calcular mes .

Así que traté de probar con mi propio DAX

KPI-Delivery = if(ISBLANK(PREE[Rcv Order]),"RCV ORDER BLANK",
IF(ISBLANK(PREE[Rcv Order]) && ISBLANK(PREE[Last Delivery for POD]),"CHECK", IF(ISBLANK(PREE[Last Delivery for POD]),"NOT DELIVERED YET",
if(PREE[Last Delivery for POD].[Month]>PREE[Rcv Order].[Month],"OUTSTANDING","ONTIME"))))

saludos

syaiful

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

Prueba algo así. si ambos están en la misma tabla, cree una nueva columna

Switch(true (),
isblank([rcdOrder]), "Received Order blank",
isblank([rcdOrder]) && isblank([delivery]), "Check",
[rcdOrder]<today() && isblank([delivery]) ,"Outstanding",
[rcdOrder]>=today() && isblank([delivery]) ,"Not deilvered yet",
[rcdOrder]<today() && ([delivery]) <<today(),"OK"
,"Outstanding"
)

Si ambos están en una tabla diferente

a continuación, encierre el with nonblank() como firstnonblank([rcdOrder],blank()) y cree una medida. Pero en la fila de exhibición conext sería importante

recomienda:

https://community.powerbi.com/t5/Community-Blog/Decoding-Direct-Query-in-Power-BI-Part-2-Date-Differ...

Anonymous
Not applicable

Gracias por su respuesta

Probé vuestro DAX , pero i conseguía un asunto para calcular mes .

Así que traté de probar con mi propio DAX

KPI-Delivery = if(ISBLANK(PREE[Rcv Order]),"RCV ORDER BLANK",
IF(ISBLANK(PREE[Rcv Order]) && ISBLANK(PREE[Last Delivery for POD]),"CHECK", IF(ISBLANK(PREE[Last Delivery for POD]),"NOT DELIVERED YET",
if(PREE[Last Delivery for POD].[Month]>PREE[Rcv Order].[Month],"OUTSTANDING","ONTIME"))))

saludos

syaiful

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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