This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello and thanks in advance for helping me.
I have a table, and in my table I have a field for Average Salary, but I need the Average Salary to sum in the total. Any suggestions on how to sum correctly? Highlighted # below should be $210,000, not $105,425.
Thank you 🙂
I'm basically using a Provider Name and Provider Salary. Here is the formula for Provider Salary aka Salary Numeric 6.7.23.
I needed a sample of your data. But see if it helps
Salary Numeric 6.7.23 =
SUMX (
VALUES ( Dataset[Provider Name] ),
CALCULATE ( AVERAGE ( Dataset[Salary_Numeric] ) )
)
Thank you for the reply. The previously formula was not 100% accurate, although, I feel like you are on the right path. The "Salaray Numeric 6.7.23" makes rthe row total correct, however, the Grand total is way off. The newest formula you sent me also sums the row total correctly, and the Grand Total is only about half off the correct amount (When all Providers are selected). Here is the last foirmula you sent me, which I feel is close: Salary Numeric 6.7.23 = SUMX ( VALUES ( Dataset[Provider Name] ), CALCULATE ( AVERAGE ( Dataset[Salary_Numeric] ) ) ). Is it possible to create a formual that substitutes "Salary Numeric" with "Salary Numeric 6.7.23"? It wont let substitute in the last formula you sent. I'm assuming because it is a calculated measure, i dont know? Thank you in advance!
Seria bom que enviasse uma amostra dos seus dados. Pode ser fictícios.
@VilmarSch That worked for the row totals using this formula ↓
Soma da Média =
VAR TabelaResumida =
SUMMARIZECOLUMNS ( dCalendar[Ano], dCalendar[MesId] )
VAR MediasMensais =
SUMX ( TabelaResumida, CALCULATE ( AVERAGE ( fVendas[Qtd] ) ) )
RETURN
MediasMensais@VilmarSch using the "Salary Numeric 6.7.23" formual I commented earlier. Can you help me plug in the fields and caluclations that you referred to me on your last comment?
Send your pbix please. It can be with dummy data
Use medidas
Exemplo:
Soma da Média =
SUMX ( VALUES ( dProduto[Categoria] ), CALCULATE ( AVERAGE ( fVendas[Qtd] ) ) )
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 29 | |
| 22 | |
| 21 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 41 | |
| 24 | |
| 22 | |
| 22 |