Forum Discussion
Power bi
Olá, como concorda o código abaixo para que eu retorne com todos os valores de recuperação?
Na minha tabela Notas, estou tendo apenas um valor retornador, porem preciso que seja devolvido todos os valores correspondentes.
https://drive.google.com/file/d/1KHLvrQ6W9HkBkhU_GfRO1GGz5kXr2O2e/view?usp=drive_link
8 Replies
- lbendlin
Super User
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523- lbendlin
Super User
Link asks for access, please check.
- EdivaldonovaisRegular Visitor
depois de muitas tentativas eu consegui.🙏
Recuperado =IF(MAXX(FILTER(notas,notas[nota] = EARLIER(notas[nota])),notas[data do custo]) = notas[data do custo],CALCULATE(VALUES('RECUPERAÇÕES'[RECUPERADO]),FILTER('RECUPERAÇÕES','RECUPERAÇÕES'[NOTA] = EARLIER(notas[nota]))),0)- lbendlin
Super User
What do you expect
CALCULATE( VALUES('RECUPERAÇÕES'[RECUPERADO]),to return?