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.
Hola a todos, necesito ayuda para crear una medida para extraer el valor total del saldo de la mano agregado por almacén y número de artículo basado en la fecha máxima para ese día en particular con el tipo de transacción de filtro 10.
Debe dar valor 1547 para 7/27, 1576 para 7/28 y 1631 para 7/29 y así sucesivamente.
Por favor, hágamelo saber si necesita más información. Ver datos adjuntos
Almacén | item_number | stock_transaction_type | transaction_identity | total_on_hand_balance | transaction_datetime |
700 | 20115 | 10 | Wop | 1547 | 7/27/2020 7:37 |
700 | 20115 | 10 | Wop | 1438 | 7/27/2020 7:38 |
700 | 20115 | 10 | Wop | 1653 | 7/27/2020 7:38 |
700 | 20115 | 10 | Wop | 1576 | 7/28/2020 8:28 |
700 | 20115 | 31 | Oid | 1635 | 7/28/2020 15:06 |
700 | 20115 | 31 | Oid | 1617 | 7/28/2020 15:12 |
700 | 20115 | 10 | Wop | 1640 | 7/29/2020 7:19 |
700 | 20115 | 11 | Wom | 1631 | 7/29/2020 8:47 |
700 | 20115 | 31 | Oid | 1558 | 7/29/2020 10:34 |
700 | 20115 | 31 | Oid | 1540 | 7/29/2020 10:36 |
700 | 20115 | 31 | Oid | 1522 | 7/29/2020 15:23 |
@dhirendra59 , Tener columna de fecha e intentar
fecha: [transaction_datetime].fecha
new measure: calculate(lastnonblankvalue(table[transaction_datetime],min(table[total_on_hand_balance])),allexcept(Table,Table[warehouse],Table[item_number], Table[transaction_identity], Table[Date]), Table[stock_transaction_type]-10)
@dhirendra59: parece un problema de agregación de medidas. Vea mi artículo de blog sobre eso aquí: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149
El patrón es:
MinScoreMeasure ? MINX ( SUMMARIZE ( Tabla, Tabla[Grupo] , "Medida",[SuMeasure] ), [Medida])
MaxScoreMeasure ? MAXX ( SUMMARIZE ( Tabla, Tabla[Grupo] , "Medida",[SuMeasure] ), [Medida])
AvgScoreMeasure - AVERAGEX ( SUMMARIZE ( Tabla, Tabla[Grupo] , "Medida",[SuMeasure] ), [Medida])
etcetera.
O tal vez Buscar Min/Max: https://community.powerbi.com/t5/Quick-Measures-Gallery/Lookup-Min-Max/m-p/985814?search-action-id=1...
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |