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
Anonymous
Not applicable

dax dividir varias columnas

Hola, me gustaría crear una columna Resultado. Escribí fórmulas en la columna.

FuentePrecio (col B)Beneficio (cuello C)Resultado
Facebook20005000108,70% (C2/$C$6/(B2/$B$6))
Bing3000600086,96%
Google25007000121,74%
Twitter2500500086,96%
Total1000023000100,00% (C6/$C$6/(B6/$B$6))

Gracias por el consejo

Tomas

4 REPLIES 4
Greg_Deckler
Super User
Super User

@tomasmartinek - ¿Es realmente así como se ven sus datos? No puede hacer referencia a celdas individuales en DAX, tiene que filtrar hacia abajo de filas y columnas.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Tahreem24
Super User
Super User

@tomasmartinek ,

Por favor refiérase a una captura de pantalla adjunta:

Capture.PNG

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
amitchandak
Super User
Super User

@tomasmartinek , como una nueva columna en la tabla

[Precio (col B)]/sum([Price (col B)])/ [Profit (col C)] /sum( [Profit (col C)])

Anonymous
Not applicable

@tomasmartinek,

1) Debe crear una medida calculada, ya que será dinámica en relación con los ejes de análisis que desee aplicar.

2) Debe utilizar la función de división (), la mejor solución para dividir números sin generar errores.

3) Si repite la fórmula sam DAX, es mejor utilizar una variable.

Ejemplo:

Measure =

var DivideNumber = divide(sum('Table (2)'[Column1]),sum('Table (2)'[Column2]))

return

divide(DivideNumber,DivideNumber)

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.