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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nonick542
Regular Visitor

Power BI - SUM or Calculate???

preciso de uma ajuda no power BI em uma soma condicional.

 

tenho 01 tabela (gigante) com datas de voos x nome.

 

Já fiz a soma (qt) de voos por ano, e tenho uma franquia anual.

 

Agora preciso calcular a quantidade de voos que ultrapassaram a franquia anual em um período maior, mas o power bi não está procedendo com esta conta.

 

Fiz uma MEDIDA usando IF, e, qd passo para a tabela no relatório, tenho:

- quantidades anuais (voos e extra-franquia) corretas (ano a ano dá o resultado desejado)

- quantidade no TOTAL do período INCORRETA, pois o BI calcula a franquia como um TODO, e não por período

 

    ** exemplo:

  • se franquia anual = 1.000 voos
  • realizados:
    • ano 1= 500
    • ano 2 =1.500  => extra-franquia = 500
    • ano 3 = 2.000 => extra-franquia = 1.000
    • ano 4 = 100
    • ano 5 = 800
  • O power bi indica na tabela do relatório para extra-franquia:
    • ano 1= 0 (correto)
    • ano 2 = 500 (correto)
    • ano 3 = 1.000 (correto)
    • ano 4 = 0 (correto)
    • ano 5 = 0 (correto)
    • total = 0 (INCORRETO!)  => O BI calcula que a franquia do período é de 5.000 voos, e a soma de voos nos 5 anos foi inferior a este total. O valor correto seria de 1.500 voos extra-franquia, uma vez que deseja-se a SOMA DO QUE ULTRAPASSOU A FRANQUIA A CADA ANO

 

Como posso resolver isso?

 

abs

4 REPLIES 4
meguefa
New Member

Boa tarde...
Estou montando um BI com média de permanência na fábrica. Quero medir o tempo que veículos ficam para descarregar.
Já montei toda a estrutura mas estou com dificuldade na configuração do eixo Y. Não consigo configurar para mostrar hh:mm.
Teria alguma dica para resolver?

Estou com o mesmo problema..

Estou com esse mesmo problema..

Michiel
Resolver III
Resolver III

I ran your question through Bing translator as I don't speak or read Spanish - sorry to reply in English 😉

 

If you have a measure [Extra] that computes the right amount for one year, you can create a measure that sums this result for all years in the context by

TotalExtra = SUMX(VALUES(Table[Year]), [Extra])

VALUES returns a table with all Year values, and SUMX calculates [Extra] for each row in this table and sums the results. The column Year should be somewhere in your model of course, it's probably in a Calendar table.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors