Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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])
)
Solved! Go to Solution.
@Greg5 , refer if these two approaches can help
Latest
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0
you can also use measure as visual level filter
@Greg5 , refer if these two approaches can help
Latest
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0
you can also use measure as visual level filter
User | Count |
---|---|
125 | |
106 | |
99 | |
63 | |
62 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |