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

Calcular UID sabia

Hola equipo,

Necesito su ayuda, con respecto a las fórmulas de abajo de la columna,

1) Remaing UID Stock - > Cuando los UID son los mismos, entonces Prod_Total debe resumirse y al mismo tiempo, se debe encontrar la diferencia entre el "Prod_Total" y el "stock" de cada "categoría".
Y esto debería funcionar basado en la segmentación dinámica. por ejemplo: si la segmentación es octubre mes entonces Prod_Total debe calcularse de enero a octubre .

Nota: Prod_Total es Medidas (calcula nueva medida)


screen.PNG

Gracias

KV's

9 REPLIES 9
AllisonKennedy
Super User
Super User

Lo sentimos, ha cubierto UID - ¿para qué filas son iguales? ¿Cuántas tablas son los datos sin procesar? Esto se podría hacer con la tabla visual correcta o si se crea una medida:

UID Prod Total - CALCULATE(SUM-Table[Prod_Total]), ALL-Table[Category]))

A continuación, reste eso de la acción en otra o la misma medida. Simplemente no estoy seguro de cuántas mesas tienes y cómo están relacionadas, por lo que puede cambiar ligeramente las cosas.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Anonymous
Not applicable

@Kalidass

Usted debe ser capaz de hacer como una nueva medida:

Stock de UID restantes - MAX(Table[Stock]) - CALCULATE(SUM(Table[Prod_Total]), ALL(Table[Category]))

o como una nueva COLUMNA:

Remanso de UID- Table[Stock] - SUMX(FILTER(ALL(Table), Table[UID] - EARLIER(Table[UID])), Table[Prod_Total])


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Anonymous
Not applicable

screen_II.PNG

@Kalidass, intenta como

resto de UID Stock - sum(Table[stock])- calculate(sum(Table[Prod_Total]) , allexcept(Table, Table[UID]))
O
resto de UID Stock á calculate(sum(Table[Prod_Total]) , allexcept(Table, Table[UID])) -sum(Table[stock])

Anonymous
Not applicable

Hola @amitchandak , cómo funcionará con la segmentación dinámica (tabla de fechas, tabla UID separada).

amitchandak
Super User
Super User

@Kalidass, no muy claro. a mí me parece que

resto de UID Stock á sum(Table[Prod_Total]) -sum(Table[stock])

PO de ACCIONES UID restantes : if([remaining UID Stock]<0, 0, [remaining UID Stock])

No @amitchandak ,

Me esperan por debajo del resultado,

screen_II.PNG

Anonymous
Not applicable

Hola @amitchandak ,

esperado basado en UID (mismo ID) prod_total restar por cada fila de categoría sabia..

Gracias

KV's

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.