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.
Tengo un conjunto de datos como sigue, las columnas son GroupA, GroupBId, Datetime, TimeDiff, Marker de izquierda a derecha. Se trata de datos anidados. Los datos se agrupan por [GroupA] y, a continuación, [GroupBId], después de eso, se ordenan por [Datetime] (ascendente).
[TimeDiff] se calcula haciendo que [Datetime] reste la fila anterior. Necesito romper [GroupB] a dos cada vez que [TimeDiff] tenga más de 15 min. He creado [Marcador] para ayudarme a identificar dónde romper el grupo. Básicamente, a partir de [Marker] á 'Break' a [Marker] á 'Start' (pero no incluir esa fila), tendré que asignar a [GroupBId] un nombre diferente, y será una combinación como [GroupBId] + '-2'. Como lo siguiente.
¿Es posible realizarse en la consulta M o en Power BI?
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
Funcionó perfectamente. ¡Gracias!
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 | |
2 | |
2 | |
2 | |
1 |