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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Victor1986
Helper I
Helper I

calculo complexo

Bom dia!

Preciso calcular o resultado de saida de MUNICIPIO....

A regra é pegar a utltima DATA_UPDATE, maior ERB_FALHA por UF e retornar o municipio que teve maior registro de ERB_FALHA.

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

 

Victor1986_0-1666613046038.png

 

 

5 REPLIES 5
elder_lops
Frequent Visitor

Bom dia! Vitor

Ok, mas no caso poderá haver cidades empatadas, quando houver essa situação o sistema deverá escolher uma ou apresentar as duas na lista.

 

v-zhangti
Community Support
Community Support

Hi, @Victor1986 

 

Sorry I can't access your link. Can you represent the sample data in Excel, and the output you expect. The image of your original post cannot be enlarged, and the details cannot be seen clearly.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Bom dia @v-zhangti 

 

Segue atualização do link https://easyupload.io/p94rzb

 

Victor1986_0-1666700190978.png

 

 

 

Olá! Victor

 

Fiz algumas medidas e cheguei a um resultado que seja o que procura.

elder_lops_0-1666728761338.png

 

Criei uma tabela exemplo no powerquery para conseguir fazer os calculos abaixo o layout do arquivo modelo.

elder_lops_1-1666728812225.png

 

Para chegar ao resultado eu utilizei duas medidas.

 

elder_lops_2-1666728904035.pngelder_lops_3-1666729008285.png

 

Bom dia @elder_lops 

 

Obrigado por tentar me ajudar mas...

O que preciso é trazer o resultado da cidade (top 1) que contem o maior numero de erbs falhas separado por UF ...por exemplo ....

AC temos varias cidades ...preciso trazer a cidade (top 1) que contempla maior numero de erbs falha.... 

AL tambem tem varias cidades ....preciso trazer a cidade que contempla maior quantidade de erbs falha ....

O resultado final é identificar as cidades (top 1) que precisam de maior atençaõ por terem maior numero de erbs falhas....

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.