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
Greg5
Frequent Visitor

Last Order Report from each supplier

Tenho uma tabela que preciso obter as informações referentes ao último pedido de cada fornecedor.
Estou utilizando a fórmula abaixo, porém quando coloco as colunas [Grupo de compradores] e [Usuário] no relatório, ele está trazendo as informações do último pedido de cada grupo de compradores e usuário, preciso que seja somente referência ao último pedido que teve aquele fornecedor.


TESTE 3 =
CALCULAR (
    MAX ( FAT_PEDIDO_SAP2[DATA_PEDIDO] ),
    FILTER ( FAT_PEDIDO_SAP2 , FAT_PEDIDO_SAP2[DATA_PEDIDO] = LASTDATE ( ALLSELECTED ( FAT_PEDIDO_SAP2[DATA_PEDIDO] ) ),
    ALLEXCEPT (FAT_PEDIDO_SAP2,FAT_PEDIDO_SAP2[GRUPO_COMPRADORES],FAT_PEDIDO_SAP2[USUARIO_CRIACAO], FAT_PEDIDO_SAP2[BP FORNECEDOR],FAT_PEDIDO_SAP2[NOME FORNECEDOR])
    )      

 

1 ACCEPTED SOLUTION
1 REPLY 1
amitchandak
Super User
Super User

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.