Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hola a todos 🙂
Q=¿Cómo puedo extraer y nombrar el siguiente Alloc?
Necesito saber el número de alocaciónes de estos ID´s,
Extrajé la primea fecha de la columna date
1st = CALCULATE(FIRSTDATE('Tabla2 (2)'[Fecha de Alocación]), ALLEXCEPT('Tabla2 (2)','Tabla2 (2)'[No orden]))
Déspues obtuve la primera fecha con el nombre Alloc_1 y las demás Alloc_n
Alloc_1 = if('Tabla2 (2)'[Fecha de Alocación]=BLANK(),"0_ALLOC",if('Tabla2 (2)'[Fecha de Alocación]='Tabla2 (2)'[1st],"Alloc_1","Alloc_n"))
Tengo que obtener los diferentes alloc (alloc_2, alloc_3 ....) con la ayuda del ID y las fechas
Es decir, un ID de S1 será Alloc_1, Alloc_2, Alloc_3 porque tiene 3 fechas diferentes
Como notarán puede haber mismas fechas para un pedido y las fechas no siempre son consecutivas
El objetivo final es filtrar el informe por este número de Alloc 2, 3, 4 con ayuda de cuantas fechas tiene el ID en especifico
Aquí otro ejemplo
Tenemos fechas separadas y varios ID con fechas en común y este debería tener Alloc_1, Alloc_2, Alloc_3, Alloc_4 dado que son 4 fechas donde se intento atender ese ID
Espero me puedan ayudar, se los agradecería muchisismo
Solved! Go to Solution.
Ahí @viajero03082,
Puede hacerlo en el editor de consultas siguiendo los pasos siguientes:
Table.AddIndexColumn ([Count], "Index",1)
"Alloc_" & Number.ToText ([Index])
Si desea hacerlo en dax, utilice el código siguiente:
Alloc =
VAR temp_table =
FILTER (
ALL ( 'Table (2)'[show_id], 'Table (2)'[date] ),
'Table (2)'[show_id] = EARLIER ( 'Table (2)'[show_id] )
&& 'Table (2)'[date] <= EARLIER ( 'Table (2)'[date] )
)
RETURN
"Alloc_" & COUNTROWS ( temp_table )
Consulte Archivo PBIX con dos versiones adjuntas.
Ahí @viajero03082,
Puede hacerlo en el editor de consultas siguiendo los pasos siguientes:
Table.AddIndexColumn ([Count], "Index",1)
"Alloc_" & Number.ToText ([Index])
Si desea hacerlo en dax, utilice el código siguiente:
Alloc =
VAR temp_table =
FILTER (
ALL ( 'Table (2)'[show_id], 'Table (2)'[date] ),
'Table (2)'[show_id] = EARLIER ( 'Table (2)'[show_id] )
&& 'Table (2)'[date] <= EARLIER ( 'Table (2)'[date] )
)
RETURN
"Alloc_" & COUNTROWS ( temp_table )
Consulte Archivo PBIX con dos versiones adjuntas.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
Check out the May 2024 Power BI update to learn about new features.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |