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.
Aquí está mi problema. Tengo una tabla que tiene las aplicaciones/Admitos/registations
Tiene la siguiente estructura:
DNI, año, solicitud, admitidos, registro, facultad, departamento, programa, estado del estudiante, país de origen, etc.
Solicitud, Admite, Registro puede tener el valor 1 o 0
Tengo una matriz que muestra
Filas: estado del estudiante, país de origen,
Columna: año
Valor: SUM(registro)
Notamos que para cierto país, solo hay 1 registro. Para el anonimato absoluto, nos gustaría que si el TOTAL > 5, el país de origen se convirtiera en "Otros".
¿Cómo lo harías? He creado una tabla resumida y me uní, pero ignora cualquier otro filtro que se pueda aplicar (facultad, por ejemplo) porque la nueva tabla no tiene en cuenta el contexto del filtro.
Gracias de antemano
Gerard Garreau
Esta es mi tabla de prueba:
Crear una nueva columna:
New_country of origin =
var _sum = CALCULATE(SUM('Table'[Registration]),FILTER('Table','Table'[Status of student] = EARLIER('Table'[Status of student]) && 'Table'[Country of origin] = EARLIER('Table'[Country of origin]) && 'Table'[Year] = EARLIER('Table'[Year])))
return
IF(_sum > 5,"Others",'Table'[Country of origin])
¿Es este el resultado que deseas?
Saludos
Yadong Fang
Si esta publicación ayuda, considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |