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
FZOU
Helper IV
Helper IV

CÁLCULO DE DAX

Hola

Estoy trabajando en una columna calculada pero no puedo obtener el resultado correcto, tengo esta tabla y percentYear como un filtre :
PercentYear.PNG

Mi nueva columna llamada NewPercent debería calcular el porcentaje basado en el producto y PercentYear:

Si el producto está vacío como la tabla anterior y no tenemos un PercentYear seleccionado, así que 1/12 si seleccionamos un porcentaje año debe mostrar el Porcentaje igual a la columna de porcentaje

esta es mi fórmula de columna

NewPercent - IF(RELATED(Products[Product])"" && ISFILTERED(App[PercentYear])-FALSE();1/12; App[Porcentaje])
hasta ahora funciona la fórmula devolver el 1/12 pero cuando selecciono un valor de PercentYear debería mostrar el porcentaje no 1/12
y no puedo lograrlo.
1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hola @FZOU ,

¿Es su "NewPercent" una columna calculada? Si desea un valor dinámico, puede crear una medida para reemplazar esta columna.

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

3 REPLIES 3
v-eachen-msft
Community Support
Community Support

Hola @FZOU ,

¿Es su "NewPercent" una columna calculada? Si desea un valor dinámico, puede crear una medida para reemplazar esta columna.

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

@v-eachen-msft Exactamente fue que mi problema lo transformo en una mesure y funciona gracias

amitchandak
Super User
Super User

@FZOU

No lo entendí completamente. Pero puede usar antes para trabajar en la misma tabla

sumx(filter(Table,Table[Year] ? anterior(Table[Year]) && Table[Product] ? anterior(Table[Product])),Table[Percent])

Sumx puede ser maxx, averagex o minx

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.