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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Victor1986
Helper I
Helper I

Resultado do Municipio

Como faço para trazer o resultado do MUNICÍPIO que teve o maior número TOTAL_ERBS_FALHA na ultima DATA_UPDATE e por UF???

 

Segue link com os dados compartilhados https://easyupload.io/k4h5gi

 

Victor1986_0-1666207905945.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Victor1986 , You can create a Rank and check for Rank =1

 

Rankx(Filter(allselected(Table, Table[UF], Table[Resulto de lina]),[UF] = max([UF])  )  , calculate(Sum(Table[TOTAL_ERBS_FALHA])) , ,desc,dense)

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Victor1986 , You can create a Rank and check for Rank =1

 

Rankx(Filter(allselected(Table, Table[UF], Table[Resulto de lina]),[UF] = max([UF])  )  , calculate(Sum(Table[TOTAL_ERBS_FALHA])) , ,desc,dense)

Bom dia @amitchandak 

 

apliquei a formula  abaixo e deu o seguinte erro....

 

Rankx(
Filter(
allselected(
'Historico 7 dias','Historico 7 dias'[UF], 'Historico 7 dias'[MUNICIPIO]),'Historico 7 dias'[UF] = max('Historico 7 dias'[UF]) ) , calculate(Sum('Historico 7 dias'[TOTAL_ERBS_FALHA])) , ,desc,dense)
 
Não são permitidos vários argumentos na função ALLSELECTED quando o primeiro argumento é uma referência de tabela.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.