Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hola
A menudo tengo varios artistas en mi mesa separados por una coma, pero quiero contarlos y mostrarlos no como un valor, pero por ejemplo si hay Futuro, Lil Uzi Vert Quiero mostrarles como 2 artistas varios. ¿Qué medida puede hacer esto por mí?
Vea este ejemplo:
Estoy de acuerdo en que debería dividir y preparar mejor los datos. Si realmente necesitas hacerlo en el formulario actual puedes usar una medida como esta.
Recuento de Artistas ?
SUMX (
Mesa
LEN ( Tabla[artistas] )
- LEN (
SUSTITUIR (
Mesa[artistas],
",",
""
)
) + 1
)
saludos
palmadita
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@mrstillchicken Es posible que sea mejor dividir estos datos mediante delimitador mediante Power Query. Puede dividir los datos en filas y, a continuación, solo tiene que utilizar un simple COUNT(Table[Artists]) para obtener el total de artistas.
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
¡Gran! ¡No sabía que esta característica estaba ahí!
@AllisonKennedy es como ella dice, yo también recomendaría más su solución cuando se divide los valores de subtitulado para eliminar los caracteres ,[,',", etc. para que tenga sólo el nombre en él y se vean más amigables con los datos.
Proud to be a Super User!