Olá
No primeiro cenario da imagem abaixo, o rank está em ordem decrescente, porem preciso que fique em ordem crescente. Fiz a alteração de DESC para ASC, mas o resultado ficou errado no segundo cenario.
PBIX aqui
Solved! Go to Solution.
Please try this expression instead.
Ranq =
VAR thisChamadas =
MIN( fTabela[ID_Chamadas] )
VAR sameTelefone =
CALCULATETABLE(
VALUES( fTabela[ID_Chamadas] ),
ALL( fTabela ),
VALUES( fTabela[Telefone] )
)
VAR result =
RANKX( sameTelefone, fTabela[ID_Chamadas], thisChamadas, asc )
RETURN
result
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Please try this expression instead.
Ranq =
VAR thisChamadas =
MIN( fTabela[ID_Chamadas] )
VAR sameTelefone =
CALCULATETABLE(
VALUES( fTabela[ID_Chamadas] ),
ALL( fTabela ),
VALUES( fTabela[Telefone] )
)
VAR result =
RANKX( sameTelefone, fTabela[ID_Chamadas], thisChamadas, asc )
RETURN
result
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.