Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hola, tengo la siguiente duda, espero me puedan ayudar.
Tengo la siguiente tabla, y debo hacer los calculos en PowerBi con Dax y soy nuevo en la herramienta.
La formula es la siguiente:
=E2/(E2+E8+E14)
Revisando los foros me parece que debo unar un calculate pero me calcula todas las filas.
Espero me puedan ayudar
Hi OsmarBR7,
To achieve your requirement, create a calculate column using DAX formula like pattern below:
Result = VAR Total = CALCULATE(SUM(Table1[Value]), FILTER(Table1, Table1[Index] = 1 || Table1[Index] = 8 || Table1[Index] = 14)) RETURN IF(Table1[Index] = 1 || Table1[Index] = 8 || Table1[Index] = 14, Table1[Value] / Total, BLANK())
Regards,
Jimmy Tao
No estoy 100% seguro, pero creo que desea agregar solo los valores para los cuales 'Valor' es '30'. No solo debes usar calcular, sino también usar un filtro con él. Prueba esta fórmula.
No estoy 100% seguro, pero creo que desea agregar solo los valores para los cuales 'Valor' es '30'.
No solo debes usar calcular, sino también usar un filtro con él. Prueba esta fórmula.
ColumnX =
Var Denominator = CALCULATE(SUM('Table'[Peso Tipo]),FILTER('Table','Table'[Valor]=EARLIER('Table'[Valor])))
Var Numerator = 'Table'[Valor]
RETURN
DIVIDE(Numerator,Denominator,0)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |